/* Unified User Dashboard CSS */

/* CSS from order_details.php */

/* Modern Premium Color Palette */
:root {
    --bg-light: #f8faff;
    --card-border: #edf2f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-blue: #2563eb;
    
    --pending-bg: #fffbf0;
    --pending-text: #d97706;
    --confirmed-bg: #f0fdf4;
    --confirmed-text: #15803d;
    --paid-bg: #eff6ff;
    --paid-text: #1d4ed8;
}

body { background-color: var(--bg-light); }

/* Premium Summary Grid */
.premium-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}
.summary-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--card-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.summary-card .icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.summary-card.pending-card .icon-wrap { background: var(--pending-bg); color: var(--pending-text); }
.summary-card.confirmed-card .icon-wrap { background: var(--confirmed-bg); color: var(--confirmed-text); }
.summary-card.paid-card .icon-wrap { background: var(--paid-bg); color: var(--paid-text); }

.summary-card .details p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
}
.summary-card .details h3 {
    font-size: 22px;
    color: var(--text-main);
    font-weight: 800;
    line-height: 1;
    margin: 0;
}

/* Card Container */
.ps24-earnings-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid var(--card-border);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}
.ps24-earnings-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}
.ps24-earnings-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* Tabs */
.ps24-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
    gap: 30px;
}

.ps24-tab {
    background: transparent;
    border: none;
    padding: 10px 5px;
    font-size: 15px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.ps24-tab:hover {
    color: #333;
}

.ps24-tab.active {
    color: #0036da;
}

.ps24-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0036da;
    border-radius: 2px 2px 0 0;
}

/* Premium Orders List */
.premium-orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.premium-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: #fafcff;
    transition: all 0.2s ease;
}
.premium-order-card:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-color: #e2e8f0;
}

.poc-store {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 2;
}
.poc-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.poc-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.poc-logo.text-logo {
    background: #f1f5f9;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-muted);
    padding: 0;
}
.poc-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
    margin-top: 0;
}
.poc-info span {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
}

