/* ============================================
   DASHBOARD & ADMIN STYLES
   FotoEditor Pro - Premium Design System
   ============================================ */

/* Google Fonts override */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ---- Dashboard Main ---- */
.dashboard-main {
    min-height: calc(100vh - 200px);
    padding: 30px 0 60px;
    background: linear-gradient(135deg, #f0f2f5 0%, #e8edf2 50%, #f5f7fa 100%);
}

/* ---- Welcome Banner ---- */
.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    border-radius: 16px;
    padding: 30px 35px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(67, 97, 238, 0.3);
    position: relative;
    overflow: hidden;
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.welcome-text h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.welcome-text p {
    opacity: 0.85;
    font-size: 15px;
    margin: 0;
}

/* ---- Stats Cards ---- */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid transparent;
}

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

.stat-card.stat-pending {
    border-left-color: #ff9800;
}

.stat-card.stat-process {
    border-left-color: #2196f3;
}

.stat-card.stat-ready {
    border-left-color: #4caf50;
}

.stat-card.stat-total {
    border-left-color: #9c27b0;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-pending .stat-icon {
    background: #fff3e0;
    color: #ff9800;
}

.stat-process .stat-icon {
    background: #e3f2fd;
    color: #2196f3;
}

.stat-ready .stat-icon {
    background: #e8f5e9;
    color: #4caf50;
}

.stat-total .stat-icon {
    background: #f3e5f5;
    color: #9c27b0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 4px;
    font-weight: 500;
}

/* ---- Section headings ---- */
.section-heading {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading i {
    color: #4361ee;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* ---- Page Header ---- */
.page-header-dash {
    margin-bottom: 25px;
}

.page-header-dash h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: #4361ee;
}

/* ---- Services Grid (Dashboard) ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 10px;
}

.service-dash-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #eef0f2;
}

.service-dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.service-dash-img {
    height: 160px;
    background: linear-gradient(135deg, #f8f9ff, #eef0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-dash-img img {
    max-height: 120px;
    max-width: 80%;
    object-fit: contain;
    transition: transform 0.3s;
}

.service-dash-card:hover .service-dash-img img {
    transform: scale(1.08);
}

.service-dash-body {
    padding: 20px 22px 22px;
}

.service-dash-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.service-dash-body p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 16px;
}

.service-dash-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-dash-price {
    font-size: 22px;
    font-weight: 800;
    color: #4361ee;
}

/* ---- Orders Table ---- */
.orders-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead {
    background: linear-gradient(135deg, #f8f9fa, #eef0f2);
}

.orders-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e8edf2;
}

.orders-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
}

.orders-table tbody tr:hover {
    background-color: #f8f9ff;
}

.highlight-row {
    background-color: #fff8e1 !important;
    animation: pulse-bg 2s ease-in-out infinite;
}

@keyframes pulse-bg {

    0%,
    100% {
        background-color: #fff8e1;
    }

    50% {
        background-color: #fff3cd;
    }
}

.client-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.client-cell small {
    color: #7f8c8d;
    font-size: 12px;
}

/* ---- Status Badges ---- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.status-sent {
    background: #e3f2fd;
    color: #1565c0;
}

.status-confirmed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-process {
    background: #e8eaf6;
    color: #283593;
}

.status-ready {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.status-delivered {
    background: #f3e5f5;
    color: #6a1b9a;
}

.status-cancelled {
    background: #fce4ec;
    color: #c62828;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.empty-state i {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    font-size: 22px;
    color: #374151;
    margin-bottom: 10px;
}

.empty-state p {
    color: #9ca3af;
    margin-bottom: 25px;
}

/* ---- Buttons ---- */
.btn-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 6px 25px rgba(67, 97, 238, 0.5);
    transform: translateY(-2px);
}

.btn-xs {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #4361ee;
    font-size: 14px;
}

.admin-link {
    color: #e74c3c !important;
    font-weight: 600 !important;
}

/* ---- Nueva Orden Steps ---- */
.order-step {
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef0f2;
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.4s ease;
}

.order-step.active,
.order-step.completed {
    opacity: 1;
    pointer-events: all;
}

.order-step.active {
    border-color: #4361ee;
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.12);
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: linear-gradient(135deg, #f8f9ff, #eef0ff);
    border-bottom: 1px solid #e8edf2;
}

.order-step.active .step-indicator {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: #4361ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.2);
}

.order-step.active .step-num {
    background: white;
    color: #4361ee;
}

.step-text {
    font-weight: 600;
    font-size: 16px;
    color: #374151;
}

.order-step.active .step-text {
    color: white;
}

.step-content {
    padding: 25px;
}

