/* Main styles for ConsultClock */
/* Variables defined in theme.css */

/* Dark theme disabled */

/* Base styles with improved defaults */
html {
    box-sizing: border-box;
    font-size: 16px;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    margin: 0;
    padding: 0;
    background-color: var(--primary-50);
    color: var(--primary-800);

    /* Dark mode adjustments */
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Dark theme body styles disabled */

/* Modern container with responsive padding */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding: var(--space-6);
    }
}

/* Modern text selection styling */
::selection {
    background-color: var(--accent-200);
    color: var(--accent-900);
}

/* Logo styling - modern and responsive */
.logo-area {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.logo-image:hover {
    transform: scale(1.05);
}

.text-logo {
    /* Copy exact H1 styling */
    color: var(--primary-800);
    line-height: var(--line-height-tight);
    margin-top: 0;
    margin-bottom: var(--space-4);
    font-weight: 600;
    font-size: 2.2rem;
    /* Add proper letter spacing */
    letter-spacing: normal;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
}

/* Ensure both parts have the same font weight with higher specificity */
.text-logo .logo-consult,
.text-logo .logo-click {
    font-weight: 600 !important;
}

.text-logo .logo-consult {
    color: #293241 !important;
}

.logo-consult {
    color: #293241 !important;
    letter-spacing: 0.02em;
    font-weight: 600 !important;
}

.logo-click {
    color: #2CBEF4;
    position: relative;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.02em;
    margin-left: 0.1em;
    font-weight: 600 !important;
}

.logo-click i {
    color: #2CBEF4;
    margin-left: 0.15em;
    font-size: 0.85em;
    vertical-align: middle;
}

.dark-theme .text-logo,
@media (max-width: 0px) {
    .text-logo {
        color: var(--primary-100);
    }
}

.text-logo span {
    font-weight: var(--font-weight-normal);
    color: var(--accent-500);
}

/* Header and navigation styling - with modern shadow and transitions */
header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: var(--z-30);
    padding: var(--space-3) 0;
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.dark-theme header {
    background-color: var(--surface-1);
    box-shadow: var(--shadow-lg);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Desktop Navigation - with modern styling */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.desktop-nav a {
    color: var(--primary-700);
    text-decoration: none;
    padding: var(--space-2) var(--space-1);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    font-weight: var(--font-weight-medium);
    position: relative;
}

.desktop-nav a:hover {
    color: var(--accent-600);
    background-color: var(--accent-50);
}

.desktop-nav a.active {
    color: var(--accent-600);
    font-weight: var(--font-weight-semibold);
}

.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-500);
    border-radius: var(--radius-full);
}

.dark-theme .desktop-nav a {
    color: var(--primary-400);
}

.dark-theme .desktop-nav a:hover {
    color: var(--accent-400);
    background-color: rgba(34, 197, 94, 0.1);
}

.dark-theme .desktop-nav a.active {
    color: var(--accent-400);
}
.dark-theme .desktop-nav a.active::after {
    background-color: var(--accent-400);
}

/* Mobile Navigation - Modern mobile menu */
.mobile-nav {
    background-color: white;
    width: 100%;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--primary-100);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    transform: translateY(-10px);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: var(--z-20);
}

.mobile-nav.show {
    transform: translateY(0);
    opacity: 1;
}

.dark-theme .mobile-nav {
    background-color: var(--surface-2);
    border-top: 1px solid var(--primary-700);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    padding: var(--space-4);
    background-color: var(--primary-50);
    border-bottom: 1px solid var(--primary-100);
    transition: background-color var(--transition-normal);
}

.dark-theme .mobile-user-info {
    background-color: var(--surface-3);
    border-bottom: 1px solid var(--primary-700);
}

.mobile-user-info .user-avatar {
    margin-right: var(--space-3);
    width: 40px;
    height: 40px;
    font-size: var(--font-size-lg);
}

.mobile-user-info span {
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    color: var(--primary-800);
}

.dark-theme .mobile-user-info span {
    color: var(--primary-100);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    color: var(--primary-700);
    text-decoration: none;
    padding: var(--space-4) var(--space-4);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--primary-100);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
}

.dark-theme .mobile-nav a,
@media (max-width: 0px) {
    .mobile-nav a {
        color: var(--primary-300);
        border-bottom: 1px solid var(--primary-700);
    }
}

.mobile-nav a i {
    width: 24px;
    margin-right: var(--space-3);
    color: var(--primary-500);
    transition: color var(--transition-fast);
}

.dark-theme .mobile-nav a i,
@media (max-width: 0px) {
    .mobile-nav a i {
        color: var(--primary-400);
    }
}

.mobile-nav a:hover {
    background-color: var(--primary-100);
    color: var(--accent-500);
}

