/* =============================================
   PAYMENT SYSTEM ENHANCEMENTS - CSS
   ============================================= */

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 10px;
    padding: 14px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

/* =============================================
   PROGRESS STEPPER
   ============================================= */
.progress-stepper-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e2e8f0;
}

.progress-stepper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    max-width: 180px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, #0d7a8a 0%, #0a5f6e 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(13, 122, 138, 0.4);
}

.step-item.completed .step-number {
    background: #10b981;
    color: #fff;
}

.step-icon {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-item.active .step-icon {
    color: #0d7a8a;
}

.step-item.completed .step-icon {
    color: #10b981;
}

.step-content {
    text-align: center;
}

.step-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.step-item.active .step-title {
    color: #0d7a8a;
}

.step-item.completed .step-title {
    color: #10b981;
}

.step-connector {
    position: absolute;
    top: 20px;
    left: calc(50% + 25px);
    width: calc(100% - 50px);
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.step-item.completed .step-connector {
    background: #10b981;
}

.step-item.active .step-connector {
    background: linear-gradient(to right, #0d7a8a, #e2e8f0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .progress-stepper-container {
        display: none;
    }
    
    .progress-stepper {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .step-item {
        max-width: 100px;
    }
    
    .step-title {
        font-size: 11px;
        white-space: normal;
    }
    
    .step-connector {
        display: none;
    }
}

/* =============================================
   SECURITY BADGES
   ============================================= */
.security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
    margin: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    font-size: 12px;
    color: #166534;
    font-weight: 500;
}

.security-badge i {
    font-size: 14px;
    color: #22c55e;
}

.security-badge.ssl i {
    color: #3b82f6;
}

.security-badge.ssl {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

/* Footer security badges */
.footer-security-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
}

.footer-security-badge i {
    color: #4ade80;
}

/* =============================================
   RECEIPT PREVIEW
   ============================================= */
#uploadPreviewList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s;
}

.preview-item:hover {
    border-color: #0d7a8a;
    box-shadow: 0 2px 8px rgba(13, 122, 138, 0.1);
}

.preview-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #e2e8f0;
}

.preview-thumbnail.preview-pdf,
.preview-thumbnail.preview-file {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.preview-thumbnail.preview-pdf {
    background: #fee2e2;
    color: #dc2626;
}

.preview-thumbnail.preview-file {
    background: #e2e8f0;
    color: #64748b;
}

.preview-info {
    flex: 1;
    min-width: 0;
}

.preview-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.preview-badge {
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.preview-remove {
    background: #fee2e2;
    border: none;
    color: #dc2626;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.preview-remove:hover {
    background: #dc2626;
    color: #fff;
}

/* =============================================
   SYSTEM CLOSED OVERLAY
   ============================================= */
.system-closed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.system-closed-content {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    margin: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.system-closed-icon {
    font-size: 64px;
    color: #dc2626;
    margin-bottom: 20px;
    display: block;
}

.system-closed-content h2 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 15px;
}

.system-closed-content p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.system-closed-content .btn {
    padding: 12px 25px;
    font-size: 14px;
    border-radius: 8px;
}

/* =============================================
   ADMIN DASHBOARD ENHANCEMENTS
   ============================================= */
.admin-stats-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-enhanced {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon-lg {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon-lg.blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
}

.stat-icon-lg.green {
    background: linear-gradient(135deg, #10b981, #047857);
    color: #fff;
}

.stat-icon-lg.yellow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.stat-icon-lg.purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
}

.stat-value-lg {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.stat-label-sm {
    font-size: 13px;
    color: #64748b;
    margin-top: 5px;
}

/* Chart container */
.chart-container {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

#statsChart {
    width: 100%;
    height: 250px;
}

/* Online users panel */
.online-users-panel {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.online-users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.online-users-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-count {
    background: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.online-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
}

.online-user-item:last-child {
    margin-bottom: 0;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.online-user-info {
    flex: 1;
}

.online-user-page {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.online-user-ip {
    font-size: 11px;
    color: #64748b;
}

.online-user-count {
    background: #e2e8f0;
    color: #475569;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* System status toggle */
.system-status-toggle {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.status-toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-toggle-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dc2626;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #22c55e;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.status-label {
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}

.status-label.open {
    color: #22c55e;
}

.status-label.closed {
    color: #dc2626;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 768px) {
    .toast-container {
        left: 10px;
        right: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
    
    .security-badges {
        flex-wrap: wrap;
    }
    
    .admin-stats-enhanced {
        grid-template-columns: 1fr;
    }
    
    .footer-security-badges {
        flex-direction: column;
        align-items: center;
    }
}
