/* Design tokens (colors, radii, shadows) - merged from dashboard_style.css */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

/* Global box-sizing to avoid form control overflow */
*, *::before, *::after {
    box-sizing: border-box;
}



/* Local fallback for the Arabic "Zain" font. Place Zain-Regular.woff2/woff in the project's /fonts folder. */
@font-face {
    font-family: 'Zain';
    src: local('Zain'), url('/fonts/Zain-Regular.woff2') format('woff2'), url('/fonts/Zain-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Arabic-specific font rule: when the document or element language is Arabic, prefer Zain */
html[lang="ar"], :lang(ar), body[dir="rtl"] {
    font-family: 'Zain', 'Noto Naskh Arabic', Tahoma, 'Segoe UI', sans-serif;
}
/* Strong fallback: ensure Ubuntu is applied when CSS loads; use !important to override accidental inline or other rules */
html, body {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
:root{
    --primary-color:#0d5294; --primary-dark:#06447e; --secondary-color:#cd0100; --accent-color:#e91e63;
    --success-color:#4caf50; --warning-color:#ff9800; --danger-color:#e74c3c;
    --info-color:#2196f3; --light-bg:#f5f7fa; --surface:#f8f9fa; --white:#ffffff;
    --text-primary:#333333; --text-secondary:#666666; --text-light:#999999;
    --border-color:#e1e5e9; --shadow-sm:0 2px 4px rgba(0,0,0,0.1);
    --shadow-md:0 4px 6px rgba(0,0,0,0.1); --shadow-lg:0 10px 20px rgba(0,0,0,0.15);
    --radius-sm:8px; --radius-md:12px; --radius-lg:16px; --transition:all .3s ease;
    /* scheduled card accent */
    --scheduled-gradient: linear-gradient(135deg,#fff9f0,#fff2e6);
    --scheduled-accent: #f6ad55;
    /* status colors */
    --status-pending-bg: #fff3cd; --status-pending-text: #856404;
    --status-assigned-bg: #d1ecf1; --status-assigned-text: #3d66b1;
    --status-inprogress-bg: #d1ecf1; --status-inprogress-text: #0c5460;
    --status-completed-bg: #d4edda; --status-completed-text: #155724;
}


body {
    /* Default (Latin) font: Ubuntu */
   /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);*/
   background-color: var(--primary-color);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 100px;
    justify-content: center;
   /* align-items: center;*/
    display: flex;
}
.dashboard-body{
   
    /* inherit so Arabic/LTR rules apply from html/lang */
     background:var(--light-bg);
    color:var(--text-primary);
    line-height:1.6; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
    overflow-x:hidden; min-height:100vh; padding:20px;


}
 .container { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 16px; }
 .login-container {
            background: var(--white);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            padding: 40px;
            width: 100%;
            max-width: 600px;
            animation: slideUp 0.5s ease;
        }
    @keyframes slideUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }
 .header {
    background: var(--white);;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
 .header h1 { color: var(--text-primary); font-size: 28px; margin-bottom: 5px; }
 .header p { color: var(--text-secondary); }
 .language {
    text-align: right;
 }
    
 .logo {
    text-align: center;
    margin-bottom: 30px;
}
 .logo h1 {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}
.logo p {
    color: var(--text-secondary);
    font-size: 14px;
}
 .alert-success {
    background: #d4edda;
    color: var(--success-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}
 .alert-error {
    background: #f8d7da;
    color: var(--danger-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}
 .form-card {
    background: var(--white);;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
 .form-group { margin-bottom: 20px; }
 .form-group label {
    display: block;
    margin-bottom: 8px;
     color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}
 .form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}
 .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08);
}
 textarea.form-control { resize: vertical; min-height: 100px; }
 .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
}

/* Ensure form controls don't overflow their container */
.form-control {
    box-sizing: border-box;
    max-width: 100%;
}

.card {
            background: var(--white);;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        }
.card h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.stat-card {
            background: var(--white);;
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        }
 .stat-item {
     background: var(--surface);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}
.stat-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.technician-list {
    display: grid;
    gap: 15px;
}
.tech-item {
    background: var(--surface);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    align-items: flex-start;
    justify-content: space-between;
}
.tech-info h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
    margin-top: 5px;
}
.tech-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 3px;
}
.tech-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
}
.btn-small {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.btn-edit {
    background: var(--primary-color);
    color: var(--white);
}
.btn-toggle {
    background: #28a745;
    color: var(--white);;
}
.btn-deactivate {
    background: #dc3545;
    color: var(--white);;
}
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}
.badge-active {
    background: var(--status-completed-bg);
    color: var(--status-completed-text);
}
.badge-inactive {
    background: var(--status-pending-bg);
    color: var(--status-pending-text);
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: baseline;
    justify-content: center;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin-top: 20px;
}
.chart-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
.chart-card h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
}
.request-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.request-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.request-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}
.request-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.status-pending { background: var(--status-pending-bg); color: var(--status-pending-text); }
.status-assigned { background: var(--status-assigned-bg); color: var(--status-assigned-text); }
.status-in_progress { background: var(--status-inprogress-bg); color: var(--status-inprogress-text); }
.status-completed { background: var(--status-completed-bg); color: var(--status-completed-text); }
.request-details {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 15px;
    font-weight: 600;
}
.back-btn:hover {
    color: #5568d3;
}
.task-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.task-title {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}
.detail-row {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
}
.detail-value {
    color: var(--text-primary);
    text-align: right;
}
.description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}
.btn-action {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-start {
    /*background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));*/
    background: var(--primary-color);
    color: var(--white);
}
.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(85, 104, 211, 0.28); /* softer primary-dark shadow */
}
.empty {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}
.progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}
.progress-fill {
    height: 100%;
    background:  var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: width 1s ease;
}
 .btn-submit {
    width: 100%;
    padding: 15px;
    /*background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));*/
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
 .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(85, 104, 211, 0.28);
}