.dark-theme .mobile-nav a:hover,
@media (max-width: 0px) {
    .mobile-nav a:hover {
        background-color: var(--primary-800);
        color: var(--accent-400);
    }
}

.mobile-nav a:hover i {
    color: var(--accent-500);
}

.dark-theme .mobile-nav a:hover i,
@media (max-width: 0px) {
    .mobile-nav a:hover i {
        color: var(--accent-400);
    }
}

.mobile-nav a.active {
    background-color: var(--accent-50);
    color: var(--accent-600);
    font-weight: var(--font-weight-semibold);
    border-left: 3px solid var(--accent-500);
}

.dark-theme .mobile-nav a.active,
@media (max-width: 0px) {
    .mobile-nav a.active {
        background-color: rgba(34, 197, 94, 0.1);
        color: var(--accent-400);
        border-left: 3px solid var(--accent-400);
    }
}

.mobile-nav a.active i {
    color: var(--accent-500);
}

.dark-theme .mobile-nav a.active i,
@media (max-width: 0px) {
    .mobile-nav a.active i {
        color: var(--accent-400);
    }
}

.mobile-logout {
    margin-top: var(--space-2);
    color: var(--danger-600) !important;
    background-color: var(--danger-50);
    border-bottom: none !important;
}

.dark-theme .mobile-logout,
@media (max-width: 0px) {
    .mobile-logout {
        background-color: rgba(220, 38, 38, 0.1);
        color: var(--danger-400) !important;
    }
}

.mobile-logout i {
    color: var(--danger-500) !important;
}

.dark-theme .mobile-logout i,
@media (max-width: 0px) {
    .mobile-logout i {
        color: var(--danger-400) !important;
    }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    background: none;
    border: none;
    padding: var(--space-2);
    font-size: var(--font-size-xl);
    color: var(--primary-700);
    cursor: pointer;
    display: none;
    transition: color var(--transition-fast);
}

.mobile-menu-toggle:hover {
    color: var(--accent-500);
}

.dark-theme .mobile-menu-toggle,
@media (max-width: 0px) {
    .mobile-menu-toggle {
        color: var(--primary-300);
    }
    
    .mobile-menu-toggle:hover {
        color: var(--accent-400);
    }
}

/* Dropdown menu styling - modern and interactive */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: var(--space-5);
}

.dropdown-toggle {
    color: var(--primary-700);
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.dropdown-toggle:hover {
    background-color: var(--primary-100);
    color: var(--accent-600);
}

.dark-theme .dropdown-toggle,
@media (max-width: 0px) {
    .dropdown-toggle {
        color: var(--primary-300);
    }
    
    .dropdown-toggle:hover {
        background-color: var(--primary-700);
        color: var(--accent-400);
    }
}

.user-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--accent-500);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    color: white;
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    white-space: nowrap;
}

.dropdown-toggle span {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 150px;
}

.dropdown:hover .user-avatar {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    z-index: var(--z-30);
    margin-top: var(--space-3);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    overflow: hidden;
}

.dark-theme .dropdown-menu,
@media (max-width: 0px) {
    .dropdown-menu {
        background-color: var(--surface-2);
        box-shadow: var(--shadow-2xl);
    }
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background-color: white;
    transform: rotate(45deg);
    border-radius: 2px;
    box-shadow: var(--shadow-sm);
    z-index: -1;
    transition: background-color var(--transition-normal);
}

