/* Time Tracker Dashboard Specific Styles */

/* Quick Action Card */
.quick-action-card {
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(103, 126, 234, 0.2);
}

.quick-action-card .card-header {
    border-bottom: 1px solid rgba(103, 126, 234, 0.2);
}

/* Inline Form Wrapper */
.inline-form-wrapper {
    padding: 0;
}

.inline-form-wrapper .form-container {
    padding: 0;
}

.inline-form-wrapper .form-group {
    margin-bottom: 12px;
}

/* Compact Table */
.compact-table {
    font-size: 0.875rem;
}

.compact-table th,
.compact-table td {
    padding: 8px 12px;
}

/* View All Button */
.view-all-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

.view-all-btn .material-symbols-outlined {
    font-size: 16px;
}

/* Primary Button */
.primary-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(103, 126, 234, 0.3);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(103, 126, 234, 0.4);
}

.primary-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Secondary Button */
.secondary-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.secondary-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Placeholder Text */
.placeholder-text {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    text-align: center;
    padding: 24px;
    font-style: italic;
}

/* Full Section (for All Entries view) */
.full-section {
    padding: 0 24px 24px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Card Header with Actions */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Override inline form styles for dashboard context */
.dashboard-card .inline-form-wrapper .form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.dashboard-card .inline-form-wrapper input,
.dashboard-card .inline-form-wrapper select {
    padding: 8px 12px;
    font-size: 0.875rem;
}

/* Report Form Styling */
#time-report-form-wrapper {
    max-height: 60vh;
    overflow-y: auto;
}

#time-report-form-wrapper .form-container {
    padding: 16px 0;
}

/* Adjust toolbar for inline forms */
.inline-form-wrapper .toolbar {
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* Panel adjustments for entries view */
#all-entries-section .panel {
    flex: 1;
    max-width: 60%;
}

#all-entries-section .form-wrapper {
    flex: 1;
    max-width: 40%;
}

#all-entries-section .panel-content {
    padding: 16px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    #all-entries-section .panel,
    #all-entries-section .form-wrapper {
        max-width: 100%;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Dashboard grid adjustments for time tracker */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 24px 24px 24px;
}

.full-width-card {
    grid-column: 1 / -1;
}

/* Content split for entries section */
#all-entries-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#all-entries-section > .panel,
#all-entries-section > .form-wrapper {
    display: block;
}

@media (min-width: 992px) {
    #all-entries-section {
        flex-direction: row;
    }
}