.btn-login {
            width: 100%;
            padding: 15px;
           /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));*/
           background: var(--primary-color);
            color: var(--white);
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
 .required { color: #e74c3c; }
 .help-text { font-size: 12px; color: #666; margin-top: 5px; }
 .icon-label { display: flex; align-items: center; gap: 8px; }
 .error {
            background: #fee;
            border: 1px solid #f5c6cb;
            color: #721c24;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
        }
.demo-accounts {
    margin-top: 30px;
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
}
.demo-accounts h4 {
    margin-bottom: 15px;
    color: #333;
}
.demo-account {
    background: white;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}
.demo-account:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.setup-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #0d47a1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}
 nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}
 nav a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #666; padding: 5px; }
 nav a.active { color: var(--primary-color); }
 nav span { font-size: 11px; margin-top: 4px; }
@media (max-width: 768px) {
     .form-row { grid-template-columns: 1fr; }
}

.modal { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.5); display:flex; align-items:baseline; justify-content:center; z-index:1000; }
.modal-content { background:#fff; padding:20px; border-radius:8px; width:90%; max-width:600px; position:relative; }
.modal-close { position:absolute; right:12px; top:8px; font-size:22px; cursor:pointer; }
           
.stat-card-total{
    background:#000;
}
.stat-total{
    color:#fff;
}
button.btn-small.active {
    background-color: grey;
    color: #6a1ab3;
}
.filters-section{
    background-color: light-dark(rgba(239, 239, 239, 0.3), rgba(19, 1, 1, 0.3));
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Date range inputs inside filters */
.filters-section input[type="date"] {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    min-width: 160px;
    max-width: 240px;
    box-shadow: none;
}
.filters-section input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13,82,148,0.08);
}
.filters-section label span { color: var(--white); margin-right:6px; }
.tech-info-container{
    display: flex;
    flex-direction: row;
    gap: 20px;
}
    .rank {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
    align-self: center
}

.points {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    align-self: center;
}
 .empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}
 .btn-export {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
}
 .btn-export:hover {
    background: var(--primary-dark);
}
.export-dropdown {
    display:block;width:100%;text-align:left;padding:8px;border:0;cursor:pointer;
}
.export-dropdown:hover {
    background: #5568d3;
    color: white;
}
#exportDropdownMenu{
    background:#fff; border:1px solid #ddd; border-radius: 10px; box-shadow:0 6px 14px rgba(0,0,0,0.08); padding:6px; min-width:200px; z-index:1000;
}

/* header split layout (moved from inline) */
.header--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.header-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Dropdown base and alignment classes (moved from inline) */
.dropdown { position: relative; }
    .dropdown-menu { display: none; position: absolute; top: 100%; background: var(--white); border: 1px solid var(--border-color); box-shadow: 0 6px 14px rgba(0,0,0,0.08); padding: 6px; min-width: 200px; z-index: 1000; border-radius:10px; }
.dropdown-menu--right { right: 0; }
.dropdown-menu--left { left: 0; }