.dark-theme .dropdown-menu::before,
@media (max-width: 0px) {
    .dropdown-menu::before {
        background-color: var(--surface-2);
    }
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu a {
    color: var(--primary-700);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: var(--font-weight-medium);
}

.dark-theme .dropdown-menu a,
@media (max-width: 0px) {
    .dropdown-menu a {
        color: var(--primary-300);
    }
}

.dropdown-menu a i {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    color: var(--primary-500);
    transition: color var(--transition-fast);
}

.dark-theme .dropdown-menu a i,
@media (max-width: 0px) {
    .dropdown-menu a i {
        color: var(--primary-400);
    }
}

.dropdown-menu a:hover {
    background-color: var(--primary-50);
    color: var(--accent-600);
}

.dropdown-menu a:hover i {
    color: var(--accent-500);
}

.dark-theme .dropdown-menu a:hover,
@media (max-width: 0px) {
    .dropdown-menu a:hover {
        background-color: var(--primary-800);
        color: var(--accent-400);
    }
    
    .dropdown-menu a:hover i {
        color: var(--accent-400);
    }
}

.dropdown-menu .dropdown-divider {
    height: 1px;
    background-color: var(--primary-100);
    margin: var(--space-1) 0;
}

.dark-theme .dropdown-menu .dropdown-divider,
@media (max-width: 0px) {
    .dropdown-menu .dropdown-divider {
        background-color: var(--primary-700);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-area {
        margin-bottom: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .logo-image {
        max-height: 40px;
    }

    .mobile-menu-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

/* Common form styles - Modern UI components */
.panel {
    background-color: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-6);
    padding: var(--space-6);
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.panel:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

html.dark-theme .panel,
.dark-theme .panel,
@media (max-width: 0px) {
    .panel {
        background-color: var(--surface-1);
        box-shadow: var(--shadow-lg);
    }
}

html.dark-theme .panel:hover,
.dark-theme .panel:hover,
@media (max-width: 0px) {
    .panel:hover {
        box-shadow: var(--shadow-xl);
    }
}

/* Modern typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-800);
    line-height: var(--line-height-tight);
    margin-top: 0;
    margin-bottom: var(--space-4);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.025em;
    transition: color var(--transition-normal);
}

.dark-theme h1, .dark-theme h2, .dark-theme h3, .dark-theme h4, .dark-theme h5, .dark-theme h6,
@media (max-width: 0px) {
    h1, h2, h3, h4, h5, h6 {
        color: var(--primary-100);
    }
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
}

/* Modern form styles */
.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-medium);
    color: var(--primary-700);
    font-size: var(--font-size-sm);
    transition: color var(--transition-normal);
}

.dark-theme .form-group label,
@media (max-width: 0px) {
    .form-group label {
        color: var(--primary-300);
    }
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-md);
    background-color: white;
    box-sizing: border-box;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all var(--transition-fast);
    color: var(--primary-800);
    box-shadow: var(--shadow-xs);
}

.dark-theme .form-group input,
.dark-theme .form-group select,
.dark-theme .form-group textarea,
@media (max-width: 0px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: var(--surface-2);
        border-color: var(--primary-700);
        color: var(--primary-200);
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.dark-theme .form-group input:focus,
.dark-theme .form-group select:focus,
.dark-theme .form-group textarea:focus,
@media (max-width: 0px) {
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--accent-500);
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
    }
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--primary-400);
}

.dark-theme .form-group input::placeholder,
.dark-theme .form-group textarea::placeholder,
@media (max-width: 0px) {
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: var(--primary-500);
    }
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

/* Modern button styles */
.button,
button {
    background-color: #293241;
    color: white;
    border: none;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.button::after,
button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: background-color var(--transition-fast);
}

.button:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button:hover::after,
button:hover::after {
    background-color: rgba(255, 255, 255, 0.1);
}

.button:active,
button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.button:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.button-primary,
button.primary {
    background-color: #293241;
}

.button-primary:hover,
button.primary:hover {
    background-color: #1e2330;
}

.button-primary:focus,
button.primary:focus {
    box-shadow: 0 0 0 3px rgba(41, 50, 65, 0.3);
}

.button-success,
button.success {
    background-color: var(--accent-600);
}

.button-success:focus,
button.success:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.button-danger,
button.danger {
    background-color: var(--danger-600);
}

.button-danger:focus,
button.danger:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

.button-outline,
button.outline {
    background-color: transparent;
    border: 2px solid var(--primary-300);
    color: var(--primary-700);
}

.button-outline:hover,
button.outline:hover {
    border-color: var(--primary-500);
    color: var(--primary-800);
    background-color: var(--primary-50);
}

.dark-theme .button-outline,
.dark-theme button.outline,
@media (max-width: 0px) {
    .button-outline,
    button.outline {
        border-color: var(--primary-600);
        color: var(--primary-300);
    }
    
    .button-outline:hover,
    button.outline:hover {
        border-color: var(--primary-400);
        color: var(--primary-200);
        background-color: var(--primary-800);
    }
}

/* Button with icon */
.button i,
button i {
    font-size: 0.9em;
}

/* Disabled button styles */
button:disabled {
    background-color: var(--primary-300);
    color: var(--primary-100);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
}

button:disabled:hover::after {
    background-color: transparent;
}

.dark-theme button:disabled,
@media (max-width: 0px) {
    button:disabled {
        background-color: var(--primary-700);
        color: var(--primary-500);
    }
}

/* Modern Table styling */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--space-6) 0;
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-normal);
}

html.dark-theme table,
.dark-theme table,
@media (max-width: 0px) {
    table {
        border-color: var(--primary-700);
        background-color: var(--surface-2);
    }
}

table:hover {
    box-shadow: var(--shadow-lg);
}

