:root {
    /* Dark Theme Palette */
    --primary-color: #5352ED;     /* Vibrant Blue/Purple for accents */
    --accent-color: #2ED06E;      /* Green for highlights */
    --background-color: #12121F; /* Very dark navy blue */
    --surface-color: #1A1A2E;     /* Slightly lighter surface color */
    --text-light: #EAEAF5;        /* Main light text */
    --text-dark: #8A8A9E;       /* Muted text / placeholder */
    --white: #ffffff;
    --success-color: #2ED06E;
    --border-color: rgba(255, 255, 255, 0.1);
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    --gradient-bg: linear-gradient(135deg, #1A1A2E, #12121F);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Header */
.main-header {
    background: var(--surface-color);
    color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
}

.logo a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--primary-color);
}

.logo span {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.contact-info {
    font-size: 16px;
    font-weight: 500;
}

.contact-info i {
    margin-right: 8px;
    color: var(--accent-color);
}

/* Main Content - Login Page */
.login-page {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    background: var(--gradient-bg);
}

.login-container {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 450px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.login-container h2 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 28px;
}

.login-container p {
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 16px;
}

.login-form .input-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    background-color: var(--background-color);
    color: var(--text-light);
}

.login-form input::placeholder {
    color: var(--text-dark);
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 8px rgba(83, 82, 237, 0.4);
}

#togglePassword {
    position: absolute;
    right: 15px;
    top: 42px; /* Adjust based on label height and input padding */
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

#togglePassword:hover {
    color: var(--primary-color);
}

.btn-primary, .btn-secondary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
    width: 100%;
}

.btn-primary:hover {
    background-color: #4a49cc;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--text-dark);
    margin-left: 0;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
}

.forgot-password {
    display: block;
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Customer Dashboard */
.customer-dashboard {
    text-align: left;
}

.customer-dashboard h3 {
    text-align: center;
    color: var(--white);
    margin-bottom: 10px;
    font-size: 24px;
}

.customer-dashboard > p { /* Target only the direct child p */
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.dashboard-info {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 10px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-light);
}

.info-label i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px; /* Align icons */
    text-align: center;
}

.info-value-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.copy-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.copy-btn .fa-check {
    color: var(--success-color);
}

.info-value {
    color: var(--accent-color);
    font-weight: 400;
    word-break: break-all;
}

.info-value.code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #2a2a3e;
    padding: 5px 10px;
    border-radius: 4px;
    color: #EAEAF5;
}

.customer-dashboard .btn-primary,
.customer-dashboard .btn-secondary {
    width: 100%;
    text-align: center;
}

.customer-dashboard .btn-primary {
    margin-bottom: 10px;
}

.customer-dashboard .btn-secondary {
    margin-top: 0;
}

.customer-dashboard .btn-primary i,
.customer-dashboard .btn-secondary i {
    margin-right: 8px;
}

.welcome-message {
    padding: 20px;
    background-color: var(--success-color);
    color: var(--white);
    border-radius: 8px;
    margin-top: 20px;
}

.welcome-message h3 {
    margin-bottom: 10px;
}

.welcome-message p {
    margin-bottom: 15px;
    color: var(--white);
}

/* Footer */
.main-footer {
    background: var(--surface-color);
    color: var(--text-dark);
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        margin-top: 15px;
    }

    .main-nav li {
        margin: 10px 0;
    }

    .contact-info {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .login-container h2 {
        font-size: 24px;
    }

    .btn-primary {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 9999;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(-10px);
}
