/* ============================================
   DASHBOARD PAGE STYLES - STRICT MVC
   Separate CSS file following MVC principles
   ============================================ */

/* ============================================
   STATS CARDS STYLES
   ============================================ */
.dash-stats-card {
    position: relative;
    min-height: 160px;
}

.dash-stats-card .card-body {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.dash-stats-icon-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-stats-icon {
    font-size: 3.5rem;
    opacity: 0.85;
}

.dash-stats-content-col {
    flex-grow: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-stats-title {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 500;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-stats-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
}

.dash-add-funds-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dash-add-funds-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dash-add-funds-btn i {
    color: #0d6efd;
    font-size: 1.2rem;
}

/* ============================================
   CANCEL ORDER MODAL STYLES
   ============================================ */
.cancel-order-modal-dash {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.cancel-modal-header-dash {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 1.5rem 2rem;
    border: none;
}

.cancel-modal-body-dash {
    padding: 2rem;
}

.cancel-icon-wrapper-dash {
    font-size: 4rem;
    color: #dc3545;
    animation: pulse-dash 2s infinite;
}

@keyframes pulse-dash {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.cancel-question-dash {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.cancel-order-info-box-dash {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.cancel-box-icon-dash {
    font-size: 2.5rem;
    color: #667eea;
    flex-shrink: 0;
}

.cancel-box-label-dash {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cancel-box-value-dash {
    font-size: 1.05rem;
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cancel-box-id-dash {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
}

.cancel-refund-notice-dash {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    border-left: 4px solid #28a745;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #155724;
    font-size: 0.95rem;
}

.cancel-warning-notice-dash {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-left: 4px solid #ffc107;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    color: #856404;
    font-size: 0.9rem;
}

.cancel-modal-footer-dash {
    border: none;
    padding: 0 2rem 2rem 2rem;
    gap: 12px;
}

.btn-cancel-keep-dash {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    background: white;
    color: #495057;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel-keep-dash:hover {
    background: #f8f9fa;
    border-color: #ced4da;
    transform: translateY(-2px);
}

.cancel-form-inline-dash {
    flex: 1;
    display: flex;
}

.btn-cancel-confirm-dash {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-cancel-confirm-dash:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* ============================================
   RECENT ORDERS SECTION STYLES - COMPACT ROW VIEW
   ============================================ */
.dash-recent-orders-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.dash-orders-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
}

.dash-orders-body {
    padding: 0;
}

.dash-orders-row-list {
    display: flex;
    flex-direction: column;
}

.dash-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    gap: 1rem;
}

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

.dash-order-row:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    transform: translateX(3px);
}

.dash-order-row-id {
    min-width: 50px;
}

.dash-row-id-label {
    color: #667eea;
    font-weight: 700;
    font-size: 0.85rem;
}

.dash-order-row-package {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.dash-order-row-package i {
    color: #667eea;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.dash-order-link {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-order-link:hover {
    color: #667eea;
}

.dash-order-row-date {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: 80px;
}

.dash-order-row-date i {
    font-size: 0.8rem;
}

.dash-order-row-price {
    color: #28a745;
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 70px;
    text-align: right;
}

.dash-order-row-status {
    min-width: 100px;
    text-align: right;
}

.dash-order-status {
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.dash-status-completed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.dash-status-processing {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.dash-status-pending {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.dash-status-refunded {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.dash-view-all-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dash-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.dash-empty-orders {
    text-align: center;
    padding: 3rem 1rem;
}

.dash-empty-icon {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 1rem;
}

.dash-empty-text {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.dash-empty-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dash-empty-link:hover {
    color: #764ba2;
}

/* ============================================
   ACTIVE ORDERS SECTION STYLES
   ============================================ */
.dash-active-orders-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.dash-active-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
}

.dash-active-body {
    padding: 1.5rem;
}

.dash-active-table {
    margin-bottom: 0;
}

.dash-active-table thead {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.dash-active-table thead th {
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: #2d3748;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-active-table thead th i {
    color: #667eea;
    font-size: 0.85rem;
}

.dash-active-row {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.dash-active-row:hover {
    background: #f8f9ff;
    transform: scale(1.01);
}

.dash-active-row td {
    padding: 1.25rem;
    vertical-align: middle;
}

.dash-active-package {
    font-size: 0.95rem;
    color: #2d3748;
}

.dash-active-order-id {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 600;
    margin-top: 0.25rem;
}

.dash-active-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.dash-active-amount {
    color: #28a745;
    font-size: 1.05rem;
}

.dash-active-status {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.dash-active-status-completed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.dash-active-status-processing {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.dash-active-status-pending {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.dash-active-status-refunded {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.dash-active-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.dash-active-btn-view {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.dash-active-btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.dash-active-btn-cancel {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.dash-active-btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.dash-empty-active {
    text-align: center;
    padding: 3rem 1rem;
}

.dash-empty-active-icon {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 1rem;
}

.dash-empty-active-text {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.dash-empty-active-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dash-empty-active-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .dash-order-row {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .dash-order-row-id {
        min-width: 40px;
    }

    .dash-row-id-label {
        font-size: 0.8rem;
    }

    .dash-order-row-package {
        flex: 1 1 100%;
        order: 1;
        margin-bottom: 0.5rem;
    }

    .dash-order-link {
        font-size: 0.85rem;
    }

    .dash-order-row-date {
        font-size: 0.75rem;
        min-width: auto;
        flex: 1;
    }

    .dash-order-row-price {
        font-size: 0.9rem;
        min-width: auto;
    }

    .dash-order-row-status {
        min-width: auto;
    }

    .dash-order-status {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .dash-active-table {
        font-size: 0.85rem;
    }

    .dash-active-table thead th,
    .dash-active-row td {
        padding: 0.75rem 0.5rem;
    }

    .dash-active-actions {
        flex-direction: column;
        gap: 0.35rem;
    }

    .dash-active-btn-view,
    .dash-active-btn-cancel {
        width: 100%;
        justify-content: center;
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }
}