table th,
table td {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

table th {
    background-color: var(--primary-700);
    color: white;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    letter-spacing: 0.05em;
    border-bottom: none;
}

.dark-theme table th,
@media (max-width: 0px) {
    table th {
        background-color: var(--primary-800);
    }
}

table td {
    border-bottom: 1px solid var(--primary-100);
    color: var(--primary-700);
    font-size: var(--font-size-base);
}

.dark-theme table td,
@media (max-width: 0px) {
    table td {
        border-bottom-color: var(--primary-700);
        color: var(--primary-300);
    }
}

table tr:last-child td {
    border-bottom: none;
}

table tr:nth-child(even) {
    background-color: var(--primary-50);
}

.dark-theme table tr:nth-child(even),
@media (max-width: 0px) {
    table tr:nth-child(even) {
        background-color: var(--surface-3);
    }
}

table tr:hover td {
    background-color: var(--accent-50);
    color: var(--primary-900);
}

.dark-theme table tr:hover td,
@media (max-width: 0px) {
    table tr:hover td {
        background-color: rgba(16, 185, 129, 0.1);
        color: var(--primary-100);
    }
}

/* Responsive tables */
@media (max-width: 768px) {
    table.responsive {
        box-shadow: none;
        border: none;
        background-color: transparent;
    }
    
    table.responsive tr {
        display: block;
        margin-bottom: var(--space-4);
        border-radius: var(--radius-lg);
        border: 1px solid var(--primary-200);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
        background-color: white;
    }
    
    @media (max-width: 0px) {
        table.responsive tr {
            border-color: var(--primary-700);
            background-color: var(--surface-2);
        }
    }
    
    table.responsive thead {
        display: none;
    }
    
    table.responsive td {
        display: flex;
        padding: var(--space-3) var(--space-4);
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--primary-100);
    }
    
    @media (max-width: 0px) {
        table.responsive td {
            border-bottom-color: var(--primary-700);
        }
    }
    
    table.responsive td:last-child {
        border-bottom: none;
    }
    
    table.responsive td::before {
        content: attr(data-label);
        font-weight: var(--font-weight-semibold);
        color: var(--primary-700);
        margin-right: var(--space-2);
    }
    
    @media (max-width: 0px) {
        table.responsive td::before {
            color: var(--primary-300);
        }
    }
    
    table.responsive tr:nth-child(even) {
        background-color: white;
    }
    
    @media (max-width: 0px) {
        table.responsive tr:nth-child(even) {
            background-color: var(--surface-2);
        }
    }
    
    table.responsive tr:hover td {
        background-color: transparent;
    }
    
    table.responsive tr:hover {
        box-shadow: var(--shadow-md);
    }
}

/* Modern Modal styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-50);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    padding: var(--space-4);
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

html.dark-theme .modal-backdrop,
.dark-theme .modal-backdrop,
@media (max-width: 0px) {
    .modal-backdrop {
        background-color: rgba(0, 0, 0, 0.8);
    }
}

.modal {
    background-color: white;
    border-radius: var(--radius-xl);
    width: 95%;
    max-width: 600px;
    box-shadow: var(--shadow-2xl);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--space-16));
}

.modal-backdrop.show .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

html.dark-theme .modal,
.dark-theme .modal,
@media (max-width: 0px) {
    .modal {
        background-color: var(--surface-1);
        box-shadow: var(--shadow-xl);
    }
}

.modal-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--primary-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color var(--transition-normal);
}

.dark-theme .modal-header,
@media (max-width: 0px) {
    .modal-header {
        border-bottom-color: var(--primary-700);
    }
}

.modal-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-800);
    margin: 0;
    transition: color var(--transition-normal);
}

.dark-theme .modal-title,
@media (max-width: 0px) {
    .modal-title {
        color: var(--primary-100);
    }
}

.modal-close {
    background: none;
    border: none;
    height: 36px;
    width: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-500);
    transition: all var(--transition-fast);
    font-size: var(--font-size-xl);
}

.modal-close:hover {
    background-color: var(--primary-100);
    color: var(--primary-700);
    transform: rotate(90deg);
}

.dark-theme .modal-close,
@media (max-width: 0px) {
    .modal-close {
        color: var(--primary-400);
    }
    
    .modal-close:hover {
        background-color: var(--primary-800);
        color: var(--primary-200);
    }
}

.modal-body {
    padding: var(--space-6);
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--primary-100);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    transition: border-color var(--transition-normal);
}

.dark-theme .modal-footer,
@media (max-width: 0px) {
    .modal-footer {
        border-top-color: var(--primary-700);
    }
}

@media (max-width: 640px) {
    .modal {
        width: 100%;
        max-height: 90vh;
        margin-bottom: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        align-self: flex-end;
    }
    
    .modal-backdrop.show .modal {
        transform: translateY(0) scale(1);
    }
}

/* Modern Dashboard styles */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.stat-card {
    background-color: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

html.dark-theme .stat-card,
.dark-theme .stat-card,
@media (max-width: 0px) {
    .stat-card {
        background-color: var(--surface-2);
    }
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-400), var(--accent-600));
    transition: height var(--transition-normal);
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    height: 6px;
}

