:root {
    --slm-primary: #007bff;
    --slm-secondary: #f39c12;
    --slm-bg: #f8fafc;
    --slm-card-bg: #ffffff;
    --slm-text: #1e293b;
    --slm-text-light: #64748b;
    --slm-border: #e2e8f0;
    --slm-success: #10b981;
    --slm-danger: #ef4444;
}

body.slm-full-screen {
    margin: 0; padding: 0; background: var(--slm-bg); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; direction: rtl; color: var(--slm-text);
}

.slm-dashboard {
    max-width: 1300px; margin: 0 auto; padding: 30px 20px; box-sizing: border-box;
}

/* Header Section */
.slm-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;
    background: var(--slm-card-bg); padding: 20px 30px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    flex-wrap: wrap; gap: 20px;
}

.slm-header-info { display: flex; align-items: center; gap: 15px; }
.slm-header-actions { display: flex; gap: 10px; }

/* Stats Grid - Fixed to Horizontal Cards */
.slm-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px;
}

.stat-card {
    background: var(--slm-card-bg); padding: 25px; border-radius: 16px; text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid var(--slm-border);
    transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card .stat-label { display: block; color: var(--slm-text-light); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.stat-card .stat-value { display: block; font-size: 32px; font-weight: 800; color: var(--slm-primary); }

/* Main Content Card */
.slm-card {
    background: var(--slm-card-bg); padding: 30px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid var(--slm-border);
}

/* Table Styling */
.slm-table-container { overflow-x: auto; margin-top: 20px; border-radius: 12px; border: 1px solid var(--slm-border); }
.slm-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.slm-table th, .slm-table td { padding: 16px 20px; text-align: right; border-bottom: 1px solid var(--slm-border); }
.slm-table th { background: #f8fafc; font-weight: 700; color: #475569; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.slm-table tr:last-child td { border-bottom: none; }
.slm-table tr:hover { background-color: #fcfdfe; }

/* Badges */
.status-badge { padding: 6px 12px; border-radius: 30px; font-size: 12px; font-weight: 700; white-space: nowrap; display: inline-block; }
.status-pending { background: #fffbeb; color: #92400e; border: 1px solid #fef3c7; }
.status-processing { background: #eff6ff; color: #1e40af; border: 1px solid #dbeafe; }
.status-completed { background: #ecfdf5; color: #065f46; border: 1px solid #d1fae5; }

/* Buttons */
.slm-btn {
    padding: 10px 20px; border-radius: 10px; border: none; cursor: pointer; font-weight: 700;
    display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s; font-size: 14px; text-decoration: none;
}
.slm-btn-primary { background: var(--slm-primary); color: white !important; box-shadow: 0 4px 10px rgba(0,123,255,0.2); }
.slm-btn-primary:hover { background: #0069d9; box-shadow: 0 6px 15px rgba(0,123,255,0.3); }
.slm-btn-secondary { background: var(--slm-secondary); color: white !important; box-shadow: 0 4px 10px rgba(243,156,18,0.2); }
.slm-btn-secondary:hover { background: #e67e22; }
.slm-btn-outline { background: white; border: 1px solid var(--slm-border); color: var(--slm-text) !important; }
.slm-btn-outline:hover { background: #f8fafc; border-color: #cbd5e1; }
.slm-btn-danger { background: var(--slm-danger); color: white !important; }
.slm-btn-danger:hover { background: #dc2626; }

/* Modal & Overlay */
.slm-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6);
    z-index: 9998; display: none; backdrop-filter: blur(4px);
}
.slm-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: white; padding: 0; border-radius: 20px; z-index: 9999;
    width: 95%; max-width: 900px; max-height: 90vh; overflow: hidden; display: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.slm-modal-header { padding: 20px 30px; border-bottom: 1px solid var(--slm-border); display: flex; justify-content: space-between; align-items: center; }
.slm-modal-body { padding: 30px; overflow-y: auto; max-height: calc(90vh - 140px); }
.slm-modal-footer { padding: 20px 30px; border-top: 1px solid var(--slm-border); display: flex; justify-content: flex-end; gap: 10px; background: #f8fafc; }

/* User Management Grid */
.user-mgmt-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; }
@media (max-width: 768px) { .user-mgmt-grid { grid-template-columns: 1fr; } }

.user-mgmt-form { background: #f8fafc; padding: 25px; border-radius: 16px; border: 1px solid var(--slm-border); }
.user-mgmt-list { background: white; border-radius: 16px; border: 1px solid var(--slm-border); overflow: hidden; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; color: #475569; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 15px; border: 1px solid var(--slm-border); border-radius: 10px; box-sizing: border-box; font-size: 14px; transition: border-color 0.3s;
}
.form-group input:focus { border-color: var(--slm-primary); outline: none; box-shadow: 0 0 0 3px rgba(0,123,255,0.1); }

/* Filters Bar */
.slm-filters {
    display: flex; align-items: flex-end; gap: 20px; background: #f8fafc; padding: 20px; border-radius: 12px; margin-bottom: 25px; flex-wrap: wrap;
}
.slm-filters .form-group { margin-bottom: 0; flex: 1; min-width: 200px; }

/* Responsive Adjustments */
@media (max-width: 640px) {
    .slm-header { flex-direction: column; text-align: center; }
    .slm-header-actions { width: 100%; justify-content: center; }
    .stat-card { padding: 15px; }
    .stat-card .stat-value { font-size: 24px; }
}
