/* ===================================================================
   BLAZORISE INTEGRATION OVERRIDES - AMIU Administration
   ================================================================= */

/* ========== NAVIGATION LINK ACTIVE STATES ========== */
.sidebar-nav-link.active {
    background-color: rgba(0, 142, 75, 0.1) !important;
    color: var(--amiu-primary) !important;
    border-left: 3px solid var(--amiu-primary) !important;
    font-weight: 600 !important;
}

/* ========== BLAZORISE TABLE ENHANCEMENTS ========== */
.table {
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: none !important;
}

.table thead th {
    background-color: var(--amiu-gray-50) !important;
    border: none !important;
    font-weight: 600 !important;
    color: var(--amiu-gray-700) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.025em;
    padding: 1rem !important;
}

.table tbody tr {
    border: none !important;
    transition: var(--transition-fast) !important;
}

.table tbody tr:hover {
    background-color: rgba(0, 142, 75, 0.05) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table td {
    border: none !important;
    padding: 1rem !important;
    vertical-align: middle !important;
}

/* ========== BLAZORISE BUTTON ENHANCEMENTS ========== */
.btn {
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: var(--transition-fast) !important;
    border: none !important;
}

.btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amiu-primary), var(--amiu-secondary)) !important;
    color: white !important;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--amiu-secondary), var(--amiu-primary)) !important;
    color: white !important;
}

.btn-outline-primary {
    border: 2px solid var(--amiu-primary) !important;
    color: var(--amiu-primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--amiu-primary) !important;
    color: white !important;
}

/* ========== BLAZORISE CARD ENHANCEMENTS ========== */
.card {
    border: 1px solid var(--amiu-gray-200) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition-fast) !important;
}

.card:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px) !important;
}

.card-header {
    background: var(--amiu-gray-50) !important;
    border-bottom: 1px solid var(--amiu-gray-200) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.5rem !important;
}

.card-title {
    font-weight: 600 !important;
    color: var(--amiu-gray-900) !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
}

.card-body {
    padding: 1.5rem !important;
}

/* ========== BLAZORISE BADGE ENHANCEMENTS ========== */
.badge {
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: linear-gradient(135deg, var(--amiu-primary), var(--amiu-secondary)) !important;
    color: white !important;
}

.badge-secondary {
    background: var(--amiu-secondary) !important;
    color: white !important;
}

.badge-success {
    background: var(--amiu-success) !important;
    color: white !important;
}

.badge-warning {
    background: var(--amiu-warning) !important;
    color: var(--amiu-gray-900) !important;
}

.badge-info {
    background: var(--amiu-info) !important;
    color: var(--amiu-gray-900) !important;
}

.badge-light {
    background: var(--amiu-gray-200) !important;
    color: var(--amiu-gray-700) !important;
}

/* ========== BLAZORISE ALERT ENHANCEMENTS ========== */
.alert {
    border: none !important;
    border-radius: 8px !important;
    border-left: 4px solid !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 1rem !important;
}

.alert-primary {
    background-color: rgba(0, 142, 75, 0.1) !important;
    border-left-color: var(--amiu-primary) !important;
    color: var(--amiu-primary) !important;
}

.alert-secondary {
    background-color: rgba(0, 73, 149, 0.1) !important;
    border-left-color: var(--amiu-secondary) !important;
    color: var(--amiu-secondary) !important;
}

.alert-success {
    background-color: rgba(35, 192, 46, 0.1) !important;
    border-left-color: var(--amiu-success) !important;
    color: var(--amiu-success) !important;
}

.alert-info {
    background-color: rgba(155, 216, 254, 0.1) !important;
    border-left-color: var(--amiu-info) !important;
    color: var(--amiu-gray-700) !important;
}

.alert-warning {
    background-color: rgba(248, 184, 108, 0.1) !important;
    border-left-color: var(--amiu-warning) !important;
    color: var(--amiu-gray-700) !important;
}

.alert-danger {
    background-color: rgba(249, 87, 65, 0.1) !important;
    border-left-color: var(--amiu-danger) !important;
    color: var(--amiu-danger) !important;
}