.stat-card .icon {
    font-size: var(--font-size-5xl);
    color: var(--accent-500);
    margin-bottom: var(--space-4);
    transition: transform var(--transition-fast), color var(--transition-normal);
}

.dark-theme .stat-card .icon,
@media (max-width: 0px) {
    .stat-card .icon {
        color: var(--accent-400);
    }
}

.stat-card:hover .icon {
    transform: scale(1.1);
    color: var(--accent-600);
}

.stat-card .value {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-800);
    margin-bottom: var(--space-2);
    transition: color var(--transition-normal);
    line-height: 1.2;
}

.dark-theme .stat-card .value,
@media (max-width: 0px) {
    .stat-card .value {
        color: var(--primary-100);
    }
}

.stat-card .label {
    color: var(--primary-500);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-normal);
}

.dark-theme .stat-card .label,
@media (max-width: 0px) {
    .stat-card .label {
        color: var(--primary-400);
    }
}

/* Different color accents for each stat card */
.stat-card:nth-child(1)::before {
    background: linear-gradient(to right, var(--accent-400), var(--accent-600));
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(to right, #3b82f6, #2563eb);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(to right, #8b5cf6, #6d28d9);
}

.stat-card:nth-child(4)::before {
    background: linear-gradient(to right, #ec4899, #be185d);
}

/* Dashboard card modifiers */
.stat-card.danger .icon,
.stat-card.danger .value {
    color: var(--danger-600);
}

.stat-card.danger::before {
    background: linear-gradient(to right, var(--danger-400), var(--danger-600));
}

.stat-card.success .icon,
.stat-card.success .value {
    color: var(--accent-600);
}

.stat-card.success::before {
    background: linear-gradient(to right, var(--accent-400), var(--accent-600));
}

/* Alternative style for dashboard cards */
.stat-card.alt {
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
}

.stat-card.alt .icon {
    font-size: var(--font-size-3xl);
    margin-bottom: 0;
    width: 60px;
    height: 60px;
    background-color: var(--accent-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color var(--transition-normal);
}

.dark-theme .stat-card.alt .icon,
@media (max-width: 0px) {
    .stat-card.alt .icon {
        background-color: rgba(16, 185, 129, 0.2);
    }
}

.stat-card.alt .content {
    flex: 1;
}

.stat-card.alt .value {
    font-size: var(--font-size-3xl);
    text-align: left;
    margin-bottom: var(--space-1);
}

.stat-card.alt .label {
    text-align: left;
}

/* Modern Timer section styling */
.timer-controls {
    padding: 0;
    margin-bottom: var(--space-8);
    display: block;
}

.timer-display {
    font-size: var(--font-size-5xl);
    font-family: 'JetBrains Mono', monospace, var(--font-family);
    font-weight: var(--font-weight-bold);
    margin: var(--space-6) auto;
    color: var(--primary-800);
    text-align: center;
    max-width: 400px;
    padding: var(--space-6) var(--space-4);
    background: var(--primary-50);
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary-100);
    box-shadow: var(--shadow-inner), var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.dark-theme .timer-display,
@media (max-width: 0px) {
    .timer-display {
        color: var(--primary-100);
        background: var(--surface-2);
        border-color: var(--primary-700);
    }
}

.timer-display::before,
.timer-display::after {
    display: none;
}

.timer-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin: var(--space-6) auto;
    max-width: 400px;
}

.timer-buttons button {
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    flex: 1;
    font-weight: var(--font-weight-medium);
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.timer-buttons button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.timer-buttons button:active::before {
    width: 300px;
    height: 300px;
    transition: width 0.3s, height 0.3s;
}

.timer-buttons button.primary {
    background-color: var(--accent-500);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.25);
}

.timer-buttons button.primary:hover {
    background-color: var(--accent-600);
    box-shadow: 0 6px 10px rgba(16, 185, 129, 0.3);
}

.timer-buttons button.primary:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
}

.timer-buttons button.danger {
    background-color: var(--danger-500);
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.25);
}

.timer-buttons button.danger:hover {
    background-color: var(--danger-600);
    box-shadow: 0 6px 10px rgba(220, 38, 38, 0.3);
}

.timer-buttons button.danger:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.4);
}

/* Timer responsive */
@media (max-width: 768px) {
    .timer-display {
        font-size: var(--font-size-4xl);
        padding: var(--space-4);
    }
    
    .timer-buttons {
        flex-wrap: wrap;
    }
    
    .timer-buttons button {
        min-width: auto;
        flex-basis: calc(50% - var(--space-2));
    }
}

/* Filter controls styling */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius-md);
    border: 1px solid #e0e0e0;
    align-items: flex-end;
}

.filter-controls .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.filter-controls button {
    margin-bottom: 0;
    height: 42px;
}

