/* ===== DASHBOARD SPECIFIC STYLES ===== */

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.dashboard-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(255, 107, 107, 0.1));
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ENHANCED BID STATUS TABLE ===== */
.bid-status-section {
    margin: var(--space-xl) 0;
}

.bid-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid rgba(108, 99, 255, 0.3);
}

.bid-status-header h2 {
    margin: 0;
    color: var(--text-white);
    font-size: 1.8rem;
}

.bid-status-filters {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

/* Enhanced Bids Table */
.bids-table-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.bids-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.bids-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.bids-table th {
    padding: var(--space-lg) var(--space-md);
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    border: none;
    position: relative;
}

.bids-table th::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.2);
}

.bids-table th:last-child::after {
    display: none;
}

.bids-table td {
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    transition: all var(--transition-normal);
}

.bids-table tbody tr {
    transition: all var(--transition-normal);
}

.bids-table tbody tr:hover {
    background: rgba(108, 99, 255, 0.05);
    transform: translateY(-1px);
}

.bids-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Column Specific Styles */
.amount-cell {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
}

.amount-cell::before {
    content: 'KES ';
    font-size: 0.8em;
    opacity: 0.7;
}

.period-cell {
    text-align: center;
    font-weight: 600;
}

.period-cell::after {
    content: ' days';
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 2px;
}

.expected-return-cell {
    font-weight: 700;
    color: var(--success-color);
}

.expected-return-cell::before {
    content: 'KES ';
    font-size: 0.8em;
    opacity: 0.7;
}

.time-remaining-cell {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-align: center;
}

.time-remaining-cell.expiring {
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.time-remaining-cell.expired {
    color: var(--danger-color);
    text-decoration: line-through;
}

/* ===== ENHANCED STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
    gap: 6px;
    min-width: 100px;
    text-align: center;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.status-pending::before {
    background: #ffc107;
    animation: pulse 2s infinite;
}

.status-paired {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
}

.status-paired::before {
    background: #17a2b8;
}

.status-paid {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.status-paid::before {
    background: #28a745;
}

.status-completed {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(108, 99, 255, 0.3);
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.2);
}

.status-completed::before {
    background: var(--primary-color);
}

.status-expired {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.status-expired::before {
    background: #6c757d;
}

.status-cancelled {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.status-cancelled::before {
    background: #dc3545;
}

/* ===== PAYMENT STATUS BADGES ===== */
.payment-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 4px;
}

.payment-status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.payment-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.payment-pending::before {
    background: #ffc107;
    animation: pulse 1.5s infinite;
}

.payment-confirmed {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.payment-confirmed::before {
    background: #28a745;
}

.payment-disputed {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.payment-disputed::before {
    background: #dc3545;
    animation: pulse 1s infinite;
}

/* ===== ROLE BADGES ===== */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 6px;
    min-width: 90px;
    justify-content: center;
}

.role-badge::before {
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
    font-size: 0.9em;
}

.role-sender {
    background: rgba(108, 99, 255, 0.15);
    color: #6c63ff;
    border: 1px solid rgba(108, 99, 255, 0.3);
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.2);
}

.role-sender::before {
    content: '📤';
}

.role-receiver {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.role-receiver::before {
    content: '📥';
}

.role-waiting {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.role-waiting::before {
    content: '⏳';
}

/* ===== ENHANCED PEER DETAILS ===== */
.peer-details {
    min-width: 200px;
}

.peer-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin: var(--space-xs) 0;
    transition: all var(--transition-normal);
}

.peer-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.peer-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 0.85rem;
}

.peer-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.peer-info-row:last-child {
    border-bottom: none;
}

.peer-info-label {
    color: var(--text-white);
    font-weight: 600;
    min-width: 100px;
    font-size: 0.8rem;
}

.peer-info-value {
    color: var(--text-muted);
    text-align: right;
    font-size: 0.8rem;
    word-break: break-all;
}

