/**
 * BERTAKOMMtime v2 - Custom Styles
 * Dashboard Overhaul with 60/40 Split Layout
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --brand-color: #FF775A;
    --brand-color-dark: #E5664A;
    --brand-color-light: #FFB8A8;
    --brand-gradient: linear-gradient(135deg, #FF775A 0%, #FF9A85 100%);
    
    --bg-light: #F8F9FA;
    --bg-dark: #212529;
    --bg-card: #FFFFFF;
    
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --text-muted: #ADB5BD;
    
    --border-color: #E9ECEF;
    --border-radius: 0.75rem;
    --border-radius-sm: 0.5rem;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    --success-color: #10B981;
    --success-bg: #D1FAE5;
    --warning-color: #F59E0B;
    --warning-bg: #FEF3C7;
    --danger-color: #EF4444;
    --danger-bg: #FEE2E2;
    --info-color: #3B82F6;
    --info-bg: #DBEAFE;
    
    --morning-color: #10B981;
    --afternoon-color: #3B82F6;
    --manual-color: #8B5CF6;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #F0F4F8 0%, #E2E8F0 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-weight: 700;
}

/* ============================================
   Brand Colors
   ============================================ */
.bg-brand {
    background: var(--brand-gradient) !important;
}

.text-brand {
    color: var(--brand-color) !important;
}