/* ========== BLAZORISE FORM ENHANCEMENTS ========== */
.form-control, .form-select, .form-check-input {
    border: 2px solid var(--amiu-gray-300) !important;
    border-radius: 8px !important;
    transition: var(--transition-fast) !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--amiu-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 142, 75, 0.1) !important;
    outline: none !important;
}

.form-label {
    font-weight: 600 !important;
    color: var(--amiu-gray-700) !important;
    margin-bottom: 0.5rem !important;
}

/* ========== BLAZORISE DROPDOWN ENHANCEMENTS ========== */
.dropdown-menu {
    border: 1px solid var(--amiu-gray-200) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.5rem 0 !important;
}

.dropdown-item {
    padding: 0.75rem 1rem !important;
    border-radius: 0 !important;
    transition: var(--transition-fast) !important;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: var(--amiu-gray-100) !important;
    color: var(--amiu-primary) !important;
}

.dropdown-divider {
    margin: 0.5rem 0 !important;
    border-color: var(--amiu-gray-200) !important;
}

/* ========== BLAZORISE PAGINATION ========== */
.pagination .page-link {
    border: 1px solid var(--amiu-gray-300) !important;
    color: var(--amiu-gray-600) !important;
    border-radius: 6px !important;
    margin: 0 2px !important;
    transition: var(--transition-fast) !important;
}

.pagination .page-link:hover {
    background-color: var(--amiu-primary) !important;
    border-color: var(--amiu-primary) !important;
    color: white !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--amiu-primary) !important;
    border-color: var(--amiu-primary) !important;
    color: white !important;
}

/* ========== BLAZORISE PROGRESS BARS ========== */
.progress {
    border-radius: 8px !important;
    background-color: var(--amiu-gray-200) !important;
    height: 8px !important;
}

.progress-bar {
    background: linear-gradient(90deg, var(--amiu-primary), var(--amiu-secondary)) !important;
    border-radius: 8px !important;
}

/* ========== BLAZORISE TABS ========== */
.nav-tabs .nav-link {
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    color: var(--amiu-gray-600) !important;
    font-weight: 500 !important;
    transition: var(--transition-fast) !important;
}

.nav-tabs .nav-link.active {
    background-color: white !important;
    color: var(--amiu-primary) !important;
    border-bottom: 2px solid var(--amiu-primary) !important;
}

.nav-tabs .nav-link:hover {
    color: var(--amiu-primary) !important;
}

/* ========== BLAZORISE MODAL ENHANCEMENTS ========== */
.modal-content {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-lg) !important;
}

.modal-header {
    background: var(--amiu-gray-50) !important;
    border-bottom: 1px solid var(--amiu-gray-200) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.5rem !important;
}

.modal-title {
    font-weight: 600 !important;
    color: var(--amiu-gray-900) !important;
}

.modal-body {
    padding: 1.5rem !important;
}

.modal-footer {
    border-top: 1px solid var(--amiu-gray-200) !important;
    padding: 1.5rem !important;
    background: var(--amiu-gray-50) !important;
    border-radius: 0 0 12px 12px !important;
}

/* ========== LOADING STATES ========== */
.btn[disabled], .btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

.spinner-border {
    color: var(--amiu-primary) !important;
}

/* ========== FIELD GROUPS ========== */
.field {
    margin-bottom: 1.5rem !important;
}

.field:last-child {
    margin-bottom: 0 !important;
}

/* ========== RESPONSIVE OVERRIDES ========== */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem !important;
    }
    
    .table td, .table th {
        padding: 0.75rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

/* ========== CUSTOM ANIMATIONS ========== */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInFromLeft 0.3s ease-out;
}

/* ========== UTILITY OVERRIDES ========== */
.text-muted {
    color: var(--amiu-gray-600) !important;
}

.text-success {
    color: var(--amiu-success) !important;
}

.text-danger {
    color: var(--amiu-danger) !important;
}

.text-warning {
    color: var(--amiu-warning) !important;
}

.text-info {
    color: var(--amiu-gray-700) !important;
}

/* ========== CUSTOM SCROLLBARS ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--amiu-gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--amiu-gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--amiu-primary);
}

/* ========== TRANSITIONS FOR SMOOTH INTERACTIONS ========== */
* {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card, .btn, .form-control, .table tr {
    transition: all 0.2s ease;
}