/* Service Selection Cards */
.service-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-select-card {
    border: 2px solid #e8edf2;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-select-card:hover {
    border-color: #4361ee;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(67, 97, 238, 0.15);
}

.service-select-card.selected {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2), 0 8px 30px rgba(67, 97, 238, 0.15);
}

.ssc-header {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #f8f9ff, #eef0ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssc-header img {
    max-height: 120px;
    max-width: 80%;
    object-fit: contain;
}

.ssc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ssc-badge.popular {
    background: #4361ee;
    color: white;
}

.ssc-badge.premium {
    background: #8e44ad;
    color: white;
}

.ssc-body {
    padding: 20px;
}

.ssc-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.ssc-desc {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 12px;
}

.ssc-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.ssc-specs li {
    font-size: 13px;
    color: #5f6368;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ssc-specs li i {
    color: #4caf50;
    font-size: 12px;
}

.ssc-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 5px;
}

.price-val {
    font-size: 28px;
    font-weight: 800;
    color: #4361ee;
}

.price-cur {
    font-size: 14px;
    color: #7f8c8d;
}

.ssc-footer {
    padding: 0 20px 20px;
}

.btn-select-srv {
    border-radius: 10px;
    padding: 12px;
}

/* ---- Photo Upload Section ---- */
.photo-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8edf2;
}

.photo-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #7f8c8d;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.photo-tab.active {
    background: #4361ee;
    color: white;
}

.photo-tab:hover:not(.active) {
    background: #e8edf2;
}

.photo-tab-content {
    display: none;
}

.photo-tab-content.active {
    display: block;
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 14px;
    padding: 50px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: #4361ee;
    background: #f8f9ff;
}

.upload-dropzone i {
    font-size: 48px;
    color: #4361ee;
    margin-bottom: 15px;
    display: block;
}

.upload-dropzone h4 {
    font-size: 18px;
    color: #374151;
    margin-bottom: 5px;
}

.upload-dropzone p {
    color: #9ca3af;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 12px !important;
    color: #d1d5db !important;
}

.upload-preview {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid #e8edf2;
}

.upload-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Camera */
.camera-container {
    text-align: center;
}

.camera-viewport {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 20px;
    border-radius: 14px;
    overflow: hidden;
    background: #1a1a2e;
    aspect-ratio: 3/4;
}

.camera-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-guide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.face-guide-svg {
    width: 100%;
    height: 100%;
}

.camera-instructions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
}

.camera-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.btn-capture {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    border: 3px solid white;
    background: #4361ee;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-capture:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(67, 97, 238, 0.5);
}

.capture-preview {
    text-align: center;
    margin-top: 15px;
}

.capture-preview canvas {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.capture-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

/* Notes */
.notes-section {
    margin-top: 20px;
}

.notes-section label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #374151;
}

.notes-section textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s;
}

.notes-section textarea:focus {
    border-color: #4361ee;
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* ---- Order Summary ---- */
.order-summary {
    background: #f8f9ff;
    border-radius: 14px;
    padding: 20px 25px;
    margin-bottom: 20px;
    border: 1px solid #e8edf2;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
}

.summary-row.total {
    font-size: 20px;
    padding-top: 15px;
}

.summary-row.total strong {
    font-size: 24px;
}

.text-primary {
    color: #4361ee !important;
}

/* Payment Info Box */
.payment-info-box {
    background: linear-gradient(135deg, #fffbf0, #fff6e0);
    border: 1px solid #ffe0a0;
    border-radius: 14px;
    padding: 20px 25px;
    margin-bottom: 25px;
}

.payment-info-box h4 {
    font-size: 16px;
    color: #b8860b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-info-box ul {
    padding-left: 0;
    list-style: none;
}

.payment-info-box li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #5a4a00;
}

.payment-info-box .small {
    font-size: 13px;
    color: #8d7400;
    margin-top: 10px;
}

/* ---- Order Detail Layout ---- */
.order-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    align-items: start;
}

.detail-card {
    background: white;
    border-radius: 14px;
    padding: 22px 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid #eef0f2;
}

.detail-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card h3 i {
    color: #4361ee;
}

.highlight-card {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f8fff8, white);
}

.help-card {
    background: linear-gradient(135deg, #f8f9ff, white);
}

/* Photo Preview */
.photo-preview-box {
    text-align: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.order-photo {
    max-width: 100%;
    max-height: 350px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Summary Detail */
.summary-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f2f5;
}

.sd-row:last-child {
    border-bottom: none;
}

.sd-row span {
    color: #7f8c8d;
}

/* Status Timeline */
.order-status-card {
    background: white;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid #eef0f2;
}

.status-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: #e8edf2;
    z-index: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.timeline-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e8edf2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #adb5bd;
    transition: all 0.3s;
}

.timeline-step.completed .timeline-dot {
    background: #4caf50;
    color: white;
}

.timeline-step.current .timeline-dot {
    background: #4361ee;
    color: white;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(67, 97, 238, 0.1);
    }
}