/* Client management styles */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 20px;
    margin-bottom: 20px;
}

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

.notes-section {
    background-color: #f8fafc;
    border-radius: var(--border-radius-md);
    padding: 15px;
    border: 1px solid #e1e7ef;
    margin-top: 15px;
}

.notes-section h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.1rem;
    border-bottom: 1px solid #e1e7ef;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.success-message {
    background-color: white;
    color: var(--success);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    margin-bottom: 20px;
    display: none;
    border: 2px solid var(--success);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.error-message {
    background-color: var(--accent);
    color: white;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

/* Actions button styling */
.actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.actions button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.actions button:hover {
    transform: translateY(-2px);
}

.actions button i {
    font-size: 1rem;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }

    .header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions h1 {
        margin-bottom: 15px;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    /* Table responsive styling */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table tr {
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: var(--border-radius-md);
        overflow: hidden;
    }

    table td {
        position: relative;
        padding-left: 50%;
        text-align: right;
        min-height: 30px;
    }

    table td:before {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 45%;
        white-space: nowrap;
        font-weight: 600;
        text-align: left;
    }

    /* Dynamic headers for time entries table */
    #time-entries-table td:nth-of-type(1):before {
        content: "Date";
    }

    #time-entries-table td:nth-of-type(2):before {
        content: "Client";
    }

    #time-entries-table td:nth-of-type(3):before {
        content: "Project";
    }

    #time-entries-table td:nth-of-type(4):before {
        content: "Duration";
    }

    #time-entries-table td:nth-of-type(5):before {
        content: "Description";
    }

    #time-entries-table td:nth-of-type(6):before {
        content: "Actions";
    }

    /* Dynamic headers for clients table */
    #clients-table td:nth-of-type(1):before {
        content: "Client Name";
    }

    #clients-table td:nth-of-type(2):before {
        content: "Contact";
    }

    #clients-table td:nth-of-type(3):before {
        content: "Email";
    }

    #clients-table td:nth-of-type(4):before {
        content: "Phone";
    }

    #clients-table td:nth-of-type(5):before {
        content: "Default Rate";
    }

    #clients-table td:nth-of-type(6):before {
        content: "Actions";
    }

    /* Mobile filter controls */
    .filter-controls {
        flex-direction: column;
    }

    .filter-controls .form-group {
        width: 100%;
    }

    /* Timer buttons on mobile */
    .timer-buttons {
        flex-wrap: wrap;
    }

    .timer-buttons button {
        flex: 1;
        min-width: 80px;
    }

    /* Modal adjustments for mobile */
    .modal {
        width: 95%;
    }
}

/* Mobile Navigation improvements */

/* Header and mobile toggle positioning */
@media (max-width: 768px) {
    header .container {
        position: relative;
        padding: 15px 20px;
    }

    .logo-area {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .mobile-menu-toggle {
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary);
        padding: 5px;
        cursor: pointer;
        z-index: 100;
    }
}

/* Mobile navigation container */
.mobile-nav {
    background-color: white;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid #eee;
    z-index: 999;
}

.mobile-nav .container {
    padding: 0;
}

/* User info section at top of mobile menu */
.mobile-user-info {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-user-info .user-avatar {
    width: 36px;
    height: 36px;
    margin-right: 15px;
}

/* Mobile nav links - clean vertical layout */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.mobile-nav-links a:last-child {
    border-bottom: none;
}

.mobile-nav-links a i {
    width: 24px;
    margin-right: 15px;
    text-align: center;
    color: var(--grey);
}

.mobile-nav-links a.active {
    border-left: 3px solid var(--secondary);
    background-color: rgba(25, 198, 128, 0.05);
}

.mobile-nav-links a.active i {
    color: var(--secondary);
}

.mobile-nav-links a:hover {
    background-color: #f8f9fa;
}

.mobile-nav-links a:hover i {
    color: var(--secondary);
}

/* Logout link special styling */
.mobile-nav-links a.mobile-logout {
    margin-top: 0;
    border-top: 1px solid #e0e0e0;
    color: var(--danger);
}

.mobile-nav-links a.mobile-logout i {
    color: var(--danger);
}

/* Responsive styles for the recent time entries section */

/* Responsive filter controls */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-controls .form-group {
    flex: 1;
    min-width: 150px;
}

.filter-controls button {
    align-self: flex-end;
    height: 38px;
    margin-top: auto;
}

/* Table responsiveness for smaller screens */
@media (max-width: 768px) {
    /* Create a card-based layout for mobile */
    #time-entries-table {
        border: 0;
    }
    
    #time-entries-table thead {
        display: none; /* Hide table headers on mobile */
    }
    
    #time-entries-table tr {
        display: block;
        margin-bottom: 20px;
        background-color: #f8f9fa;
        border-radius: var(--border-radius-md);
        box-shadow: var(--shadow-sm);
    }
    
    #time-entries-table td {
        display: block;
        position: relative;
        padding: 10px 15px;
        padding-left: 35%;
        text-align: right;
        border-bottom: 1px solid #e0e0e0;
    }
    
    #time-entries-table td:last-child {
        border-bottom: none;
        text-align: center;
        padding-left: 15px;
    }
    
    #time-entries-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 30%;
        white-space: nowrap;
        font-weight: bold;
        text-align: left;
    }
    
    /* Actions column alignment */
    #time-entries-table td:last-child button {
        margin: 5px;
    }
}

