/* 
 * Unified Admin Interface Styles
 * Consolidates all admin portal styles into one maintainable file
 */

/* =============================================================================
   CSS VARIABLES & THEME CONFIGURATION
   ============================================================================= */

:root {
    /* Primary Theme Colors (Dark Blue Gradient) */
    --admin-primary: #001a2B;
    --admin-primary-light: #0d2a42;
    --admin-primary-lighter: #1a3a59;
    --admin-secondary: #2c5282;
    --admin-accent: #4299e1;
    
    /* Clean Theme Colors (Light/White) */
    --admin-clean-primary: #4A9EFF;
    --admin-clean-secondary: #2d3748;
    --admin-clean-bg: #f8f9fa;
    --admin-clean-card: #ffffff;
    --admin-clean-header: #f7fafc;
    
    /* Common Colors */
    --admin-text: #2d3748;
    --admin-text-light: #718096;
    --admin-bg: #f7fafc;
    --admin-white: #ffffff;
    --admin-border: #e2e8f0;
    --admin-shadow: rgba(0, 26, 43, 0.1);
    --admin-shadow-hover: rgba(0, 26, 43, 0.15);
    --admin-shadow-clean: rgba(0, 0, 0, 0.1);
    
    /* Status Colors */
    --admin-success: #48bb78;
    --admin-danger: #f56565;
    --admin-warning: #f6e05e;
    --admin-info: #4299e1;
}

/* =============================================================================
   BASE ADMIN LAYOUT (DEFAULT GRADIENT THEME)
   ============================================================================= */

.admin-main {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    min-height: 100vh;
}

.admin-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* =============================================================================
   CLEAN THEME OVERRIDES
   ============================================================================= */

/* Pages with clean theme */
.admin-main {
    background: var(--admin-clean-bg);
}

.admin-main::before {
    display: none;
}

/* =============================================================================
   ADMIN HEADER
   ============================================================================= */

.admin-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

/* Clean theme header */
.admin-header {
    background: var(--admin-clean-card);
    backdrop-filter: none;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px var(--admin-shadow-clean);
    border: none;
}

.admin-title {
    background-clip: text;
    font-size: 1.3rem;
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--admin-clean-secondary);
}

.admin-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* =============================================================================
   ADMIN BACK BUTTON
   ============================================================================= */