.timeline-label {
    font-size: 11px;
    color: #adb5bd;
    text-align: center;
    max-width: 80px;
    font-weight: 500;
}

.timeline-step.completed .timeline-label {
    color: #4caf50;
}

.timeline-step.current .timeline-label {
    color: #4361ee;
    font-weight: 700;
}

/* Payment Section */
.payment-card {
    border-color: #ff9800;
}

.payment-instructions {
    margin-bottom: 20px;
}

.payment-method-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.payment-method-box h4 {
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-details p {
    font-size: 14px;
    margin-bottom: 6px;
    color: #374151;
}

.payment-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.payment-divider span {
    background: white;
    padding: 0 15px;
    color: #9ca3af;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.payment-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8edf2;
}

/* Waiting State */
.waiting-state {
    text-align: center;
    padding: 30px;
}

.waiting-state h3 {
    font-size: 20px;
    color: #374151;
    margin-bottom: 10px;
}

.waiting-state p {
    color: #7f8c8d;
}

.pulse-animation {
    display: inline-flex;
    margin-bottom: 20px;
    animation: bounce-slow 2s ease-in-out infinite;
}

.pulse-animation i {
    font-size: 48px;
    color: #ff9800;
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Alert */
.alert-dash {
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* ---- Orders List (mis_ordenes) ---- */
.orders-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid #e8edf2;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.filter-btn:hover {
    border-color: #4361ee;
    color: #4361ee;
}

.filter-btn.active {
    background: #4361ee;
    color: white;
    border-color: #4361ee;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-list-item {
    background: white;
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef0f2;
    transition: all 0.3s;
}

.order-list-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.oli-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.oli-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #f8f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.oli-image img {
    max-width: 45px;
    max-height: 45px;
    object-fit: contain;
}

.oli-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.oli-service {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 2px;
}

.oli-date {
    font-size: 12px;
    color: #adb5bd;
}

.oli-date i {
    margin-right: 3px;
}

.oli-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.oli-price {
    font-size: 18px;
    font-weight: 700;
    color: #4361ee;
}

.oli-actions {
    display: flex;
    gap: 8px;
}

/* ---- Admin Stats ---- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.admin-stat-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.asc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-total .asc-icon {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-pending .asc-icon {
    background: #fff3e0;
    color: #ef6c00;
}

.stat-sent .asc-icon {
    background: #e8eaf6;
    color: #3f51b5;
}

.stat-process .asc-icon {
    background: #fce4ec;
    color: #c62828;
}

.stat-ready .asc-icon {
    background: #e8f5e9;
    color: #2e7d32;
}

.stat-money .asc-icon {
    background: #f3e5f5;
    color: #7b1fa2;
}

.asc-number {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
    display: block;
    line-height: 1;
}

.asc-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 3px;
    display: block;
}

.admin-quick-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.admin-table tr.highlight-row td {
    font-weight: 500;
}

/* ---- Form Controls ---- */
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #4361ee;
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.dashboard-section {
    margin-bottom: 35px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e8edf2;
    border-top-color: #4361ee;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    color: #374151;
    font-weight: 600;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 400px;
}

.notification.success {
    background: #4caf50;
    color: white;
}

.notification.error {
    background: #f44336;
    color: white;
}

.notification.info {
    background: #2196f3;
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #374151;
    cursor: pointer;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .order-detail-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .status-timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

/* ---- Differentiator for Free Services and Orders ---- */
.service-free {
    border-color: #a5d6a7;
    background: linear-gradient(135deg, #f8fff9, #ffffff);
}

.service-free .service-dash-img {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.free-badge {
    background: #4caf50 !important;
    color: white;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.row-free {
    background-color: #f1f8e9 !important;
    border-left: 4px solid #43a047;
}

.row-free:hover {
    background-color: #e8f5e9 !important;
}

.btn-success {
    background: #4caf50;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.btn-success:hover {
    background: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.3);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-selection-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-list-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .oli-right {
        width: 100%;
        justify-content: space-between;
    }

    .orders-table th:nth-child(2),
    .orders-table td:nth-child(2) {
        min-width: 150px;
    }

    header nav {
        display: none;
    }

    header nav.mobile-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    header nav.mobile-open ul {
        flex-direction: column;
        gap: 15px;
    }

    header nav.mobile-open ul li {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px 14px;
    }

    .stat-number {
        font-size: 22px;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}