.btn-brand {
    background: var(--brand-gradient);
    border: none;
    color: white;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.btn-brand:hover {
    background: var(--brand-color-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.badge.bg-brand {
    background: var(--brand-gradient) !important;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.nav-link {
    transition: opacity var(--transition-fast);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-link:hover {
    opacity: 0.85;
}

/* ============================================
   Dashboard Container
   ============================================ */
.dashboard-container {
    padding: 0;
    max-width: 100%;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

/* ============================================
   Stats Bar (Compact Top Bar)
   ============================================ */
.stats-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
}

.stats-bar-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1800px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    color: var(--text-muted);
    font-size: 1rem;
}

.stat-item .stat-value {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.stat-item .stat-value.positive {
    color: var(--success-color);
}

.stat-item .stat-value.negative {
    color: var(--danger-color);
}

.stat-item .stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

.user-select-item .form-select {
    border: none;
    background-color: var(--bg-light);
    font-weight: 500;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
}

/* ============================================
   Dashboard Split Layout
   ============================================ */
.dashboard-split {
    display: grid;
    grid-template-columns: 1fr 380px;
    flex: 1;
    min-height: 0;
}

/* ============================================
   Day List Panel (Left 60%)
   ============================================ */
.day-list-panel {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.week-title {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.week-title h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.week-range {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.week-nav-arrows {
    display: flex;
    gap: 0.25rem;
}

.nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.nav-arrow:hover {
    background: var(--brand-color);
    border-color: var(--brand-color);
    color: white;
}

.nav-arrow.nav-today i {
    font-size: 0.5rem;
}

/* ============================================
   Day List
   ============================================ */
.day-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.day-row {
    display: grid;
    grid-template-columns: 70px 1fr auto 50px;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.day-row:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.day-row:focus {
    outline: none;
    border-color: var(--brand-color);
}

.day-row.today {
    border-left: 4px solid var(--brand-color);
    background: linear-gradient(90deg, rgba(255, 119, 90, 0.05) 0%, var(--bg-card) 100%);
}

.day-row.weekend {
    background: var(--bg-light);
    opacity: 0.7;
}

.day-row.holiday {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, var(--bg-card) 100%);
    border-left: 4px solid var(--info-color);
}

.day-row.off-day {
    background: var(--bg-light);
    opacity: 0.8;
}

.day-row.selected {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(255, 119, 90, 0.15);
}

.day-row.locked {
    background: repeating-linear-gradient(
        -45deg,
        var(--bg-card),
        var(--bg-card) 10px,
        rgba(0, 0, 0, 0.02) 10px,
        rgba(0, 0, 0, 0.02) 20px
    );
    cursor: default;
}

.day-row.locked:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.lock-icon {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Day Date Column */
.day-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.day-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.day-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.today-dot {
    position: absolute;
    bottom: -4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-color);
}

/* Day Content Column */
.day-content {
    flex: 1;
    min-width: 0;
}

.day-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.day-status.no-entry {
    color: var(--text-muted);
    opacity: 0.7;
}

.day-status.no-entry i {
    font-size: 1rem;
}

.day-status.holiday-label {
    color: var(--info-color);
}

.day-status.holiday-label i {
    font-size: 0.7rem;
}

/* Time Blocks Visual */
.time-blocks-visual {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.time-bar {
    display: flex;
    gap: 4px;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.time-block {
    height: 100%;
    border-radius: 4px;
    transition: width var(--transition-normal);
}

.time-labels {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
}

.time-labels span {
    font-weight: 500;
}

/* Day Summary Column */
.day-summary {
    text-align: right;
    min-width: 100px;
}

.worked-time {
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
}

.overtime {
    font-size: 0.8rem;
    font-weight: 600;
}

.overtime.positive {
    color: var(--success-color);
}

.overtime.negative {
    color: var(--danger-color);
}

.target-time {
    font-size: 0.85rem;
}

/* Day Actions Column */
.day-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.day-row:hover .day-actions {
    opacity: 1;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--brand-color);
    color: white;
}

/* ============================================
   Month Progress Bar
   ============================================ */
.month-progress-bar {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.progress-info .remaining {
    color: var(--text-muted);
}

.progress-info .complete {
    color: var(--success-color);
    font-weight: 600;
}

.progress-track {
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 3px;
    transition: width var(--transition-normal);
}

.progress-fill.complete {
    background: var(--success-color);
}

/* ============================================
   Navigation Panel (Right 40%)
   ============================================ */
.nav-panel {
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ============================================
   Mini Calendar
   ============================================ */
.mini-calendar {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cal-month {
    font-weight: 700;
    font-size: 1rem;
}

.cal-nav {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cal-nav:hover {
    background: var(--brand-color);
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 0.5rem 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.cal-day:hover:not(.empty) {
    background: var(--bg-light);
}

.cal-day.empty {
    cursor: default;
}

.cal-day.weekend {
    color: var(--text-muted);
}

.cal-day.holiday {
    color: var(--info-color);
}

.cal-entry-marker {
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
}

.cal-day.current-week {
    background: rgba(255, 119, 90, 0.1);
    font-weight: 600;
}

.cal-day.today {
    background: var(--brand-color);
    color: white;
    font-weight: 700;
}

.cal-day.today .cal-entry-marker {
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.95);
}

/* ============================================
   Quick Actions
   ============================================ */
.quick-actions {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.quick-actions h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-actions h4 i {
    color: var(--warning-color);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.action-buttons.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn i {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.action-btn span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.action-btn:hover {
    background: var(--bg-card);
    border-color: var(--brand-color);
    transform: translateY(-2px);
}

.action-btn:hover i,
.action-btn:hover span {
    color: var(--brand-color);
}

.action-btn.primary {
    background: var(--brand-gradient);
    border-color: transparent;
}

.action-btn.primary i,
.action-btn.primary span {
    color: white;
}

.action-btn.primary:hover {
    background: var(--brand-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ============================================
   Part-Time Schedule Control
   ============================================ */
.parttime-schedule {
    padding: 0 1.25rem 1.25rem;
}

.parttime-schedule h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.parttime-schedule h4 i {
    color: var(--brand-color);
}

.schedule-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.schedule-grid {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.schedule-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.25rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.schedule-day:hover:not(.is-holiday) {
    border-color: var(--brand-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.schedule-day.off-full {
    background: var(--bg-light);
    border-color: var(--text-muted);
}

.schedule-day.off-full .schedule-day-status i {
    color: var(--text-muted);
}

.schedule-day.off-morning,
.schedule-day.off-afternoon {
    background: linear-gradient(180deg, var(--bg-light) 50%, var(--bg-card) 50%);
    border-color: var(--warning-color);
}

.schedule-day.off-morning .schedule-day-status i,
.schedule-day.off-afternoon .schedule-day-status i {
    color: var(--warning-color);
}

.schedule-day.has-override {
    border-style: dashed;
    border-color: var(--brand-color);
}

.schedule-day.is-holiday {
    background: var(--info-bg);
    border-color: var(--info-color);
    cursor: default;
}

.schedule-day.is-holiday .schedule-day-status i {
    color: var(--info-color);
}

.schedule-day-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.schedule-day-status {
    font-size: 1rem;
}

.schedule-day-status i {
    color: var(--success-color);
}

.override-indicator {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-color);
}

.schedule-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.schedule-legend span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.schedule-legend i {
    font-size: 0.7rem;
}

.schedule-legend .override-marker {
    color: var(--brand-color);
    font-weight: 600;
}

/* Off-Day Toggle Modal */
.offday-toggle-popover {
    position: absolute;
    z-index: 1050;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    min-width: 180px;
}

.offday-toggle-popover h5 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.offday-toggle-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.offday-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.offday-option:hover {
    background: var(--bg-light);
}

.offday-option.active {
    background: var(--brand-color);
    color: white;
}

.offday-option i {
    width: 16px;
    text-align: center;
}

.offday-option span {
    font-size: 0.75rem;
}

.offday-toggle-footer {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
}

.offday-toggle-footer button {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.offday-reset-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.offday-reset-btn:hover {
    background: var(--bg-light);
}

/* ============================================
   Monthly Approval Section
   ============================================ */
.month-approval-section {
    padding: 0 1.25rem 1.25rem;
}

.approval-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.75rem;
}

.approval-alert.warning {
    background: var(--warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.approval-alert .alert-icon {
    color: var(--warning-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.approval-alert .alert-content {
    flex: 1;
    min-width: 0;
}

.approval-alert .alert-content strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.approval-alert .alert-content p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.approval-alert .alert-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.approval-alert .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.approval-alert .btn-sm:hover {
    background: var(--bg-light);
}

.approval-alert .btn-sm.primary {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.approval-alert .btn-sm.primary:hover {
    background: #059669;
}

.inline-form {
    display: inline;
}

.approval-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    text-align: center;
}

.approval-card.approved {
    background: var(--success-bg);
}

.approval-card.rejected {
    background: var(--danger-bg);
}

.approval-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.approval-month {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.approved {
    background: var(--success-color);
    color: white;
}

.status-badge.rejected {
    background: var(--danger-color);
    color: white;
}

.status-badge.pending {
    background: var(--warning-color);
    color: white;
}

.approval-actions {
    margin-top: 1rem;
}

.pending-list-row {
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.pending-list-row:first-of-type {
    border-top: none;
}

.pending-list-row .approval-actions {
    margin-top: 0.5rem;
}

.approve-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--success-color);
    border: none;
    border-radius: var(--border-radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.approve-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.revoke-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    background: transparent;
    border: 1px solid var(--warning-color, #f59e0b);
    border-radius: var(--border-radius-sm);
    color: var(--warning-color, #f59e0b);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.revoke-btn:hover {
    background: var(--warning-color, #f59e0b);
    color: white;
    transform: translateY(-1px);
}

/* ============================================
   Day Details Panel
   ============================================ */
.day-details-panel {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.details-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    text-align: center;
    color: var(--text-muted);
}

.details-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.details-placeholder p {
    font-size: 0.9rem;
    max-width: 200px;
}

.details-content {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.details-header {
    margin-bottom: 1rem;
}

.details-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.details-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.details-badges .badge {
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* ============================================
   Entry Type Tabs
   ============================================ */
.entry-type-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.type-tab {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.type-tab:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.type-tab.active {
    background: var(--brand-color);
    border-color: var(--brand-color);
    color: white;
}

/* ============================================
   Quick Presets
   ============================================ */
.quick-presets {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.preset-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px dashed var(--border-color);
    background: transparent;
    border-radius: var(--border-radius-sm);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.preset-btn i {
    font-size: 1rem;
}

.preset-btn:hover {
    border-style: solid;
    border-color: var(--brand-color);
    color: var(--brand-color);
    background: rgba(255, 119, 90, 0.05);
}

/* ============================================
   Time Block Input
   ============================================ */
.time-block-input {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
}

.time-block-input label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.time-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    background: var(--bg-card);
}

.time-input:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 2px rgba(255, 119, 90, 0.15);
}

.time-sep {
    color: var(--text-muted);
    font-weight: 500;
}

.category-select {
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    background: var(--bg-card);
}

.category-select:focus {
    outline: none;
    border-color: var(--brand-color);
}

/* ============================================
   Break Input
   ============================================ */
.break-input {
    margin-bottom: 1rem;
}

.break-input label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.break-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.break-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.break-btn:hover {
    background: var(--brand-color);
    border-color: var(--brand-color);
    color: white;
}

.break-control input {
    width: 60px;
    padding: 0.375rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 600;
}

.break-control input:focus {
    outline: none;
    border-color: var(--brand-color);
}

.break-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Manual Entry Fields
   ============================================ */
.manual-input,
.manual-category {
    margin-bottom: 1rem;
}

.manual-input label,
.manual-category label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.duration-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.duration-input input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.duration-input input:focus {
    outline: none;
    border-color: var(--brand-color);
}

.duration-unit {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.duration-display {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   Weekend Option
   ============================================ */
.weekend-option {
    padding: 0.75rem;
    background: var(--warning-bg);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-color);
}

.weekend-option small {
    display: block;
    margin-top: 0.25rem;
    margin-left: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Entry Summary
   ============================================ */
.entry-summary {
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.summary-row span:first-child {
    color: var(--text-secondary);
}

.summary-row.highlight {
    border-top: 1px solid var(--border-color);
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    font-weight: 600;
}

.total-time {
    font-weight: 700;
}

.balance-time {
    color: var(--success-color);
}

.balance-time.negative {
    color: var(--danger-color);
}

/* ============================================
   Entry Actions
   ============================================ */
.entry-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-delete {
    width: 40px;
    height: 40px;
    border: 1px solid var(--danger-color);
    background: transparent;
    border-radius: var(--border-radius-sm);
    color: var(--danger-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background: var(--danger-color);
    color: white;
}

.btn-cancel {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-cancel:hover {
    background: var(--bg-light);
}

.btn-save {
    flex: 2;
    padding: 0.625rem 1rem;
    border: none;
    background: var(--brand-gradient);
    border-radius: var(--border-radius-sm);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.btn-save:hover {
    background: var(--brand-color-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* ============================================
   Quick Fill Modal
   ============================================ */
.quick-fill-days {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-fill-day {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-fill-day:hover:not(.disabled) {
    border-color: var(--brand-color);
    background: var(--bg-card);
}

.quick-fill-day.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quick-fill-day.has-entry {
    background: var(--warning-bg);
    border-color: var(--warning-color);
}

.quick-fill-day input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-color);
}

.quick-fill-day .day-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-fill-day .day-label strong {
    min-width: 24px;
}

/* ============================================
   Login Page
   ============================================ */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-header {
    background: var(--brand-gradient);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.login-header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

.login-body {
    padding: 2rem;
}

/* ============================================
   Cards (for other pages)
   ============================================ */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* ============================================
   Tables
   ============================================ */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom-width: 2px;
}

.table td {
    vertical-align: middle;
}

/* ============================================
   Forms
   ============================================ */
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 119, 90, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

/* ============================================
   Reports
   ============================================ */
.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-bar {
    height: 8px;
    border-radius: 4px;
    background-color: #E9ECEF;
    overflow: hidden;
    margin-top: 0.5rem;
}

.category-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ============================================
   Admin Tables
   ============================================ */
.admin-table {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-table .table {
    margin-bottom: 0;
}

.admin-table .table th {
    background-color: #F8F9FA;
}

/* ============================================
   Stat Cards (for other pages)
   ============================================ */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-value.positive {
    color: var(--success-color);
}

.stat-card .stat-value.negative {
    color: var(--danger-color);
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ============================================
   Badges & Labels
   ============================================ */
.badge {
    font-weight: 500;
}

.status-active {
    color: var(--success-color);
}

.status-inactive {
    color: var(--danger-color);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 1200px) {
    .dashboard-split {
        grid-template-columns: 1fr 340px;
    }
}

@media (max-width: 992px) {
    .dashboard-split {
        grid-template-columns: 1fr;
    }
    
    .nav-panel {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .stats-bar-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .day-row {
        grid-template-columns: 60px 1fr auto;
    }
    
    .day-actions {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .stats-bar {
        padding: 0.5rem 1rem;
    }
    
    .stat-item .stat-label {
        display: none;
    }
    
    .day-list-panel {
        padding: 1rem;
    }
    
    .week-title h2 {
        font-size: 1.25rem;
    }
    
    .day-row {
        grid-template-columns: 50px 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .day-summary {
        display: none;
    }
    
    .day-number {
        font-size: 1.25rem;
    }
}

/* ============================================
   Utilities
   ============================================ */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .btn,
    .no-print,
    .nav-panel,
    .stats-bar {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #DEE2E6;
    }
    
    body {
        background-color: white;
    }
    
    .dashboard-split {
        grid-template-columns: 1fr;
    }
}
