/* Sraya Portal Premium CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #003366;
    --accent-color: #D4AF37;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 50px rgba(0, 51, 102, 0.1);
    --radius: 16px;
}

.sraya-portal-wrap {
    direction: rtl;
    font-family: 'Outfit', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text-main);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

/* Dashboard Cards */
.sraya-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.sraya-premium-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 51, 102, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sraya-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.sraya-premium-card i, .sraya-premium-card .sraya-icon {
    font-size: 40px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sraya-premium-card h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.sraya-premium-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* Glass Header */
.sraya-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sraya-header h2 {
    margin: 0;
    font-size: 26px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Table */
.sraya-table-container {
    background: #fff;
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-soft);
    margin-top: 20px;
    overflow: hidden;
}

.sraya-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.sraya-table th {
    background: #f8fafc;
    padding: 18px 20px;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid #edf2f7;
    text-align: right;
}

.sraya-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.sraya-table tr:hover td {
    background: #fdfdfd;
}

/* Status Badges */
.sraya-status {
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sraya-status-open { background: #dcfce7; color: #166534; }
.sraya-status-closed { background: #f1f5f9; color: #475569; }
.sraya-status-pending { background: #fef9c3; color: #854d0e; }

/* Buttons */
.sraya-btn-premium {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.sraya-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
    opacity: 0.95;
}

/* Thread / Chat View */
.sraya-thread-view {
    padding: 20px;
}

.sraya-msg-bubble {
    max-width: 80%;
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.sraya-msg-customer {
    background: #f1f5f9;
    align-self: flex-start;
    border-bottom-right-radius: 4px;
    margin-right: auto;
    border-left: 4px solid var(--accent-color);
}

.sraya-msg-agent {
    background: #003366;
    color: #fff;
    align-self: flex-end;
    border-bottom-left-radius: 4px;
    margin-left: auto;
    border-right: 4px solid var(--accent-color);
}

.sraya-msg-meta {
    font-size: 11px;
    margin-bottom: 8px;
    opacity: 0.8;
}

/* Multi-file Input Multi-line Fix */
.wpcf7-file {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    padding: 20px !important;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.3s;
}

.wpcf7-file:hover {
    border-color: var(--primary-color);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .sraya-header { flex-direction: column; text-align: center; gap: 15px; }
    .sraya-premium-card { padding: 20px; }
}