.no-peer {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ===== ACTION BUTTONS ENHANCEMENT ===== */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.btn-action {
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    text-align: center;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== COUNTDOWN TIMER ===== */
.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    min-width: 100px;
}

.countdown-urgent {
    color: var(--accent-color);
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    animation: pulse 1s infinite;
}

.countdown-expired {
    color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    text-decoration: line-through;
}

/* Current Session Highlight */
.current-session-info {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(23, 162, 184, 0.1));
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.current-session-info .session-name {
    color: #28a745;
    font-size: 1.3rem;
}

/* ===== ROI PREVIEW STYLES ===== */
.roi-preview {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(23, 162, 184, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-md) 0;
}

.roi-preview h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    text-align: center;
}

.roi-breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.roi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.roi-item:last-child {
    border-bottom: none;
}

.roi-item.total {
    border-top: 2px solid var(--primary-color);
    padding-top: var(--space-md);
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    margin-top: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

.profit {
    color: var(--success-color);
    font-weight: 600;
}

.total-return {
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== EMPTY AND ERROR STATES ===== */
.empty-state, .error-state {
    text-align: center;
    padding: var(--space-xxl);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: var(--space-lg) 0;
}

.empty-icon, .error-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.7;
}

.empty-state h3, .error-state h3 {
    color: var(--text-white);
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.empty-state p, .error-state p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* ===== LOADING STATES ===== */
.loading-container {
    text-align: center;
    padding: var(--space-xxl);
    color: var(--text-muted);
}

.loading-container .loading {
    margin: 0 auto var(--space-lg);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.table-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .bids-table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bid-status-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .bid-status-filters {
        width: 100%;
        justify-content: space-between;
    }
    
    .bids-table-container {
        border-radius: var(--radius-md);
        overflow-x: auto;
    }
    
    .peer-info {
        grid-template-columns: 1fr;
        font-size: 0.75rem;
    }
    
    .peer-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        text-align: left;
    }
    
    .peer-info-label {
        min-width: auto;
        font-size: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
        min-width: 120px;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    
    .status-badge,
    .role-badge,
    .payment-status-badge {
        font-size: 0.65rem;
        padding: 6px 10px;
        min-width: 80px;
    }
    
    .countdown-timer {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: var(--space-md);
    }
    
    .dashboard-card {
        padding: var(--space-lg);
    }
    
    .bid-status-filters {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .filter-select {
        width: 100%;
    }
    
    .empty-state,
    .error-state {
        padding: var(--space-xl);
    }
    
    .empty-icon,
    .error-icon {
        font-size: 3rem;
    }
    
    .bids-table th,
    .bids-table td {
        padding: var(--space-md) var(--space-sm);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.mt-3 {
    margin-top: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-md);
}

.p-3 {
    padding: var(--space-md);
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: var(--space-sm);
}

.w-full {
    width: 100%;
}

/* ===== NOTIFICATION BELL ===== */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--bg-card);
    animation: pulse 2s infinite;
}

/* ===== SCROLLBAR STYLING ===== */
.bids-table-container::-webkit-scrollbar {
    height: 8px;
}

.bids-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.bids-table-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.bids-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== PRINT STYLES ===== */
@media print {
    .bids-table-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .action-buttons,
    .bid-status-filters {
        display: none;
    }
    
    .bids-table th {
        background: #f8f9fa !important;
        color: #000 !important;
    }
}

/* ===== DARK MODE ENHANCEMENTS ===== */
@media (prefers-color-scheme: dark) {
    .bids-table-container {
        background: var(--bg-card);
    }
    
    .peer-card {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .stat-card {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
    .bids-table th {
        background: #000;
        color: #fff;
    }
    
    .status-badge,
    .role-badge {
        border-width: 2px;
    }
    
    .peer-card {
        border-width: 2px;
    }
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
    .dashboard-card,
    .peer-card,
    .btn-action,
    .bids-table tbody tr {
        transition: none;
    }
    
    .pulse,
    .countdown-urgent {
        animation: none;
    }
}
/* Additional Status Badges */
.status-awaiting_return {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-expired {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.status-active {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Action Buttons in Tables */
.action-buttons {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

/* Button States */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Enhanced Admin Styles */
.financial-charts {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.security-alerts {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #ffc107;
}

.alert-high {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.alert-medium {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.alert-low {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.export-actions {
    margin-top: 20px;
    padding: 15px;
    background: rgba(108, 99, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6c63ff;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* Responsive admin design */
@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .performance-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== ADMIN DASHBOARD SPECIFIC STYLES ===== */

/* Loading and Authentication Screens */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.active {
    opacity: 1;
    visibility: visible;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--text-white);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.access-denied-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.access-denied-content {
    text-align: center;
    color: var(--text-white);
    max-width: 500px;
    padding: var(--space-xl);
}

.access-denied-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.access-denied-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

/* Admin Panel Styles */
.admin-panel {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: var(--space-lg);
}

.authentication-status {
    margin-bottom: var(--space-lg);
}

.auth-status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: var(--radius-md);
    color: var(--success-color);
    font-weight: 500;
}

.auth-session-timer {
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.admin-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.system-health {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.health-metrics {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.health-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

/* Financial Dashboard */
.financial-dashboard {
    margin: var(--space-xl) 0;
}

.chart-container {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Security Alerts */
.security-alerts-panel {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(255, 193, 7, 0.1));
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(220, 53, 69, 0.3);
    margin: var(--space-lg) 0;
}

.security-alert {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.security-alert:last-child {
    margin-bottom: 0;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-xs);
}

.alert-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    margin-top: var(--space-xl);
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-white);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.action-btn:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 2rem;
}

.action-text {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Special Bid Styles */
.special-bid-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.special-bid-status {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(255, 193, 7, 0.1));
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.special-bid-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.roi-preview {
    background: rgba(40, 167, 69, 0.1);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.roi-breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.roi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.roi-item:last-child {
    border-bottom: none;
}

.roi-item.total {
    border-top: 2px solid var(--success-color);
    padding-top: var(--space-sm);
    font-weight: 600;
}

.special-bid-history {
    margin-top: var(--space-xl);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Form Styles for Accessibility */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-white);
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.input-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Search and Filter Styles */
.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

/* Stats Cards for Different Sections */
.users-stats,
.bids-stats,
.transactions-stats,
.security-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.user-stat-card,
.bid-stat-card,
.transaction-stat-card,
.security-stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Table Styles */
.admin-table-container {
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.admin-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: rgba(108, 99, 255, 0.05);
}

/* Analytics Styles */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kpi-dashboard {
    margin-top: var(--space-xl);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.kpi-card {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.kpi-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.kpi-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.kpi-change.positive {
    color: var(--success-color);
}

.kpi-change.negative {
    color: var(--danger-color);
}

/* Maintenance Grid */
.maintenance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.maintenance-card {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.maintenance-card h5 {
    margin-bottom: var(--space-md);
    color: var(--primary-color);
}

.maintenance-card .button {
    width: 100%;
    margin-bottom: var(--space-sm);
}

.maintenance-card .button:last-child {
    margin-bottom: 0;
}

/* System Info */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Status */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-inactive {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Button Enhancements */
.button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.button:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: var(--text-white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #fd7e14);
    color: var(--text-dark);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #e63946);
    color: var(--text-white);
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
}

.btn-icon {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .special-bid-header {
        grid-template-columns: 1fr;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-panel {
        padding: var(--space-lg);
        margin: var(--space-md);
    }
    
    .action-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-stats,
    .users-stats,
    .bids-stats,
    .transactions-stats,
    .security-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-stats,
    .users-stats,
    .bids-stats,
    .transactions-stats,
    .security-stats {
        grid-template-columns: 1fr;
    }
    
    .access-denied-actions {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .admin-panel {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .button,
    .action-btn,
    .quick-actions {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .admin-panel {
        border: 2px solid var(--text-white);
    }
    
    .admin-stat-card,
    .user-stat-card,
    .bid-stat-card {
        border: 2px solid var(--text-white);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .button,
    .action-btn,
    .admin-stat-card {
        transition: none;
    }
    
    .button::before {
        display: none;
    }
}
/* ===== END OF DASHBOARD SPECIFIC STYLES ===== */