/* Common Styles */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 900px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.1);
    background: #fff;
}

.auth-branding {
    background: #1d4ed8;
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.auth-form-container {
    padding: 3rem;
}

/* Form Elements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    width: 100%;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
    outline: none;
}

.btn {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

/* Comprehensive override for any remaining yellow/orange colors on form fields */
.form-control,
.form-select,
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
}

/* Ensure buttons maintain proper styling */
.btn:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
}

/* Make sure all cards and containers are full width on mobile */
@media (max-width: 991.98px) {
    /* Contain overflow only; let Bootstrap grid keep its own breakpoints */
    .container,
    .container-fluid,
    .card,
    .card-body,
    .row,
    .table-responsive,
    .table {
        max-width: 100%;
    }

    /* Ensure tables are fully responsive */
    .table-responsive {
        width: 100%;
        margin-bottom: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .auth-branding {
        padding: 2rem 1rem;
    }
    
    .auth-form-container {
        padding: 2rem 1.5rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Card Styles */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.5rem;
}



.card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f8fafc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #64748b;
}

tr:hover {
    background-color: #f8fafc;
}

/* Override all Bootstrap warning/yellow classes */
.bg-warning, 
.btn-warning,
.badge.bg-warning,
.alert-warning {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* Fix focus states to use blue borders/shadows only */
.btn:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
    border-color: #2563eb !important;
}

.text-warning {
    color: #2563eb !important;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Utility Classes */
.text-muted {
    color: #64748b;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.text-center {
    text-align: center;
}

/* Hide elements on mobile */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
}
