/* Our Complex Child Custom Styles */
:root {
    --primary-blue: #003DA5;
    --primary-red: #EA7317;
    --primary-yellow: #FFB81C;
    --primary-purple: #0072BC;
    --light-blue: #E8F1F5;
    --light-red: #FFF5F0;
    --light-yellow: #FFFBE6;
    --light-purple: #F0F7FF;
    --dark-text: #425563;
    --light-text: #7A8A99;
    --border-color: #D9E2E8;
    --success-color: #00833E;
    --warning-color: #FFB81C;
    --danger-color: #EA7317;
    --info-color: #0072BC;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-text);
    line-height: 1.6;
}

.main-content {
    min-height: calc(100vh - 120px);
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #002570;
        border-color: #002570;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 61, 165, 0.3);
    }

.btn-secondary {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
}

    .btn-secondary:hover {
        background-color: #005BA3;
        border-color: #005BA3;
    }

.btn-warning {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: white;
}

.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-blue);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
}

    .navbar-brand i {
        margin-right: 0.5rem;
        font-size: 1.8rem;
    }

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-1px);
    }

    .navbar-nav .nav-link.active {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.2);
    }

/* Card Styles */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.card-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    color: white;
    border-radius: 1rem 1rem 0 0 !important;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

    .card-header h3, .card-header h4, .card-header h5 {
        margin: 0;
        font-weight: 600;
    }

.card-body {
    padding: 1.5rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

    .feature-card:hover {
        border-color: var(--primary-blue);
        transform: translateY(-5px);
    }

    .feature-card i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .feature-card.primary i {
        color: var(--primary-blue);
    }

    .feature-card.secondary i {
        color: var(--primary-purple);
    }

    .feature-card.warning i {
        color: var(--primary-yellow);
    }

    .feature-card.danger i {
        color: var(--primary-red);
    }

/* Form Styles */
.form-control {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 0.2rem rgba(0, 61, 165, 0.25);
    }

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

/* Alert Styles */
.alert {
    border-radius: 0.75rem;
    border: none;
    font-weight: 500;
}

.alert-primary {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    background-color: var(--light-yellow);
    color: var(--primary-yellow);
}

.alert-danger {
    background-color: var(--light-red);
    color: var(--primary-red);
}

/* Authentication Page Styles */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .auth-wrapper::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
        animation: float 20s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.auth-card {
    background: white;
    border-radius: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    margin: 2rem;
    position: relative;
    z-index: 1;
}

.auth-content {
    display: flex;
    min-height: 500px;
}

.auth-graphic {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .auth-graphic::before {
        content: '';
        position: absolute;
        top: -20%;
        right: -20%;
        width: 120%;
        height: 120%;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transform: rotate(-45deg);
    }

    .auth-graphic::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -30%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

    .auth-graphic i {
        font-size: 5rem;
        color: white;
        position: relative;
        z-index: 2;
    }

.auth-form {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .auth-form h2 {
        color: var(--dark-text);
        font-weight: 700;
        margin-bottom: 0.5rem;
        font-size: 2rem;
    }

    .auth-form p {
        color: var(--light-text);
        margin-bottom: 2rem;
    }

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .password-toggle-btn:hover {
        color: var(--primary-blue);
    }

/* Footer */
.footer {
    background-color: var(--dark-text);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

    .footer a {
        color: var(--primary-blue);
        text-decoration: none;
    }

        .footer a:hover {
            color: white;
            text-decoration: underline;
        }

/* Utility Classes */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-secondary {
    color: var(--primary-purple) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-secondary {
    background-color: var(--primary-purple) !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

.border-secondary {
    border-color: var(--primary-purple) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-content {
        flex-direction: column;
    }

    .auth-graphic {
        min-height: 200px;
    }

    .auth-form {
        padding: 2rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .auth-card {
        margin: 1rem;
        border-radius: 1rem;
    }

    .auth-form {
        padding: 1.5rem;
    }

        .auth-form h2 {
            font-size: 1.5rem;
        }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Validation Styles */
.field-validation-error {
    color: var(--primary-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.validation-summary-errors {
    background-color: var(--light-red);
    border: 1px solid var(--primary-red);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 1.5rem;
    }

    .validation-summary-errors li {
        color: var(--primary-red);
    }

/* Success Messages */
.alert-success {
    background-color: #d4edda;
    border: 1px solid var(--success-color);
    color: var(--success-color);
}