.poc-date {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.poc-date strong { font-size: 14px; color: var(--text-main); }
.poc-date span { font-size: 12px; color: var(--text-muted); }

.poc-amount {
    flex: 1;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.poc-amount .currency { font-size: 16px; margin-right: 2px; color: var(--text-muted); }
.poc-amount small { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }

.poc-status-wrap {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.poc-status {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-confirmed { background: var(--confirmed-bg); color: var(--confirmed-text); border: 1px solid #bbf7d0; }
.status-confirmed .pulse-dot { background: var(--confirmed-text); box-shadow: 0 0 0 2px rgba(21,128,61,0.2); }

.status-pending { background: var(--pending-bg); color: var(--pending-text); border: 1px solid #fde68a; }
.status-pending .pulse-dot { background: var(--pending-text); box-shadow: 0 0 0 2px rgba(217,119,6,0.2); }

.status-declined { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.status-declined .pulse-dot { background: #b91c1c; }

.ps24-btn-blue {
    display: inline-block;
    background: #0036da;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 6px;
    transition: 0.2s;
    text-decoration: none;
}

.ps24-btn-blue:hover {
    background: #002bb5;
    color: white;
}

@media (max-width: 768px) {
    .premium-order-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .poc-amount { align-items: flex-start; margin-left: 70px; flex-direction: row; gap: 8px; }
    .poc-amount small { margin-top: 5px; }
    .poc-status-wrap { width: 100%; justify-content: flex-start; margin-left: 70px; }
    .card-header-flex { flex-direction: column; align-items: flex-start; gap: 15px; }
}


/* CSS from dashboard.php */

.ps24-earnings-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
}
.ps24-earnings-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}
.ps24-earnings-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
.ps24-earnings-total {
    font-size: 32px;
    font-weight: 800;
    color: #0036da;
    margin-bottom: 5px;
}
.ps24-earnings-note {
    font-size: 11px;
    color: #888;
    margin-bottom: 25px;
}
.ps24-earnings-grid {
    display: flex;
    gap: 20px;
}
.ps24-earnings-col {
    flex: 1;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
}
.ps24-col-header {
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.ps24-col-header strong { font-size: 14px; color: #333; }
.ps24-col-header span { font-size: 15px; font-weight: 700; color: #333; }
.ps24-col-body {
    padding: 15px;
    background: #fafafa;
}
.ps24-stat-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.ps24-stat-amt {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    width: 40%;
}
.ps24-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid;
    width: 90px;
    justify-content: center;
}
.ps24-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.ps24-badge-confirmed { border-color: #28a745; color: #28a745; background: #fff; }
.ps24-badge-confirmed .dot { background: #28a745; }
.ps24-badge-pending { border-color: #ffc107; color: #ffc107; background: #fff; }
.ps24-badge-pending .dot { background: #ffc107; }
.ps24-badge-paid { border-color: #0036da; color: #0036da; background: #fff; }
.ps24-badge-paid .dot { background: #0036da; }
.ps24-stat-desc {
    width: 100%;
    font-size: 11px;
    color: #888;
    margin-top: 5px;
}
.ps24-btn-blue {
    display: inline-block;
    background: #0036da;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 6px;
    transition: 0.2s;
}
.ps24-btn-blue:hover {
    background: #002bb5;
    color: white;
}
.ps24-accordion {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 15px;
}
.ps24-accordion-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.ps24-accordion-header strong {
    font-size: 15px;
    color: #333;
}


/* CSS from view_order.php */

    /* View Order Card Styles */
    .view-order-card {
        background: #fff;
        border-radius: 16px;
        padding: 35px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
        border: 1px solid #edf2f9;
    }

    .vo-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 20px;
        margin-bottom: 25px;
    }

    .baps24-link {
        display: flex;
        align-items: center;
        gap: 5px;
        color: #64748b;
        text-decoration: none;
        font-weight: 600;
        transition: 0.2s;
    }

    .baps24-link:hover {
        color: #2563eb;
    }

    .vo-id {
        background: #f8fafc;
        padding: 5px 12px;
        border-radius: 6px;
        font-size: 13px;
        color: #475569;
        font-family: monospace;
        font-weight: 600;
    }

    .vo-store-info {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
    }

    .vo-store-info img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 1px solid #e2e8f0;
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
        object-fit: contain;
    }

    .vo-store-info .text-logo {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        font-weight: 800;
        color: #64748b;
    }

    .vo-store-info h2 {
        font-size: 24px;
        color: #1e293b;
        margin-bottom: 5px;
        font-weight: 800;
    }

    .vo-store-info p {
        color: #64748b;
        font-size: 14px;
    }

    .vo-amount-box {
        display: flex;
        background: #f8faff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 35px;
    }

    .vo-amount-col,
    .vo-status-col {
        flex: 1;
    }

    .vo-status-col {
        border-left: 1px solid #e2e8f0;
        padding-left: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .vo-amount-box p {
        font-size: 13px;
        color: #64748b;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .vo-amount-col h3 {
        font-size: 28px;
        color: #1e293b;
        font-weight: 800;
        margin: 0;
    }

    .vo-badge {
        padding: 8px 16px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 700;
    }

    .vo-confirmed {
        background: #dcfce7;
        color: #15803d;
    }

    .vo-pending {
        background: #fef3c7;
        color: #d97706;
    }

    .vo-declined {
        background: #fee2e2;
        color: #b91c1c;
    }

    /* Timeline */
    .timeline-title {
        font-size: 18px;
        color: #1e293b;
        font-weight: 800;
        margin-bottom: 25px;
    }

    .timeline-item {
        display: flex;
        gap: 20px;
        margin-bottom: 30px;
        position: relative;
        opacity: 0.5;
    }

    .timeline-item.active {
        opacity: 1;
    }

    .tl-icon {
        width: 40px;
        height: 40px;
        background: #f1f5f9;
        color: #94a3b8;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .timeline-item.active .tl-icon {
        background: #eff6ff;
        color: #2563eb;
    }

    .timeline-item.active .tl-success {
        background: #dcfce7;
        color: #15803d;
    }

    .timeline-item.active .tl-danger {
        background: #fee2e2;
        color: #b91c1c;
    }

    .tl-line {
        position: absolute;
        left: 20px;
        top: -30px;
        bottom: 30px;
        width: 2px;
        background: #e2e8f0;
        z-index: 1;
    }

    .timeline-item.active .tl-line {
        background: #bfdbfe;
    }

    .tl-content {
        flex: 1;
        padding-top: 5px;
    }

    .tl-content h4 {
        font-size: 16px;
        color: #334155;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .tl-content p {
        font-size: 13px;
        color: #64748b;
        margin-bottom: 5px;
    }

    .tl-content span {
        font-size: 12px;
        background: #f8fafc;
        padding: 4px 10px;
        border-radius: 4px;
        color: #475569;
    }


/* CSS from account_settings.php */

/* CSS for the account settings layout matching the design */
.floating-input-group {
    position: relative;
    max-width: 500px;
    margin-bottom: 25px;
}
.floating-input-group input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
}
.floating-input-group input:focus {
    border-color: #0036da;
    box-shadow: 0 0 0 3px rgba(0, 54, 218, 0.1);
}
.floating-input-group label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: #fff;
    padding: 0 5px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}
.floating-input-group .edit-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #0036da;
    font-size: 20px;
    pointer-events: none;
}

@media(max-width: 768px) {
    .ps24-dashboard-layout {
        flex-direction: column;
    }
    .ps24-sidebar {
        width: 100% !important;
    }
}


/* CSS from missing_cashback.php */

.ps24-form label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}
.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}


