:root {
    /* Brand palette */
    --brand-navy: #1B2A4E;    /* Navy */
    --brand-gold: #CC9966;    /* Primary accent */
    --brand-gray: #BDC3C7;    /* Light gray */
    --brand-blue: #2A8CB9;    /* Secondary blue */
    --brand-beige: #C7B299;   /* Beige */
    --brand-light: #EBE8E8;   /* Very light gray (exact) */

    /* App theme tokens */
    --primary-accent: var(--brand-gold);
    --primary-black: #111111;
    --primary-white: #ffffff;
    --border-gray: var(--brand-light);
}

body {
    font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-white);
    color: var(--primary-black);
    line-height: 1.6;
    min-height: 100vh;
}

.navbar {
    background: var(--primary-white) !important;
    border-bottom: 3px solid var(--brand-navy);
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--brand-navy) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-accent) !important;
}

.registration-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--primary-white);
    border-radius: 16px;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.04);
    border: 1px solid var(--border-gray);
}

.form-control {
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--primary-white);
    color: var(--primary-black);
}

.form-control:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(204, 153, 102, 0.15);
    background: var(--primary-white);
    color: var(--primary-black);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.form-text {
    color: #888;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--brand-navy);
    color: var(--primary-white);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
}

.btn-primary:hover {
    background: #16223f; /* darker navy */
    color: var(--primary-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0,0,0,0.10);
}

.btn-secondary {
    background: var(--brand-navy);
    color: var(--primary-white);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
}

.btn-secondary:hover {
    background: #16223f; /* darker navy */
    color: var(--primary-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0,0,0,0.10);
}

/* Gold filled button */
.btn-gold {
    background: var(--brand-gold);
    color: var(--brand-navy);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
}

.btn-gold:hover {
    background: #b88454; /* darker gold */
    color: #0f1730; /* darker navy */
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0,0,0,0.10);
}

.btn-outline-primary {
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
    background: transparent;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-accent);
    color: var(--primary-white);
    transform: translateY(-1px);
}

.success-container {
    text-align: center;
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.qr-code-container {
    margin: 2rem 0;
    padding: 2.5rem;
    background: var(--primary-white);
    border-radius: 16px;
    border: 2px dashed var(--primary-accent);
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.04);
}

/* Themed variants for QR card backgrounds */
.qr-card-gold {
    background: var(--brand-gold) !important;
    border: 2px dashed #9a6f46 !important; /* darker gold border */
    color: var(--brand-navy) !important;
}

.qr-card-gold h5,
.qr-card-gold p,
.qr-card-gold strong,
.qr-card-gold .text-muted {
    color: var(--brand-navy) !important;
}

.qr-card-gray {
    background: var(--brand-gray) !important;
    border: 2px dashed #9aa2a6 !important;
    color: var(--brand-navy) !important;
}

.qr-card-gray h5,
.qr-card-gray p,
.qr-card-gray strong,
.qr-card-gray .text-muted {
    color: var(--brand-navy) !important;
}

.qr-code-image {
    max-width: 250px;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.04);
    border: 4px solid var(--primary-white);
}

/* Navy variant for QR card */
.qr-card-navy {
    background: var(--brand-navy) !important;
    border: 2px dashed #0f1730 !important; /* darker navy border */
    color: var(--primary-white) !important;
}

.qr-card-navy h5,
.qr-card-navy p,
.qr-card-navy strong,
.qr-card-navy .text-muted {
    color: var(--primary-white) !important;
}

.user-profile {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--primary-white);
    border-radius: 16px;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.04);
    border: 1px solid var(--border-gray);
}

.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-accent);
}

/* Global brand typography and links */
h1, h2, h3, h4, h5, h6 { color: var(--brand-navy); }
a { color: var(--brand-navy); }
a:hover { color: var(--primary-accent); }

/* Badge override used for "رقمك" */
.badge.bg-secondary { background-color: var(--brand-navy) !important; }

.profile-header h2 {
    color: var(--brand-navy);
    font-weight: 700;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    padding: 1.75rem;
    background: var(--primary-white);
    border-radius: 12px;
    border-left: 4px solid var(--primary-accent);
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
}

.info-label {
    font-weight: 700;
    color: var(--primary-accent);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1.125rem;
    color: var(--primary-black);
    margin: 0;
    font-weight: 500;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.04);
}

.alert-success {
    background: #f5f5f5;
    color: var(--primary-accent);
    border-left: 4px solid var(--primary-accent);
}

.alert-danger {
    background: #fff0f0;
    color: #b00020;
    border-left: 4px solid #b00020;
}

.alert-info {
    background: #f5f5f5;
    color: var(--primary-black);
    border-left: 4px solid var(--primary-accent);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-white);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b07f4e;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .registration-container,
    .user-profile {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .profile-info {
        grid-template-columns: 1fr;
    }
    
    .qr-code-container {
        padding: 1.5rem;
    }
    
    .qr-code-image {
        max-width: 200px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .registration-container,
    .user-profile {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
} 