.admin-header .btn-outline-secondary {
    border: 2px solid #e2e8f0;
    color: #718096;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.admin-header .btn-outline-secondary:hover {
    background: rgba(248, 250, 252, 1);
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Clean theme back button */
.admin-header .btn-outline-secondary {
    border: 1px solid var(--admin-border);
    color: var(--admin-text-light);
    background: white;
    backdrop-filter: none;
}

.admin-header .btn-outline-secondary:hover {
    background: var(--admin-clean-header);
    border-color: var(--admin-clean-primary);
    color: var(--admin-clean-primary);
}

.admin-header .btn-outline-secondary i {
    margin-right: 0.5rem;
}

/* =============================================================================
   ADMIN NAVIGATION TABS
   ============================================================================= */

.admin-tabs {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px 16px 0 0;
    padding: 0 1rem;
    border-bottom: 3px solid #e2e8f0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

/* Clean theme tabs */
.admin-tabs {
    background: var(--admin-clean-card);
    backdrop-filter: none;
    border-radius: 12px 12px 0 0;
    padding: 0 1rem;
    border-bottom: 2px solid var(--admin-border);
    box-shadow: none;
}

.admin-tabs .nav-link {
    border: none;
    color: #718096;
    font-weight: 500;
    font-size: 1rem;
    padding: 1rem 1rem;
    border-radius: 8px 8px 0 0;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.admin-tabs .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

.admin-tabs .nav-link.active {
    background: var(--admin-clean-primary);
    color: white;
    border-bottom: 2px solid var(--admin-clean-primary);
    box-shadow: none;
}

.admin-tabs .nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* =============================================================================
   ADMIN CARDS
   ============================================================================= */

.admin-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 0 0 16px 16px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Clean theme cards */
.admin-card.items-card,
.admin-card.users-card,
.admin-card.locations-card,
.admin-card.suppliers-card {
    background: var(--admin-clean-card);
    backdrop-filter: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 4px var(--admin-shadow-clean);
    border: none;
    overflow: hidden;
}

.admin-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 1rem 1rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Clean theme card headers */
.admin-card.items-card .admin-card-header,
.admin-card.users-card .admin-card-header,
.admin-card.locations-card .admin-card-header,
.admin-card.suppliers-card .admin-card-header {
    background: var(--admin-clean-eader);
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-header h3 {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Clean theme card header titles */
.admin-card.items-card .admin-card-header h3,
.admin-card.users-card .admin-card-header h3,
.admin-card.locations-card .admin-card-header h3,
.admin-card.suppliers-card .admin-card-header h3 {
    font-weight: 600;
}

.admin-card-header h3 i {
    margin-right: 0.75rem;
    color: #667eea;
    font-size: 1.1rem;
}

.admin-card-actions {
    display: flex;
    gap: 0.75rem;
}

.admin-card-body {
    padding: 1rem;
}

/* Clean theme card body */
.admin-card.items-card .admin-card-body,
.admin-card.users-card .admin-card-body,
.admin-card.locations-card .admin-card-body,
.admin-card.suppliers-card .admin-card-body {
    padding: 1rem;
}

/* =============================================================================
   DASHBOARD SPECIFIC STYLES
   ============================================================================= */

/* Compact Cards for Dashboard */
.admin-compact-card {
    background: var(--admin-white);
    border-radius: 12px;
    border: 1px solid var(--admin-border);
    box-shadow: 0 2px 12px var(--admin-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.admin-compact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--admin-shadow-hover);
}

.admin-compact-header {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-light) 100%);
    color: var(--admin-white);
}

.admin-compact-header > .header-content > h4 {
    flex: 1;
    min-width: 0;
    font-size: 1.1rem;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.icon-wrapper i {
    font-size: 1rem;    color: var(--admin-white);
}

.card-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--admin-white);
    opacity: 0.9;
}

.card-info .card-number {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--admin-white);
    margin: 0;
    line-height: 1;
}

.admin-compact-body {
    padding: 0.5rem;
    background: var(--admin-white);
}

.trend-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.trend-value {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.trend-value.positive {
    color: var(--admin-success);
}

.trend-value.negative {
    color: var(--admin-danger);
}

.trend-value i {
    margin-right: 0.25rem;
    font-size: 0.8rem;
}

.card-description {
    color: var(--admin-text-light);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* =============================================================================
   TABLES
   ============================================================================= */

.table {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Clean theme tables */
.items-table .table,
.users-table .table,
.locations-table .table,
.suppliers-table .table {
    background: rgba(255, 255, 255, 1);
}

.table th {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #2d3748;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: none;
    border-bottom: 2px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

/* Clean theme table headers */
.items-table .table th,
.users-table .table th,
.locations-table .table th,
.suppliers-table .table th {
    background: var(--admin-clean-header);
    color: #4a5568;
    font-weight: 600;
    border-top: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(2px);
}

/* Clean theme table row hover */
.items-table .table tbody tr:hover,
.users-table .table tbody tr:hover,
.locations-table .table tbody tr:hover,
.suppliers-table .table tbody tr:hover {
    background-color: rgba(74, 158, 255, 0.05);
    transform: none;
}

/* =============================================================================
   BADGES & STATUS INDICATORS
   ============================================================================= */

.badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-success, .status-badge.active {
    background: var(--admin-success) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.badge.bg-danger, .status-badge.inactive {
    background: var(--admin-danger) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
}

.badge.bg-info {
    background: var(--admin-info) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.badge.bg-warning, .status-badge.suspended {
    background: var(--admin-warning) !important;
    color: #744210;
    box-shadow: 0 2px 8px rgba(246, 224, 94, 0.3);
}

/* Status badges specific styling */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Role badges */
.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--admin-clean-primary);
    color: white;
}

/* =============================================================================
   BUTTONS & ACTION ELEMENTS
   ============================================================================= */

.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    box-shadow: 0 4px 15px rgba(160, 174, 192, 0.3);
}

.btn-outline-secondary {
    border: 2px solid #e2e8f0;
    color: #718096;
    background: rgba(255, 255, 255, 0.8);
}

.btn-outline-secondary:hover {
    background: rgba(248, 250, 252, 1);
    border-color: #667eea;
    color: #667eea;
}

/* Action Buttons */
.btn-action {
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-buttons .btn {
    padding: 0.375rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-edit {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-edit:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.btn-delete {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-delete:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: #fff;
}

.btn-view {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}

.btn-view:hover {
    background-color: #138496;
    border-color: #117a8b;
    color: #fff;
}

/* =============================================================================
   MODALS
   ============================================================================= */

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}

/* Clean theme modals */
.modal-content {
    border: none;    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: white;
}

.modal-header {
    background: var(--admin-clean-primary);
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1rem;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.25rem;    display: flex;
    align-items: center;
    color: white;
}

.modal-title i {
    margin-right: 0.75rem;
    color: white;
}

.modal-body {
    padding: 1rem;
    background: white;
}

.modal-footer {
    border-top: 2px solid #e2e8f0;
    padding: 1rem 1rem;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 0 0 16px 16px;
}

/* =============================================================================
   FORM ELEMENTS
   ============================================================================= */

.form-label {
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.form-label i {
    margin-right: 0.5rem;
    color: #667eea;
    width: 16px;
}

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    padding: 0.75rem;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--admin-clean-primary);
    box-shadow: 0 0 0 0.1rem rgba(74, 158, 255, 0.25);
}

.form-text {
    color: #718096;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Permissions styling */
.permissions-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 1rem;
    background: var(--admin-clean-header);
}

.permission-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--admin-border);
}

.permission-item:last-child {
    border-bottom: none;
}

.permission-item .form-check-input {
    margin-right: 0.75rem;
}

.permission-item .permission-label {
    font-weight: 600;
    color: var(--admin-clean-secondary);
}

.permission-item .permission-description {
    font-size: 0.85rem;
    color: var(--admin-text-light);
    margin-top: 0.25rem;
}

/* =============================================================================
   LOADING & STATES
   ============================================================================= */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    color: #667eea;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
}

/* Clean theme loading */
.items-loading .loading-spinner,
.users-loading .loading-spinner,
.locations-loading .loading-spinner,
.suppliers-loading .loading-spinner {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    color: var(--admin-clean-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.loading-spinner i {
    margin-bottom: 1rem;
}

.loading-spinner p {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Table loading state */
.table-loading {
    position: relative;
    min-height: 200px;
}

.table-loading::after {
    content: '';
    position: absolute;
    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: 10;
}

.table-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--admin-clean-primary);
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

/* Code Elements */
code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Search and filter styling */
.admin-filters {
    background: var(--admin-clean-header);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--admin-border);
}

.filter-item {
    margin-bottom: 0.75rem;
}

.filter-item:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .admin-main {
        padding: 1rem 0;
    }
    
    .admin-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
      /* Clean theme responsive headers */
    .admin-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .admin-title {
        font-size: 1.75rem;
    }
      .admin-tabs {
        padding: 0 0.5rem;
    }
    
    .admin-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .admin-card-header,
    .admin-card-body {
        padding: 1rem;
    }
      .admin-card-header,
    .admin-card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        border-radius: 12px;
        font-size: 0.85rem;
    }
      .modal-body,
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    /* Responsive back button */
    .admin-header .btn-outline-secondary {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin: 0 0.125rem 0.25rem 0;
    }
    
    .status-badge,
    .role-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.5rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 576px) {
    .admin-header {
        text-align: center;
    }
    
    .admin-header .col-md-6.text-end {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .admin-title {
        font-size: 1.75rem;
    }
    
    .admin-tabs .nav-link {
        padding: 0.75rem 1rem;
        margin-right: 0.25rem;
    }
    
    .btn-action {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .permission-item {
        padding: 0.375rem 0;
    }
      .permission-item .form-check-input {
        margin-right: 0.5rem;    }
}

/* =============================================================================
   ACTIVITY FEED STYLES
   ============================================================================= */

.activity-feed {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

.activity-feed::-webkit-scrollbar {
    width: 6px;
}

.activity-feed::-webkit-scrollbar-track {
    background: var(--admin-clean-bg);
    border-radius: 3px;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: var(--admin-clean-primary);
    border-radius: 3px;
    opacity: 0.7;
}

.activity-feed::-webkit-scrollbar-thumb:hover {
    background: var(--admin-primary);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid var(--admin-border);
    transition: all 0.3s ease;
    position: relative;
    background: var(--admin-white);
    margin-bottom: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.activity-item:hover {
    background: var(--admin-clean-header);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.activity-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.activity-item:hover .activity-icon::before {
    transform: scale(1);
}

.activity-icon.bg-primary {
    background: linear-gradient(135deg, var(--admin-clean-primary), var(--admin-accent));
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.activity-icon.bg-success {
    background: linear-gradient(135deg, var(--admin-success), #38a169);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.activity-icon.bg-warning {
    background: linear-gradient(135deg, #f6ad55, #ed8936);
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.3);
}

.activity-icon.bg-danger {
    background: linear-gradient(135deg, var(--admin-danger), #e53e3e);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.activity-icon.bg-info {
    background: linear-gradient(135deg, var(--admin-info), #3182ce);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.activity-icon.bg-secondary {
    background: linear-gradient(135deg, #718096, #4a5568);
    box-shadow: 0 4px 12px rgba(113, 128, 150, 0.3);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-content h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--admin-text);
    line-height: 1.4;
}

.activity-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: var(--admin-text-light);
    line-height: 1.4;
    word-wrap: break-word;
}

.activity-content small {
    font-size: 0.75rem;
    color: var(--admin-text-light);
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.activity-content small i {
    font-size: 0.7rem;
}

.activity-item.new {
    animation: slideInRight 0.5s ease-out;
    border-left: 4px solid var(--admin-clean-primary);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-item.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Empty state for activity feed */
.activity-feed-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--admin-text-light);
}

.activity-feed-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.activity-feed-empty h6 {
    margin-bottom: 0.5rem;
    color: var(--admin-text);
}

.activity-feed-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Activity type badges */
.activity-type-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 12px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-type-badge.create {
    background: rgba(72, 187, 120, 0.1);
    color: var(--admin-success);
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.activity-type-badge.update {
    background: rgba(74, 158, 255, 0.1);
    color: var(--admin-clean-primary);
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.activity-type-badge.delete {
    background: rgba(245, 101, 101, 0.1);
    color: var(--admin-danger);
    border: 1px solid rgba(245, 101, 101, 0.2);
}

.activity-type-badge.system {
    background: rgba(113, 128, 150, 0.1);
    color: var(--admin-text-light);
    border: 1px solid rgba(113, 128, 150, 0.2);
}

/* Activity filters */
.activity-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.activity-filter-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--admin-border);
    background: var(--admin-white);
    color: var(--admin-text-light);
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activity-filter-btn:hover {
    background: var(--admin-clean-header);
    border-color: var(--admin-clean-primary);
    color: var(--admin-clean-primary);
}

.activity-filter-btn.active {
    background: var(--admin-clean-primary);
    border-color: var(--admin-clean-primary);
    color: var(--admin-white);
}

/* =============================================================================
   FORM SECTION STYLING
   ============================================================================= */

.section-divider {
    color: var(--admin-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--admin-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem !important;
    margin-top: 1.5rem !important;
}

.section-divider i {
    margin-right: 0.5rem;
    color: var(--admin-accent);
}

/* Modal form styling */
.modal-xl .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* File upload styling */
.form-control[type="file"] {
    padding: 0.5rem;
}

.form-text {
    font-size: 0.875rem;
    color: var(--admin-text-light);
}

/* Checkbox styling */
.form-check-input:checked {
    background-color: var(--admin-success);
    border-color: var(--admin-success);
}

.form-check-label {
    font-weight: 500;
}

.form-check-label i {
    margin-right: 0.5rem;
    color: var(--admin-success);
}

/* =============================================================================
   FEATURED ITEMS STYLES
   ============================================================================= */

.featured-items-list {
    max-height: 600px;
    overflow-y: auto;
}

.featured-item-card {
    cursor: move;
    transition: all 0.2s ease;
}

.featured-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--admin-shadow-hover);
}

.featured-item-card .card {
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.featured-item-card.sortable-chosen .card {
    border-color: var(--admin-accent);
    background-color: rgba(66, 153, 225, 0.1);
}

.featured-item-card.sortable-ghost {
    opacity: 0.5;
}

.drag-handle {
    cursor: grab;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle i {
    font-size: 1.2rem;
}

.items-to-feature-list {
    max-height: 400px;
    overflow-y: auto;
}

.items-to-feature-list .card {
    transition: all 0.2s ease;
}

.items-to-feature-list .card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--admin-shadow);
}

/* Featured Items Statistics Cards */
.featured-items-stats .card {
    border: none;
    box-shadow: 0 2px 4px var(--admin-shadow);
    transition: all 0.2s ease;
}

.featured-items-stats .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--admin-shadow-hover);
}

/* Featured Items Empty State */
.featured-items-empty i {
    color: #cbd5e0;
}

/* Featured Items Loading Spinner */
.featured-items-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Modal Improvements for Featured Items */
#addFeaturedItemModal .modal-dialog {
    max-width: 600px;
}

#addFeaturedItemModal .modal-body {
    padding: 1.5rem;
}

#addFeaturedItemModal .items-to-feature-list .card {
    border-left: 4px solid var(--admin-accent);
}

/* Responsive adjustments for featured items */
@media (max-width: 768px) {
    .featured-item-card .row .col-1 {
        flex: 0 0 auto;
        width: auto;
    }
    
    .featured-item-card .row .col-8 {
        flex: 1;
        max-width: none;
    }
    
    .featured-item-card .row .col-3 {
        flex: 0 0 auto;
        width: auto;
    }
    
    .drag-handle {
        padding: 0.25rem;
    }
    
    .featured-item-card h6 {
        font-size: 0.9rem;
    }
    
    .featured-item-card small {
        font-size: 0.75rem;
    }
}

/* =============================================================================
   TICORE ADMIN STYLES
   ============================================================================= */

/* TiCore Page Header */
.ticore-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ticore-header .admin-title {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ticore-header .admin-title i {
    color: #4A9EFF;
    margin-right: 0.5rem;
    font-size: 1.2em;
}

/* TiCore Dashboard Stats */
.ticore-page .stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticore-page .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.ticore-page .stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    float: left;
    margin-right: 1rem;
}

.ticore-page .stat-card .stat-icon i {
    color: white;
    font-size: 1.5rem;
}

.ticore-page .stat-card .stat-content h3 {
    color: var(--admin-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ticore-page .stat-card .stat-content p {
    color: var(--admin-text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* TiCore Tabs */
.ticore-tabs {
    background: white;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.ticore-tabs .nav-link {
    color: var(--admin-text-light);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.ticore-tabs .nav-link:hover {
    background: var(--admin-clean-bg);
    color: var(--admin-primary);
}

.ticore-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.ticore-tabs .nav-link i {
    margin-right: 0.5rem;
}

/* TiCore Cards */
.ticore-page .admin-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.ticore-page .admin-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticore-page .admin-card-header h3 {
    color: var(--admin-primary);
    font-weight: 600;
    margin: 0;
}

.ticore-page .admin-card-header h3 i {
    color: var(--admin-clean-primary);
    margin-right: 0.5rem;
}

/* TiCore Tables */
.ticore-page table {
    border-radius: 10px;
    overflow: hidden;
}

.ticore-page table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ticore-page table thead th {
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.ticore-page table tbody tr {
    transition: background-color 0.3s ease;
}

.ticore-page table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.ticore-page table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--admin-border);
}

/* TiCore Badges */
.ticore-page .badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.ticore-page .badge.bg-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
}

.ticore-page .badge.bg-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%) !important;
}

.ticore-page .badge.bg-secondary {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%) !important;
}

/* TiCore Action Buttons */
.ticore-page .btn-group .btn {
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    margin: 0 0.1rem;
    transition: all 0.3s ease;
}

.ticore-page .btn-outline-primary {
    color: var(--admin-clean-primary);
    border: 1px solid var(--admin-clean-primary);
}

.ticore-page .btn-outline-primary:hover {
    background: var(--admin-clean-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(74, 158, 255, 0.3);
}

.ticore-page .btn-outline-danger {
    color: var(--admin-danger);
    border: 1px solid var(--admin-danger);
}

.ticore-page .btn-outline-danger:hover {
    background: var(--admin-danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(245, 101, 101, 0.3);
}

.ticore-page .btn-outline-info {
    color: var(--admin-info);
    border: 1px solid var(--admin-info);
}

.ticore-page .btn-outline-info:hover {
    background: var(--admin-info);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(66, 153, 225, 0.3);
}

/* TiCore Modals */
.ticore-page .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ticore-page .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.ticore-page .modal-header h5 {
    font-weight: 600;
}

.ticore-page .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.ticore-page .modal-body {
    padding: 2rem;
}

.ticore-page .modal-footer {
    border-top: 1px solid var(--admin-border);
    padding: 1rem 2rem;
}

/* TiCore Forms */
.ticore-page .form-control {
    border-radius: 8px;
    border: 1px solid var(--admin-border);
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.ticore-page .form-control:focus {
    border-color: var(--admin-clean-primary);
    box-shadow: 0 0 0 0.2rem rgba(74, 158, 255, 0.25);
}

.ticore-page .form-label {
    color: var(--admin-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ticore-page .form-text {
    color: var(--admin-text-light);
    font-size: 0.8rem;
}

/* TiCore Alerts */
.ticore-page .alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.ticore-page .alert-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.ticore-page .alert-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.ticore-page .alert-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.ticore-page .alert-warning {
    background: linear-gradient(135deg, #f6e05e 0%, #ecc94b 100%);
    color: #744210;
}

/* TiCore Responsive */
@media (max-width: 768px) {
    .ticore-page .stat-card {
        margin-bottom: 1rem;
    }
    
    .ticore-page .admin-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .ticore-page .admin-card-header h3 {
        margin-bottom: 1rem;
    }
    
    .ticore-tabs .nav-link {
        padding: 0.5rem 1rem;
        margin: 0.1rem;
    }
}

/* =============================================================================
   EXISTING CSS CONTINUES...
   ============================================================================= */

