/*
 * DropZilla Admin Panel - Custom Styles
 *
 * These styles extend Bootstrap 5 to create a clean admin interface.
 */

/* =============================================================================
   GENERAL
   ============================================================================= */

body {
    background-color: #f8f9fc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =============================================================================
   NAVBAR
   ============================================================================= */

#mainNav {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

#mainNav .navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

#mainNav .nav-link {
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

#mainNav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#mainNav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* =============================================================================
   CARDS
   ============================================================================= */

.card {
    border: none;
    border-radius: 8px;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

/* Stats cards with colored left border */
.border-left-primary {
    border-left: 4px solid #4e73df !important;
}

.border-left-success {
    border-left: 4px solid #1cc88a !important;
}

.border-left-info {
    border-left: 4px solid #36b9cc !important;
}

.border-left-warning {
    border-left: 4px solid #f6c23e !important;
}

.border-left-danger {
    border-left: 4px solid #e74a3b !important;
}

/* =============================================================================
   TABLES
   ============================================================================= */

.table th {
    font-weight: 600;
    color: #5a5c69;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #224abe 0%, #1a3a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #1cc88a 0%, #17a673 100%);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #e74a3b 0%, #c0392b 100%);
    border: none;
}

/* =============================================================================
   BADGES
   ============================================================================= */

.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* =============================================================================
   FORMS
   ============================================================================= */

.form-control, .form-select {
    border-radius: 6px;
    border-color: #d1d3e2;
}

.form-control:focus, .form-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-check-input:checked {
    background-color: #4e73df;
    border-color: #4e73df;
}

/* =============================================================================
   MODALS
   ============================================================================= */

.modal-content {
    border: none;
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid #e3e6f0;
}

.modal-footer {
    border-top: 1px solid #e3e6f0;
}

/* =============================================================================
   PAGINATION
   ============================================================================= */

.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: none;
    color: #4e73df;
}

.pagination .page-item.active .page-link {
    background-color: #4e73df;
}

/* =============================================================================
   UTILITIES
   ============================================================================= */

.text-gray-300 {
    color: #dddfeb !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-xs {
    font-size: 0.7rem;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .table {
        font-size: 0.875rem;
    }
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Loading spinner overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