/* For medium-sized screens */
@media (min-width: 769px) and (max-width: 1024px) {
    #time-entries-table th:nth-child(5),
    #time-entries-table td:nth-child(5) {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Theme toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background-color: transparent;
    cursor: pointer;
    color: var(--primary-700);
    font-size: var(--font-size-xl);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    margin-left: var(--space-2);
}

.theme-toggle:hover {
    background-color: var(--primary-100);
    color: var(--primary-800);
    transform: rotate(15deg);
}

.dark-theme .theme-toggle,
@media (max-width: 0px) {
    .theme-toggle {
        color: var(--primary-300);
    }
    
    .theme-toggle:hover {
        background-color: var(--primary-700);
        color: var(--primary-200);
    }
}

/* Sun/moon icons switch */
.theme-toggle .light-icon,
#theme-toggle-mobile .light-icon,
.dropdown-menu a .light-icon {
    display: none;
}

.theme-toggle .dark-icon,
#theme-toggle-mobile .dark-icon,
.dropdown-menu a .dark-icon {
    display: inline-block;
}

.dark-theme .theme-toggle .light-icon,
.dark-theme #theme-toggle-mobile .light-icon,
.dark-theme .dropdown-menu a .light-icon,
@media (max-width: 0px) {
    .theme-toggle .light-icon,
    #theme-toggle-mobile .light-icon,
    .dropdown-menu a .light-icon {
        display: inline-block;
    }
    
    .theme-toggle .dark-icon,
    #theme-toggle-mobile .dark-icon,
    .dropdown-menu a .dark-icon {
        display: none;
    }
}

/* Theme label in dropdown */
.theme-label {
    margin-left: var(--space-2);
}

/* Mobile theme toggle */
#theme-toggle-mobile {
    display: flex;
    align-items: center;
    color: var(--primary-700);
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.dark-theme #theme-toggle-mobile,
@media (max-width: 0px) {
    #theme-toggle-mobile {
        color: var(--primary-300);
    }
}

#theme-toggle-mobile i {
    width: 24px;
    margin-right: var(--space-3);
}

