:root {
    --primary: #02008f;      /* blue */
    --primary-light: #3330b3;
    --primary-soft: #e0e0ff;
    --secondary: #fe1c1c;     /* red */
    --secondary-light: #ff4d4d;
    --accent: #fe1c1c;
    --shadow-sm: 0 4px 6px -2px rgba(2, 0, 143, 0.1);
    --shadow-md: 0 12px 24px -8px rgba(2, 0, 143, 0.15);
    --shadow-lg: 0 24px 48px -12px rgba(254, 28, 28, 0.25);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --transition: all 0.3s ease;
}

.light-mode {
    --bg-primary: #f9fbfd;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f4f8;
    --text-primary: #1e2f3a;
    --text-secondary: #4b5f6b;
    --text-tertiary: #6b859c;
    --border-color: #d9e2e9;
    --card-bg: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-text: #1e2f3a;
    --footer-bg: #02008f;
    --footer-text: #ffffff;
}

.dark-mode {
    --bg-primary: #0f1a21;
    --bg-secondary: #1e2f3a;
    --bg-tertiary: #2a3f4b;
    --text-primary: #e1e9f0;
    --text-secondary: #b8c9d4;
    --text-tertiary: #93a9b8;
    --border-color: #33454f;
    --card-bg: #1e2f3a;
    --navbar-bg: rgba(15, 26, 33, 0.95);
    --navbar-text: #e1e9f0;
    --footer-bg: #0b141a;
    --footer-text: #93a9b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Additional styles for the signup page */
        .signup-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: var(--bg-primary);
            padding: 2rem;
            transition: background 0.3s;
        }
        .signup-card {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            width: 100%;
            max-width: 500px;
            padding: 2rem;
            border: 1px solid var(--border-color);
            transition: background 0.3s, border-color 0.3s;
        }
        .signup-card h1 {
            text-align: center;
            margin-bottom: 1.5rem;
            color: var(--primary);
        }
        .form-group {
            margin-bottom: 1rem;
        }
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }
        .form-control {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            background: var(--bg-primary);
            color: var(--text-primary);
            transition: border-color 0.3s, background 0.3s;
        }
        .phone-group {
            display: flex;
            align-items: center;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            overflow: hidden;
            background: var(--bg-primary);
        }
        .phone-group .country-code {
            width: 80px;
            background: var(--bg-tertiary);
            padding: 0.75rem;
            text-align: center;
            font-weight: bold;
            color: var(--text-secondary);
            border-right: 1px solid var(--border-color);
        }
        .phone-group input {
            flex: 1;
            border: none;
            padding: 0.75rem;
            background: var(--bg-primary);
            color: var(--text-primary);
        }
        .btn-primary {
            background: var(--primary);
            color: white;
            width: 100%;
            padding: 0.75rem;
            border: none;
            border-radius: var(--radius-sm);
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
        }
        .btn-primary:hover {
            background: var(--primary-light);
        }
        .google-btn {
            margin-top: 1rem;
        }
        .google-btn a {
            display: block;
            background: #db4437;
            color: white;
            text-align: center;
            padding: 0.75rem;
            border-radius: var(--radius-sm);
            text-decoration: none;
            transition: background 0.2s;
        }
        .google-btn a:hover {
            background: #c23321;
        }
        .links {
            text-align: center;
            margin-top: 1.5rem;
        }
        .links a {
            color: var(--primary);
            text-decoration: none;
        }
        .links a:hover {
            text-decoration: underline;
        }
        .alert-error {
            background: #f8d7da;
            color: #721c24;
            padding: 0.75rem;
            border-radius: var(--radius-sm);
            margin-bottom: 1rem;
        }
        .select2-container--default .select2-selection--single {
            border: 1px solid var(--border-color);
            background: var(--bg-primary);
            height: 42px;
            padding: 5px;
        }
        /* Theme toggle button – improved visibility */
        .theme-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 50%;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: var(--shadow-md);
            z-index: 1000;
            transition: background 0.3s, border-color 0.3s;
        }
        .theme-toggle i {
            font-size: 1.3rem;
            color: var(--text-primary);
            transition: color 0.3s;
        }
        /* Show appropriate icon based on theme */
        .dark-mode .theme-toggle .fa-sun {
            display: block;
        }
        .dark-mode .theme-toggle .fa-moon {
            display: none;
        }
        .theme-toggle .fa-sun {
            display: none;
        }
        .theme-toggle .fa-moon {
            display: block;
        }
        /* Ensure button always has a visible background */
        .light-mode .theme-toggle {
            background: rgba(255, 255, 255, 0.9);
            border-color: #ddd;
        }
        .dark-mode .theme-toggle {
            background: rgba(30, 47, 58, 0.9);
            border-color: #33454f;
        }
        /* Dark mode overrides for Select2 and phone group */
.dark-mode .select2-container--default .select2-selection--single {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}
.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary);
}
.dark-mode .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-primary) transparent transparent transparent;
}
.dark-mode .select2-dropdown {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}
.dark-mode .select2-results__option {
    color: var(--text-primary);
}
.dark-mode .select2-results__option--highlighted {
    background-color: var(--primary-soft);
    color: var(--text-primary);
}
.dark-mode .phone-group {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}
.dark-mode .phone-group .country-code {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-right-color: var(--border-color);
}
.dark-mode .phone-group input {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}
.dark-mode .phone-group input::placeholder {
    color: var(--text-tertiary);
}
.dark-mode .signup-card h1 {
    color: var(--text-primary); /* or directly white: color: #fff; */
}
.dark-mode a {
    color: var(--text-primary); /* or directly white: color: #fff; */
}