/* Responsive adjustments for smaller screens */
@media (max-width: 900px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header > div:last-child {
        display: flex;
        flex-direction: row;
        gap: 8px;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    /* Make header action buttons fit nicely when stacked */
    .header .btn-action {
        width: auto; /* allow inline sizing */
        min-width: 120px;
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Filters wrap nicely */
    .filters-section form { flex-wrap: wrap; }
    .filters-section label { flex: 0 0 48%; margin-bottom:8px; }

    .tech-item {
        flex-direction: column;
        align-items: stretch;
    }

    .tech-info-container { flex-direction: column; gap: 8px; }

    .request-header { flex-direction: column; align-items: flex-start; gap: 8px; }

    .request-card { padding: 16px; }
}

@media (max-width: 600px) {
    .container { padding: 12px; }
    .stat-number { font-size: 20px; }
    .request-title { font-size: 16px; }

    /* On very small screens, make dropdown menu full width */
    #exportDropdownMenu { position: static !important; width: 100% !important; box-shadow: none !important; border-radius: 8px; }
    .header > div:last-child { justify-content: space-between; }

    .filters-section label { flex: 0 0 100%; }
    .filters-section { padding: 12px; }
    .btn-small { padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 420px) {
    /* Simplify spacing on very small devices */
    .header h1 { font-size: 20px; }
    .header p { font-size: 13px; }
    .request-details { font-size: 13px; }
    .tech-info h4 { font-size: 16px; }
    .points { font-size: 18px; }
}

/* Dashboard styles (prefixed with `dashboard-` to avoid collisions) - merged from css/dashboard_style.css */

/* Layout */
.dashboard-container{max-width:1200px;margin:0 auto;padding:20px;padding-bottom:100px}

/* Header */
.dashboard-header{
    /*background:linear-gradient(135deg,var(--primary-color) 0%,var(--secondary-color) 100%);*/
    background:var(--primary-color);
    color:var(--white);padding:20px;border-radius:var(--radius-md);margin-bottom:20px;box-shadow:var(--shadow-md);display:flex;justify-content:space-between;align-items:center
}
.dashboard-header h1,.dashboard-header h2{font-size:1.5rem;font-weight:700;margin-bottom:5px}
.dashboard-header p,.dashboard-subtitle{font-size:.9rem;opacity:.9}
.dashboard-header-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}

.dashboard-user-info{text-align:right}
.dashboard-logout-btn,.dashboard-admin-link{display:inline-block;padding:8px 15px;border-radius:6px;font-size:12px;text-decoration:none;cursor:pointer}
.dashboard-logout-btn{background:var(--danger-color);color:var(--white);border:none}
.dashboard-admin-link{background:var(--primary-color);color:var(--white);margin-right:10px}

.dashboard-profile-pic{width:50px;height:50px;border-radius:50%;overflow:hidden;cursor:pointer;border:3px solid rgba(255,255,255,.3);transition:var(--transition);flex-shrink:0}
.dashboard-profile-pic:hover{transform:scale(1.05);border-color:#fff}
.dashboard-profile-pic img{width:100%;height:100%;object-fit:cover}
.dashboard-profile-placeholder{width:100%;height:100%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:1.2rem;font-weight:600}

/* Sections */
.dashboard-section{background:var(--white);padding:20px;border-radius:var(--radius-md);margin-bottom:20px;box-shadow:var(--shadow-sm)}
.dashboard-section h3{font-size:1.1rem;margin-bottom:15px;color:var(--text-primary);font-weight:600}
.dashboard-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}
.dashboard-see-all{color:var(--primary-color);text-decoration:none;font-size:.9rem;font-weight:500;transition:var(--transition)}
.dashboard-see-all:hover{color:var(--secondary-color)}
.dashboard-task-count{color:var(--text-secondary);font-size:.9rem}

/* Cards / stats */
.dashboard-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:30px}
.dashboard-stat-card{background:var(--white);padding:25px 20px;border-radius:var(--radius-md);box-shadow:var(--shadow-sm);text-align:center;transition:var(--transition)}
.dashboard-stat-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.dashboard-stat-number{font-size:2.5rem;font-weight:700;color:var(--primary-color);margin-bottom:8px;line-height:1}
.dashboard-stat-label{color:var(--text-secondary);font-size:.9rem;font-weight:500}

.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
.dashboard-card{background:var(--white);padding:20px;border-radius:var(--radius-md);box-shadow:var(--shadow-sm)}
.dashboard-card h3{margin-bottom:20px;color:var(--text-primary);border-bottom:2px solid var(--light-bg);padding-bottom:12px;font-size:1.1rem}

.dashboard-user-list{max-height:400px;overflow-y:auto}
.dashboard-user-item{background:var(--surface);padding:15px;margin-bottom:10px;border-radius:8px;border-left:4px solid var(--primary-color)}
.dashboard-activity-item{padding:12px 0;border-bottom:1px solid var(--light-bg)}
.dashboard-activity-item:last-child{border-bottom:none}
.dashboard-activity-item strong{color:var(--text-primary)}
.dashboard-empty{text-align:center;color:var(--text-secondary);padding:20px}
.dashboard-empty-state{text-align:center;padding:40px 20px;color:var(--text-secondary)}
.dashboard-empty-state p{font-weight:600;margin-bottom:5px;color:var(--text-primary)}

.dashboard-welcome-card{
    /*background:linear-gradient(135deg,var(--primary-color) 0%,var(--secondary-color) 100%);  */
    background:var(--primary-color);
    color:var(--white);border-radius:15px;padding:30px;margin-bottom:25px;box-shadow:var(--shadow-md)}
.dashboard-welcome-card h2{font-size:24px;margin-bottom:10px}.dashboard-welcome-card p{opacity:.9}

/* Tasks / status */
.dashboard-task-card{background:var(--white);padding:15px;border-radius:var(--radius-md);display:flex;align-items:center;gap:15px;margin-bottom:15px;box-shadow:var(--shadow-sm);transition:var(--transition);border-left:4px solid var(--primary-color)}
.dashboard-task-card:hover{box-shadow:var(--shadow-md);transform:translateX(5px)}
.dashboard-task-card:last-child{margin-bottom:0}
.dashboard-task-icon{width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.dashboard-task-content{flex:1;min-width:0}
.dashboard-task-content h4{font-size:1rem;margin-bottom:5px;color:var(--text-primary)}
.dashboard-task-content p{font-size:.85rem;color:var(--text-secondary);margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-task-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.dashboard-task-meta small{color:var(--text-light);font-size:.75rem}
.dashboard-status-badge{padding:4px 10px;border-radius:12px;font-size:.7rem;font-weight:600;text-transform:uppercase}
.dashboard-status-pending{background:var(--status-pending-bg);color:var(--status-pending-text)}
.dashboard-status-in_progress{background:var(--status-inprogress-bg);color:var(--status-inprogress-text)}
.dashboard-status-completed{background:var(--status-completed-bg);color:var(--status-completed-text)}
.dashboard-status-cancelled{background:var(--status-pending-bg);color:var(--status-pending-text)}
.dashboard-btn-start{background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:var(--white);border:none;padding:10px 20px;border-radius:20px;font-weight:600;cursor:pointer;transition:var(--transition);white-space:nowrap}
.dashboard-btn-start:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}

/* Repairs / leaderboard */
.dashboard-repairs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:15px}
.dashboard-repair-card{background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:var(--white);padding:20px;border-radius:var(--radius-md);text-align:center;cursor:pointer;transition:var(--transition);box-shadow:var(--shadow-sm)}
.dashboard-repair-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}
.dashboard-leaderboard{display:flex;flex-direction:column;gap:10px}.dashboard-leaderboard-item{display:flex;align-items:center;padding:15px;background:var(--light-bg);border-radius:var(--radius-md);transition:var(--transition)}
.dashboard-leaderboard-item:hover{background:#e8ecf1;transform:translateX(5px)}.dashboard-leaderboard-item.current-user{background:linear-gradient(135deg,rgba(102,126,234,.1),rgba(118,75,162,.1));border:2px solid var(--primary-color)}
.dashboard-rank{font-size:1.2rem;font-weight:700;color:var(--primary-color);margin-right:15px;min-width:40px}.dashboard-member-info{flex:1;display:flex;flex-direction:column}.dashboard-member-info .name{font-weight:600;color:var(--text-primary);margin-bottom:2px}.dashboard-member-info .role{font-size:.75rem;color:var(--text-secondary);text-transform:uppercase}.dashboard-points{font-weight:700;color:var(--primary-color);font-size:1rem}

.dashboard-priority-high{border-left:4px solid var(--danger-color);padding-left:12px}.dashboard-priority-medium{border-left:4px solid var(--warning-color);padding-left:12px}.dashboard-priority-low{border-left:4px solid var(--success-color);padding-left:12px}

/* Dashboard bottom nav */
.dashboard-bottom-nav{position:fixed;bottom:0;left:0;right:0;background:var(--white);display:flex;justify-content:space-around;padding:10px 0;box-shadow:0 -2px 10px rgba(0,0,0,.1);z-index:1000}
.dashboard-nav-item{display:flex;flex-direction:column;align-items:center;text-decoration:none;color:var(--text-secondary);padding:5px 15px;transition:var(--transition);flex:1}
.dashboard-nav-item:hover{color:var(--primary-color)}.dashboard-nav-item.active{color:var(--primary-color)}.dashboard-nav-item svg{margin-bottom:4px}.dashboard-nav-item span{font-size:.7rem;font-weight:500}

@media (max-width:768px){
    .dashboard-container{padding:15px;padding-bottom:90px}
    .dashboard-header{padding:15px}
    .dashboard-header h2{font-size:1.25rem}
    .dashboard-subtitle{font-size:.8rem}
    .dashboard-profile-pic{width:45px;height:45px}
    .dashboard-stat-number{font-size:2rem}
    .dashboard-grid{grid-template-columns:1fr;gap:15px}
    .dashboard-issues-row{grid-template-columns:repeat(2,1fr);gap:8px}
    .dashboard-issue-badge,.dashboard-notification-badge{padding:12px 8px}
    .dashboard-issue-badge svg,.dashboard-notification-badge svg{width:30px;height:30px}
    .dashboard-alert-card{flex-wrap:wrap;padding:15px}.dashboard-alert-icon{width:45px;height:45px}.dashboard-btn-view-alert{width:100%;margin-top:10px}
    .dashboard-task-card{flex-wrap:wrap;padding:12px}.dashboard-btn-start{width:100%;margin-top:10px}
    .dashboard-repairs-grid{grid-template-columns:repeat(2,1fr);gap:10px}.dashboard-repair-card{padding:15px}
    .dashboard-section{padding:15px}
}

@media (max-width:480px){
    .dashboard-header h2{font-size:1.1rem}
    .dashboard-subtitle{font-size:.75rem}
    .dashboard-profile-pic{width:40px;height:40px}
    .dashboard-stat-number{font-size:1.75rem}
    .dashboard-stat-label{font-size:.8rem}
    .dashboard-task-content h4{font-size:.9rem}
    .dashboard-task-content p{font-size:.8rem}
    .dashboard-leaderboard-item{padding:12px}
    .dashboard-rank{font-size:1rem;min-width:35px}
    .dashboard-member-info .name{font-size:0.9rem}
    .dashboard-points{font-size:0.9rem}
    .dashboard-nav-item{padding:5px 8px}.dashboard-nav-item span{font-size:.65rem}
}

@media (hover:none) and (pointer:coarse){
    .dashboard-task-card:active,.dashboard-repair-card:active,.dashboard-issue-badge:active,.dashboard-notification-badge:active,.dashboard-btn-start:active,.dashboard-btn-view-alert:active,.dashboard-nav-item:active{opacity:.7}
}

@media print{
    .dashboard-bottom-nav,.dashboard-btn-start,.dashboard-btn-view-alert{display:none!important}
    .dashboard-container{padding-bottom:0}
    .dashboard-header{background:var(--primary-color)!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
details{
    background: var(--white);
    border-radius: 15px;
}
summary{
    font-weight:700; 
    padding:15px; 
    cursor:pointer;
    font-size: 18px;
}
.app-header{
    
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Pagination controls used in dashboard service requests list */
.pagination-controls{display:flex;gap:8px;align-items:center;justify-content:flex-end;padding-top:12px}

/* Filters toggle styles */
.filters-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--border-color);
    background:var(--white);
    color:var(--text-primary);
    padding:6px;
    border-radius:8px;
    cursor:pointer;
    width:36px;
    height:36px;
}
.filters-toggle svg{transition:transform .25s ease;display:block}
.filters-section.collapsed form{display:none}
.filters-section.collapsed .filters-toggle svg{transform:rotate(-180deg)}

.pagination-btn{background:transparent;border:1px solid var(--border-color);padding:6px 10px;border-radius:8px;cursor:pointer;color:var(--text-primary);font-weight:600}
.pagination-btn[disabled]{opacity:0.5;cursor:not-allowed}
.pagination-btn.active, .pagination-btn:hover{background:var(--primary-color);color:var(--white);border-color:var(--primary-color)}
.pagination-btn:focus{outline:none;box-shadow:0 0 0 3px rgba(13,82,148,0.12)}

 .profile-pic { width:60px; height:60px; border-radius:50%; background:linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color:var(--white); display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:700; margin-right:20px; }
[dir="rtl"] .profile-pic { margin-right:0; margin-left:20px; }
.user-info { flex:1; }
.info-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px; margin-bottom:30px; }
.info-item { background:var(--surface); padding:20px; border-radius:10px; border-left:4px solid var(--primary-color); }
[dir="rtl"] .info-item { border-left:none; border-right:4px solid var(--primary-color); }
.info-label { font-weight:600; color:#333; margin-bottom:8px; text-transform:uppercase; font-size:12px; letter-spacing:0.5px; }
.info-value { color:#666; font-size:16px; }