/* Comprehensive Dark Mode Media Query - Overrides any syntax issues above */
@media (max-width: 0px) {
    /* Base styling */
    body {
        background-color: var(--surface-bg) !important;
        color: var(--primary-100) !important;
    }
    
    /* Text logo */
    .text-logo {
        color: var(--primary-100) !important;
    }
    
    /* Header */
    header {
        background-color: var(--surface-1) !important;
        box-shadow: var(--shadow-lg) !important;
    }
    
    /* Desktop navigation */
    .desktop-nav a {
        color: var(--primary-400) !important;
    }
    
    .desktop-nav a:hover {
        color: var(--accent-400) !important;
        background-color: rgba(34, 197, 94, 0.1) !important;
    }
    
    .desktop-nav a.active {
        color: var(--accent-400) !important;
    }
    
    .desktop-nav a.active::after {
        background-color: var(--accent-400) !important;
    }
    
    /* Mobile navigation - Critical for mobile view */
    .mobile-nav {
        background-color: var(--surface-2) !important;
        border-top: 1px solid var(--primary-700) !important;
    }
    
    .mobile-user-info {
        background-color: var(--surface-3) !important;
        border-bottom: 1px solid var(--primary-700) !important;
    }
    
    .mobile-user-info span {
        color: var(--primary-100) !important;
    }
    
    .mobile-nav a {
        color: var(--primary-300) !important;
        border-bottom: 1px solid var(--primary-700) !important;
    }
    
    .mobile-nav a i {
        color: var(--primary-400) !important;
    }
    
    .mobile-nav a:hover {
        background-color: var(--primary-800) !important;
        color: var(--accent-400) !important;
    }
    
    .mobile-nav a:hover i {
        color: var(--accent-400) !important;
    }
    
    .mobile-nav a.active {
        background-color: rgba(34, 197, 94, 0.1) !important;
        color: var(--accent-400) !important;
        border-left: 3px solid var(--accent-400) !important;
    }
    
    .mobile-nav a.active i {
        color: var(--accent-400) !important;
    }
    
    .mobile-logout {
        background-color: rgba(220, 38, 38, 0.1) !important;
        color: var(--danger-400) !important;
        border-bottom: 1px solid var(--primary-700) !important;
    }
    
    .mobile-logout i {
        color: var(--danger-400) !important;
    }
    
    .mobile-menu-toggle {
        color: var(--primary-300) !important;
    }
    
    /* Dropdown menus */
    .dropdown-toggle {
        color: var(--primary-300) !important;
    }
    
    .dropdown-menu {
        background-color: var(--surface-2) !important;
        box-shadow: var(--shadow-2xl) !important;
        border: 1px solid var(--primary-700) !important;
    }
    
    .dropdown-menu::before {
        background-color: var(--surface-2) !important;
    }
    
    .dropdown-menu a {
        color: var(--primary-300) !important;
    }
    
    .dropdown-menu a i {
        color: var(--primary-400) !important;
    }
    
    .dropdown-menu a:hover {
        background-color: var(--primary-800) !important;
        color: var(--accent-400) !important;
    }
    
    .dropdown-menu .dropdown-divider {
        background-color: var(--primary-700) !important;
    }
    
    /* Panels and cards */
    .panel {
        background-color: var(--surface-1) !important;
        box-shadow: var(--shadow-lg) !important;
    }
    
    .panel:hover {
        box-shadow: var(--shadow-xl) !important;
    }
    
    /* Headers */
    h1, h2, h3, h4, h5, h6 {
        color: var(--primary-100) !important;
    }
    
    /* Forms */
    .form-group label {
        color: var(--primary-300) !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: var(--surface-3) !important;
        border-color: var(--primary-700) !important;
        color: var(--primary-100) !important;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--accent-500) !important;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: var(--primary-500) !important;
    }
    
    /* Buttons */
    .button-outline,
    button.outline {
        border-color: var(--primary-600) !important;
        color: var(--primary-300) !important;
    }
    
    button:disabled {
        background-color: var(--primary-700) !important;
        color: var(--primary-500) !important;
    }
    
    /* Tables */
    table {
        border-color: var(--primary-700) !important;
        background-color: var(--surface-2) !important;
    }
    
    table th {
        background-color: var(--primary-800) !important;
    }
    
    table td {
        border-bottom-color: var(--primary-700) !important;
        color: var(--primary-300) !important;
    }
    
    table tr:nth-child(even) {
        background-color: var(--surface-3) !important;
    }
    
    table tr:hover td {
        background-color: rgba(16, 185, 129, 0.1) !important;
        color: var(--primary-100) !important;
    }
    
    /* Modals */
    .modal-backdrop {
        background-color: rgba(0, 0, 0, 0.8) !important;
    }
    
    .modal {
        background-color: var(--surface-1) !important;
        box-shadow: var(--shadow-xl) !important;
    }
    
    .modal-header {
        border-bottom-color: var(--primary-700) !important;
    }
    
    .modal-title {
        color: var(--primary-100) !important;
    }
    
    .modal-close {
        color: var(--primary-400) !important;
    }
    
    .modal-footer {
        border-top-color: var(--primary-700) !important;
    }
    
    /* Stat cards */
    .stat-card {
        background-color: var(--surface-2) !important;
    }
    
    .stat-card .icon {
        color: var(--accent-400) !important;
    }
    
    .stat-card .value {
        color: var(--primary-100) !important;
    }
    
    .stat-card .label {
        color: var(--primary-400) !important;
    }
    
    .stat-card.alt .icon {
        background-color: rgba(16, 185, 129, 0.2) !important;
    }
    
    /* Timer display */
    .timer-display {
        color: var(--primary-100) !important;
        background: var(--surface-2) !important;
        border-color: var(--primary-700) !important;
    }
    
    /* Theme toggle */
    .theme-toggle {
        color: var(--primary-300) !important;
    }
    
    .theme-toggle .light-icon,
    #theme-toggle-mobile .light-icon,
    .dropdown-menu a .light-icon {
        display: none !important;
    }
    
    #theme-toggle-mobile {
        color: var(--primary-300) !important;
    }
    
    /* Mobile responsive tables */
    @media (max-width: 768px) {
        table.responsive tr {
            border-color: var(--primary-700) !important;
            background-color: var(--surface-2) !important;
        }
        
        table.responsive td {
            border-bottom-color: var(--primary-700) !important;
        }
        
        table.responsive td::before {
            color: var(--primary-300) !important;
        }
        
        table.responsive tr:nth-child(even) {
            background-color: var(--surface-2) !important;
        }
    }
}

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
    background-color: rgba(108, 117, 125, 0.1);
}

.status-badge i {
    margin-right: 4px;
    font-size: 0.9em;
}

.status-badge.invoiced {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745 !important;
}

.status-badge.unbilled {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d !important;
}