/* تصميم وتطوير شركة دروب أيديا للتجارة الرقمية والالكترونية */
/* https://dropidea.com */

/**
 * Rgheeb User Dashboard Styles
 */

/* Hide default WooCommerce elements inside order details */
.woocommerce-customer-details,
.order-again,
.woocommerce-order-again {
    display: none !important;
}

.rgheeb-order-dashboard {
    margin-bottom: 30px;
}

.rgheeb-dashboard-header {
    background: linear-gradient(135deg, #fdad25 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 20px;
}

.rgheeb-dashboard-title {
    color: #fff !important;
    margin: 0 0 5px !important;
    font-size: 22px !important;
}

.rgheeb-dashboard-date {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 14px;
}

/* Status Cards */
.rgheeb-status-cards {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rgheeb-status-card {
    flex: 1;
    min-width: 200px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.rgheeb-status-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.rgheeb-status-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* Order Items Table */
.rgheeb-order-items {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.rgheeb-order-items h4 {
    margin: 0 0 15px;
    color: #333;
    font-size: 16px;
}

.rgheeb-items-table {
    width: 100%;
    border-collapse: collapse;
}

.rgheeb-items-table th {
    background: #fff8ed;
    padding: 10px 14px;
    text-align: right;
    font-size: 13px;
    color: #fdad25;
    border-bottom: 2px solid #fdad25;
}

.rgheeb-items-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.rgheeb-items-table tfoot td {
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #555;
}

.rgheeb-items-table tfoot tr:first-child td {
    border-top: 2px solid #e8ecf3;
    padding-top: 14px;
}

.rgheeb-items-table tfoot tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

/* Total Row */
.rgheeb-total-row td {
    border-top: 2px solid #fdad25 !important;
    border-bottom: 2px solid #fdad25 !important;
    font-size: 16px !important;
    color: #333 !important;
    background: #fff8ed;
    padding: 14px !important;
}

/* Deliverables Section */
.rgheeb-deliverables-section {
    margin: 25px 0;
}

.rgheeb-section-title {
    color: #333;
    font-size: 18px;
    margin: 0 0 8px;
}

.rgheeb-section-desc {
    color: #999;
    font-size: 13px;
    margin: 0 0 15px;
}

.rgheeb-deliverables-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rgheeb-deliverable-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.rgheeb-deliverable-card:hover {
    border-color: #fdad25;
    box-shadow: 0 4px 12px rgba(102,126,234,0.15);
}

.rgheeb-file-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff8ed;
    border-radius: 10px;
    font-weight: 700;
}

.rgheeb-file-info {
    flex: 1;
}

.rgheeb-file-name {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.rgheeb-file-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.rgheeb-download-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #fdad25 0%, #764ba2 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.rgheeb-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .rgheeb-status-cards {
        flex-direction: column;
    }

    .rgheeb-deliverable-card {
        flex-wrap: wrap;
    }

    .rgheeb-download-btn {
        width: 100%;
        text-align: center;
    }

    .rgheeb-dashboard-header {
        padding: 18px;
    }

    .rgheeb-items-table th,
    .rgheeb-items-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}
