﻿/* css/style.css */
/* إعادة تعيين عام */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    direction: rtl;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* الشريط الجانبي */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2c3e50, #1a252f);
    color: white;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .logo i {
        font-size: 28px;
        margin-left: 10px;
        color: #3498db;
    }

    .logo h2 {
        font-size: 18px;
    }

.nav-menu {
    flex: 1;
    padding: 30px 0;
}

    .nav-menu ul {
        list-style: none;
    }

    .nav-menu li {
        margin-bottom: 5px;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #bdc3c7;
        text-decoration: none;
        transition: all 0.3s;
        border-right: 3px solid transparent;
    }

        .nav-menu a:hover {
            background: rgba(255, 255, 255, 0.05);
            color: white;
            border-right: 3px solid #3498db;
        }

    .nav-menu li.active a {
        background: rgba(52, 152, 219, 0.1);
        color: white;
        border-right: 3px solid #3498db;
    }

    .nav-menu i {
        margin-left: 10px;
        font-size: 18px;
    }

.user-info {
    display: flex;
    align-items: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.user-details h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.user-details p {
    font-size: 12px;
    color: #95a5a6;
}

/* المحتوى الرئيسي */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

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

.header-left h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.header-left p {
    color: #7f8c8d;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

    .search-box input {
        padding: 10px 40px 10px 15px;
        border: 1px solid #ddd;
        border-radius: 25px;
        width: 250px;
        font-size: 14px;
    }

    .search-box i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #95a5a6;
    }

.notifications {
    position: relative;
    font-size: 20px;
    color: #7f8c8d;
    cursor: pointer;
}

.badge {
    position: relative;
    top: -5px;
    left: -5px;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* بطاقات الإحصائيات */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 20px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 24px;
    color: white;
}

    .card-icon.green {
        background: #2ecc71;
    }

    .card-icon.red {
        background: #e74c3c;
    }

    .card-icon.blue {
        background: #3498db;
    }

    .card-icon.orange {
        background: #f39c12;
    }

.card-content h3 {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

/* قسم التفاصيل */
.main-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .section-header h2 {
        color: #2c3e50;
    }

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .btn i {
        margin-left: 5px;
    }

.btn-primary {
    background: #3498db;
    color: white;
}

    .btn-primary:hover {
        background: #2980b9;
    }

.btn-secondary {
    background: #95a5a6;
    color: white;
}

    .btn-secondary:hover {
        background: #7f8c8d;
    }

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* شبكة عرض المصاعد */
.elevators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.elevator-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #3498db;
}

    .elevator-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

.elevator-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e6ed;
}

.elevator-status {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 15px;
}

    .elevator-status i {
        font-size: 8px;
        margin-left: 5px;
    }

.status-online {
    background: #d5f4e6;
    color: #27ae60;
}

.status-offline {
    background: #fadbd8;
    color: #e74c3c;
}

.status-malfunction {
    background: #fdebd0;
    color: #f39c12;
}

.status-warning {
    background: #e8f4fc;
    color: #3498db;
}

.elevator-card-body {
    padding: 20px;
    text-align: center;
}

.elevator-icon {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 15px;
}

.elevator-name {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.elevator-address {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.elevator-details {
    text-align: right;
    margin-top: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

    .detail-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.detail-label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 12px;
}

.detail-value {
    color: #2c3e50;
    font-size: 12px;
}

.text-success {
    color: #27ae60;
}

.text-danger {
    color: #e74c3c;
}

.text-warning {
    color: #f39c12;
}

.elevator-card-footer {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e0e6ed;
}

/* الأنماط العامة للتفاصيل */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.card-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e6ed;
}

    .card-header h3 {
        display: flex;
        align-items: center;
        font-size: 16px;
        color: #2c3e50;
    }

    .card-header i {
        margin-left: 10px;
        color: #3498db;
    }

.card-body {
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

    .info-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.label {
    font-weight: 600;
    color: #7f8c8d;
}

.value {
    color: #2c3e50;
    text-align: left;
    max-width: 200px;
    word-break: break-word;
}

.status-indicator {
    margin-bottom: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    position: absolute;
}

    .status-badge.active {
        background: #d5f4e6;
        color: #27ae60;
    }

    .status-badge.inactive {
        background: #fadbd8;
        color: #e74c3c;
    }

    .status-badge.warning {
        background: #fdebd0;
        color: #f39c12;
    }

    .status-badge i {
        margin-left: 5px;
    }

/* الأجهزة */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.device-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #3498db;
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.device-name {
    font-weight: 600;
    color: #2c3e50;
}

.device-status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
}

    .device-status.on {
        background: #d5f4e6;
        color: #27ae60;
    }

    .device-status.off {
        background: #fadbd8;
        color: #e74c3c;
    }

.device-info {
    font-size: 12px;
    color: #7f8c8d;
}

    .device-info div {
        margin-bottom: 5px;
    }

.no-devices {
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    padding: 20px;
}

/* أزرار الإجراءات */
.action-btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-info {
    background: #3498db;
    color: white;
}

.btn-warning:hover {
    background: #d68910;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-info:hover {
    background: #2980b9;
}

/* الرسم البياني */
.chart-section {
    margin-top: 30px;
}

    .chart-section .card-body {
        height: 300px;
        padding: 20px;
    }

/* الإشعارات */
.notification {
    position: fixed;
    top: 20px;
    left: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    border-right: 4px solid #3498db;
}

    .notification.success {
        border-right-color: #2ecc71;
    }

    .notification.info {
        border-right-color: #3498db;
    }

    .notification.warning {
        border-right-color: #f39c12;
    }

    .notification.error {
        border-right-color: #e74c3c;
    }

    .notification i {
        margin-left: 10px;
        font-size: 20px;
    }

    .notification.success i {
        color: #2ecc71;
    }

    .notification.info i {
        color: #3498db;
    }

    .notification.warning i {
        color: #f39c12;
    }

    .notification.error i {
        color: #e74c3c;
    }

    .notification span {
        flex: 1;
        margin: 0 15px;
    }

.close-notification {
    background: none;
    border: none;
    cursor: pointer;
    color: #95a5a6;
    font-size: 16px;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotating i {
    animation: rotate 1s linear infinite;
}

/* التجاوب */
@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
    }

    .logo h2, .nav-menu a span, .user-details {
        display: none;
    }

    .logo {
        justify-content: center;
        padding: 0 0 20px;
    }

        .logo i {
            margin-left: 0;
        }

    .nav-menu a {
        justify-content: center;
        padding: 15px;
    }

    .nav-menu i {
        margin-left: 0;
        font-size: 20px;
    }

    .user-info {
        justify-content: center;
        padding: 15px 0;
    }

    .user-avatar {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        padding: 10px;
    }

    .logo {
        padding: 0 15px 0 0;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu {
        padding: 0;
        flex: 1;
    }

        .nav-menu ul {
            display: flex;
            justify-content: space-around;
        }

        .nav-menu li {
            margin-bottom: 0;
        }

    .user-info {
        display: none;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }

    .search-box input {
        width: 100%;
    }

    .elevators-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
        width: 100%;
    }
}

/* أنماط إضافية */
.no-elevators, .no-results {
    text-align: center;
    padding: 50px 20px;
    grid-column: 1 / -1;
    color: #7f8c8d;
}

    .no-elevators i, .no-results i {
        font-size: 50px;
        color: #95a5a6;
        margin-bottom: 15px;
    }

/* أنماط التقارير */
.reports-header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.date-range-picker {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.report-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.report-card-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-card-body {
    padding: 20px;
    height: 300px;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #3498db;
}

    .stat-box.green {
        border-left-color: #2ecc71;
    }

    .stat-box.red {
        border-left-color: #e74c3c;
    }

    .stat-box.orange {
        border-left-color: #f39c12;
    }

    .stat-box.blue {
        border-left-color: #3498db;
    }

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

    .report-table th {
        background: #f8f9fa;
        padding: 12px 15px;
        text-align: right;
        font-weight: 600;
        color: #2c3e50;
        border-bottom: 2px solid #e0e6ed;
    }

    .report-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #e0e6ed;
        color: #2c3e50;
    }

    .report-table tr:hover {
        background: #f8f9fa;
    }

.status-active {
    background: #d5f4e6;
    color: #27ae60;
}

.status-inactive {
    background: #fadbd8;
    color: #e74c3c;
}

.status-maintenance {
    background: #fdebd0;
    color: #f39c12;
}

.export-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.report-summary {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid #3498db;
}

.summary-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.summary-label {
    color: #7f8c8d;
    font-size: 14px;
}

.chart-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.chart-type-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* أنماط النماذج */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #2c3e50;
    }

        .form-group label i {
            margin-left: 8px;
            color: #3498db;
        }

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    }

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* أنماط الإشعارات */
.notifications-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.notification-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

    .filter-btn.active {
        background: #3498db;
        color: white;
        border-color: #3498db;
    }

    .filter-btn:hover {
        background: #f8f9fa;
    }

.notification-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding: 20px;
    border-right: 4px solid #e74c3c;
    transition: all 0.3s;
    position: relative;
}

    .notification-item.read {
        border-right-color: #95a5a6;
        background: #f8f9fa;
        opacity: 0.8;
    }

    .notification-item.unread {
        border-right-color: #e74c3c;
        background: #fff;
    }

    .notification-item.resolved {
        border-right-color: #2ecc71;
    }

    .notification-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.notification-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 12px;
    color: #7f8c8d;
}

.notification-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.notification-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 14px;
}

.detail-value {
    color: #2c3e50;
    font-size: 14px;
}

.notification-actions-btns {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.notification-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.badge-critical {
    background: #e74c3c;
    color: white;
}

.badge-warning {
    background: #f39c12;
    color: white;
}

.badge-info {
    background: #3498db;
    color: white;
}

.badge-resolved {
    background: #2ecc71;
    color: white;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}

.status-unread {
    background: #e74c3c;
}

.status-read {
    background: #95a5a6;
}

.status-resolved {
    background: #2ecc71;
}

.no-notifications {
    text-align: center;
    padding: 50px 20px;
    color: #7f8c8d;
}

    .no-notifications i {
        font-size: 60px;
        margin-bottom: 20px;
        color: #bdc3c7;
    }

.notification-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #e74c3c;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.mark-all-read-btn {
    margin-left: auto;
}

.notification-priority {
    display: flex;
    align-items: center;
    gap: 5px;
}

.priority-icon {
    font-size: 16px;
}

.priority-high {
    color: #e74c3c;
}

.priority-medium {
    color: #f39c12;
}

.priority-low {
    color: #3498db;
}

.priority-critical {
    color: #c0392b;
}

/* أنماط النماذج */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #2c3e50;
    }

        .form-group label i {
            margin-left: 8px;
            color: #3498db;
        }

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    }

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* أنماط القائمة المنسدلة */
.priority-dropdown {
    position: relative;
    display: inline-block;
}

.priority-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 2px solid #8B4513;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
    z-index: 1000;
    min-width: 160px;
    margin-top: 5px;
    padding: 5px 0;
}

    .priority-menu.show {
        display: block;
        animation: fadeIn 0.2s ease-in-out;
    }

.priority-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: none;
    text-align: right;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

    .priority-option:last-child {
        border-bottom: none;
    }

    .priority-option:hover {
        background-color: #F5DEB3;
        color: #8B4513;
    }

    .priority-option i {
        margin-left: 10px;
        font-size: 14px;
    }

.priority-toggle {
    background: #8B4513 !important;
    border-color: #8B4513 !important;
    color: white !important;
}

    .priority-toggle:hover {
        background: #A0522D !important;
        border-color: #A0522D !important;
    }

.priority-option[data-priority="low"] {
    background-color: rgba(173, 216, 230, 0.1);
}

.priority-option[data-priority="medium"] {
    background-color: rgba(255, 228, 196, 0.1);
}

.priority-option[data-priority="high"] {
    background-color: rgba(255, 182, 193, 0.1);
}

.priority-option[data-priority="critical"] {
    background-color: rgba(220, 20, 60, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.priority-option[data-priority="low"] i {
    color: #3498db;
}

.priority-option[data-priority="medium"] i {
    color: #f39c12;
}

.priority-option[data-priority="high"] i {
    color: #e74c3c;
}

.priority-option[data-priority="critical"] i {
    color: #c0392b;
}

/* أنماط الإشعارات العائمة */
.notification-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInDown 0.3s ease;
}

    .notification-alert.success {
        background: #2ecc71;
    }

    .notification-alert.error {
        background: #e74c3c;
    }

    .notification-alert.info {
        background: #3498db;
    }

    .notification-alert.warning {
        background: #f39c12;
    }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

@media (max-width: 768px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }

    .reports-header {
        padding: 20px;
    }

    .date-range-picker {
        flex-direction: column;
        align-items: stretch;
    }

    .notification-content {
        grid-template-columns: 1fr;
    }

    .notification-actions {
        flex-direction: column;
    }

    .notification-header {
        flex-direction: column;
        gap: 10px;
    }

    .notification-actions-btns {
        flex-direction: column;
    }

        .notification-actions-btns .btn {
            width: 100%;
            justify-content: center;
        }

    .priority-dropdown {
        width: 100%;
    }

    .priority-menu {
        width: 100%;
        left: 0;
        right: auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* أنماط التقارير - إضافية */

/* نافذة التحميل */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: white;
    font-size: 20px;
    flex-direction: column;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* التبويبات */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

    .tab-btn.active {
        color: #3498db;
        border-bottom-color: #3498db;
        font-weight: 600;
    }

    .tab-btn:hover:not(.active) {
        color: #3498db;
        background: #f8f9fa;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* المخططات الصغيرة */
.mini-chart {
    height: 150px;
    margin: 15px 0;
}

/* النوافذ المنبثقة */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.modal {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h3 {
        margin: 0;
        font-size: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s;
}

    .close-modal:hover {
        transform: rotate(90deg);
    }

.modal-body {
    padding: 25px;
}

.modal-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

    .modal-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .modal-section h4 {
        color: #3498db;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

/* تفاصيل الشبكة في النوافذ المنبثقة */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #3498db;
}

.detail-label {
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.detail-chart {
    height: 200px;
    margin-top: 15px;
}

/* الجداول داخل النوافذ */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

    .history-table th {
        background: #f8f9fa;
        padding: 10px;
        text-align: right;
        font-weight: 600;
        color: #2c3e50;
        border-bottom: 2px solid #e0e6ed;
    }

    .history-table td {
        padding: 10px;
        border-bottom: 1px solid #e0e6ed;
        color: #2c3e50;
    }

/* أزرار النوافذ */
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* إشعارات التقارير */
.notification-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInDown 0.3s ease;
    max-width: 400px;
    text-align: center;
}

    .notification-popup.success {
        background: #2ecc71;
    }

    .notification-popup.error {
        background: #e74c3c;
    }

    .notification-popup.info {
        background: #3498db;
    }

    .notification-popup.warning {
        background: #f39c12;
    }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* تحسينات للطباعة */
@media print {
    .sidebar, .export-buttons, .chart-controls, .filter-controls,
    button, .modal-overlay, .notification-popup {
        display: none !important;
    }

    .container {
        display: block !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 20px !important;
        width: 100% !important;
    }

    .report-card {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .report-card-body {
        height: 250px !important;
    }

    h1, h2, h3 {
        color: #000 !important;
    }

    .reports-header {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #ddd !important;
    }

    .date-input {
        background: white !important;
        color: #000 !important;
        border: 1px solid #ccc !important;
    }

    body {
        font-size: 12pt !important;
        line-height: 1.5 !important;
    }

    .table-container {
        overflow: visible !important;
    }
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }

        .tabs .tab-btn {
            text-align: right;
            border-bottom: 1px solid #ddd;
            border-left: 3px solid transparent;
        }

            .tabs .tab-btn.active {
                border-left-color: #3498db;
                border-bottom-color: #ddd;
            }

    .modal {
        width: 95%;
        max-height: 80vh;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================ */
/* أنماط الإشعارات المنبثقة للتقارير */
/* ============================================ */

.reports-popup-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    border-right: 5px solid #3498db;
    overflow: hidden;
}

    .reports-popup-notification.success {
        border-right-color: #2ecc71;
        background: linear-gradient(to right, #f8fff9, white);
    }

    .reports-popup-notification.error {
        border-right-color: #e74c3c;
        background: linear-gradient(to right, #fff5f5, white);
    }

    .reports-popup-notification.warning {
        border-right-color: #f39c12;
        background: linear-gradient(to right, #fff9f0, white);
    }

    .reports-popup-notification.info {
        border-right-color: #3498db;
        background: linear-gradient(to right, #f0f8ff, white);
    }

.reports-popup-notification-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .reports-popup-notification-header h4 {
        margin: 0;
        color: #2c3e50;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .reports-popup-notification-header h4 i {
            font-size: 18px;
        }

.reports-popup-notification-body {
    padding: 20px;
    color: #2c3e50;
    line-height: 1.6;
}

.reports-popup-notification-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.reports-popup-close {
    background: none;
    border: none;
    color: #95a5a6;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .reports-popup-close:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #e74c3c;
    }

.reports-popup-btn {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.reports-popup-btn-primary {
    background: #3498db;
    color: white;
}

    .reports-popup-btn-primary:hover {
        background: #2980b9;
    }

.reports-popup-btn-secondary {
    background: #95a5a6;
    color: white;
}

    .reports-popup-btn-secondary:hover {
        background: #7f8c8d;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.reports-popup-hiding {
    animation: slideOutRight 0.3s ease forwards;
}

/* إشعارات التصدير الناجح */
.export-success-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #2ecc71;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInLeft 0.3s ease;
    max-width: 350px;
}

    .export-success-notification i {
        font-size: 20px;
    }

    .export-success-notification .export-details {
        flex: 1;
    }

        .export-success-notification .export-details strong {
            display: block;
            margin-bottom: 5px;
            font-size: 14px;
        }

        .export-success-notification .export-details small {
            font-size: 12px;
            opacity: 0.9;
        }

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* إشعار التحميل */
.reports-loading-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 25px 30px;
    border-radius: 12px;
    z-index: 9999;
    text-align: center;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.reports-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.reports-loading-notification p {
    margin: 0;
    font-size: 15px;
}

/* إشعار تأكيد الحذف */
.reports-confirm-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    min-width: 350px;
    overflow: hidden;
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.reports-confirm-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    text-align: center;
}

    .reports-confirm-header i {
        font-size: 40px;
        color: #e74c3c;
        margin-bottom: 10px;
    }

    .reports-confirm-header h4 {
        margin: 0;
        color: #2c3e50;
        font-size: 18px;
    }

.reports-confirm-body {
    padding: 25px 20px;
    text-align: center;
    color: #2c3e50;
    line-height: 1.6;
}

.reports-confirm-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* إشعار المعلومات السريعة */
.reports-quick-info {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #2c3e50;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 9997;
    animation: fadeIn 0.3s ease;
    max-width: 250px;
    border-left: 4px solid #3498db;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تأثير Hover على البطاقات */
.report-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* تلميحات الأدوات في التقارير */
.reports-tooltip {
    position: relative;
    display: inline-block;
}

    .reports-tooltip .tooltip-text {
        visibility: hidden;
        width: 200px;
        background-color: #2c3e50;
        color: white;
        text-align: center;
        border-radius: 6px;
        padding: 10px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s;
        font-size: 12px;
        line-height: 1.4;
    }

        .reports-tooltip .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #2c3e50 transparent transparent transparent;
        }

    .reports-tooltip:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

/* ============================================ */
/* أنماط نافذة التقرير المفصل */
/* ============================================ */

.detailed-report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.detailed-report-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

.detailed-report-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .detailed-report-header h3 {
        margin: 0;
        font-size: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.close-detailed-report {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .close-detailed-report:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }

.detailed-report-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    padding: 0 20px;
}

.detailed-report-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .detailed-report-tab.active {
        color: #3498db;
        border-bottom-color: #3498db;
        font-weight: 600;
        background: white;
    }

    .detailed-report-tab:hover:not(.active) {
        color: #3498db;
        background: rgba(52, 152, 219, 0.05);
    }

.detailed-report-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.detailed-report-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

    .detailed-report-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .detailed-report-section h4 {
        color: #3498db;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 16px;
    }

.detailed-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detailed-report-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #3498db;
}

    .detailed-report-item.performance {
        border-right-color: #2ecc71;
    }

    .detailed-report-item.maintenance {
        border-right-color: #f39c12;
    }

    .detailed-report-item.alert {
        border-right-color: #e74c3c;
    }

.detailed-report-label {
    color: #7f8c8d;
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: 600;
}

.detailed-report-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.detailed-report-subvalue {
    font-size: 12px;
    color: #95a5a6;
}

/* المخططات المصغرة */
.mini-charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.mini-chart-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e0e6ed;
}

.mini-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mini-chart-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-chart-canvas {
    height: 120px;
    width: 100%;
}

/* مؤشرات الأداء */
.performance-indicators {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.performance-indicator {
    flex: 1;
    min-width: 150px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e0e6ed;
}

.indicator-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.indicator-value {
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0;
}

.indicator-label {
    color: #7f8c8d;
    font-size: 12px;
}

/* التوصيات */
.recommendations-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e6ed;
}

    .recommendation-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.recommendation-icon {
    color: #3498db;
    font-size: 16px;
    margin-left: 10px;
    margin-top: 2px;
}

.recommendation-text {
    flex: 1;
    color: #2c3e50;
    line-height: 1.5;
}

.recommendation-priority {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 5px;
}

.priority-high {
    background: #fadbd8;
    color: #c0392b;
}

.priority-medium {
    background: #fdebd0;
    color: #f39c12;
}

.priority-low {
    background: #d5f4e6;
    color: #27ae60;
}

/* أزرار التقرير */
.detailed-report-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* تقييم المصعد */
.elevator-rating {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin: 10px 0;
}

.rating-excellent {
    background: #d5f4e6;
    color: #27ae60;
}

.rating-good {
    background: #e8f8f5;
    color: #1abc9c;
}

.rating-average {
    background: #fef9e7;
    color: #f39c12;
}

.rating-poor {
    background: #fdebd0;
    color: #e67e22;
}

.rating-bad {
    background: #fadbd8;
    color: #e74c3c;
}

/* الجدول داخل النافذة */
.detailed-report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 13px;
}

    .detailed-report-table th {
        background: #f8f9fa;
        padding: 10px;
        text-align: right;
        font-weight: 600;
        color: #2c3e50;
        border-bottom: 2px solid #e0e6ed;
    }

    .detailed-report-table td {
        padding: 10px;
        border-bottom: 1px solid #e0e6ed;
        color: #2c3e50;
    }

/* أنماط الاستجابة */
@media (max-width: 768px) {
    .detailed-report-content {
        width: 95%;
        max-height: 90vh;
    }

    .detailed-report-tabs {
        flex-direction: column;
        padding: 0;
    }

    .detailed-report-tab {
        text-align: right;
        border-bottom: 1px solid #ddd;
        border-left: 3px solid transparent;
    }

        .detailed-report-tab.active {
            border-left-color: #3498db;
            border-bottom-color: #ddd;
        }

    .detailed-report-grid {
        grid-template-columns: 1fr;
    }

    .mini-charts-container {
        grid-template-columns: 1fr;
    }

    .performance-indicators {
        flex-direction: column;
    }

    .performance-indicator {
        min-width: 100%;
    }

    .detailed-report-actions {
        flex-direction: column;
    }

        .detailed-report-actions .btn {
            width: 100%;
        }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين أزرار الجدول */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}

    .action-buttons .btn {
        padding: 6px 12px;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }
    /* تخصيص قسم قائمة المصاعد للسكرول الرأسي */
.elevators-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 أعمدة في كل صف */
    grid-template-rows: repeat(2, auto); /* صفين أوليين مرئيين */
    gap: 20px;
    max-height: 500px; /* ارتفاع ثابت لعرض صفين فقط */
    overflow-y: auto; /* السكرول الرأسي */
    padding-right: 5px; /* مسافة للشريط */
    direction: rtl; /* الاتجاه من اليمين */
}

/* عند وجود أكثر من صفين، يتم إضافة البطاقات تلقائيًا */
.elevators-grid > * {
    min-height: 180px; /* ارتفاع كل بطاقة */
}

/* تخصيص شريط السكرول */
.elevators-grid::-webkit-scrollbar {
    width: 8px;
}

.elevators-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.elevators-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.elevators-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* لتجنب تقطيع البطاقات عند السكرول */
.elevator-card {
    break-inside: avoid;
}
.elevators-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-height: 400px; /* ارتفاع لعرض صفين */
    overflow-y: auto;
    direction: rtl;
}

.elevator-card {
    flex: 1 0 calc(25% - 15px); /* 4 بطاقات في كل صف */
    min-width: 250px;
    max-width: calc(25% - 15px);
    min-height: 180px;
}
.elevators-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    direction: ltr;
}

.elevators-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    direction: rtl;
}

.elevator-card {
    flex: 1 0 calc(25% - 11.25px); /* 4 بطاقات في الصف */
    min-height: 180px;
    max-width: calc(25% - 11.25px);
    direction: rtl;
    text-align: right;
}
/* ============================================ */
/* أنماط التمرير للجداول والقوائم */
/* ============================================ */

/* تنسيق الجدول مع تمرير */
.scrollable-table-container {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    background: white;
    position: relative;
}

.scrollable-table {
    width: 100%;
    border-collapse: collapse;
}

    .scrollable-table thead {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #f8f9fa;
        box-shadow: 0 2px 2px -1px rgba(0,0,0,0.1);
    }

    .scrollable-table th {
        padding: 15px;
        text-align: right;
        font-weight: 600;
        color: #2c3e50;
        border-bottom: 2px solid #e0e6ed;
        white-space: nowrap;
        font-size: 14px;
    }

    .scrollable-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #e0e6ed;
        color: #2c3e50;
        font-size: 13px;
    }

    .scrollable-table tbody tr:hover {
        background: #f8f9fa;
    }

/* تنسيق قائمة الإشعارات مع تمرير */
.scrollable-notifications-container {
    max-height: 600px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    background: white;
    padding: 0;
}

.notifications-list {
    padding: 0;
    margin: 0;
}

.notifications-list-item {
    padding: 20px;
    border-bottom: 1px solid #e0e6ed;
    transition: all 0.3s;
}

    .notifications-list-item:last-child {
        border-bottom: none;
    }

    .notifications-list-item:hover {
        background: #f8f9fa;
    }

/* تخصيص شريط التمرير */
.scrollable-table-container::-webkit-scrollbar,
.scrollable-notifications-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.scrollable-table-container::-webkit-scrollbar-track,
.scrollable-notifications-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scrollable-table-container::-webkit-scrollbar-thumb,
.scrollable-notifications-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

    .scrollable-table-container::-webkit-scrollbar-thumb:hover,
    .scrollable-notifications-container::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }

/* تحسين عرض الأعمدة في الجدول */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}

    .action-buttons .btn {
        padding: 6px 12px;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

/* مؤشر التمرير */
.scroll-indicator {
    position: absolute;
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    background: rgba(52, 152, 219, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    display: none;
    animation: fadeInOut 2s ease;
    z-index: 100;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* حالة عدم وجود بيانات */
.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-style: italic;
}

    .no-data-message i {
        font-size: 50px;
        margin-bottom: 15px;
        color: #bdc3c7;
    }

/* تنسيق للهواتف */
@media (max-width: 768px) {
    .scrollable-table-container {
        max-height: 400px;
    }

    .scrollable-table th,
    .scrollable-table td {
        padding: 10px;
        font-size: 12px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 3px;
    }

    .scrollable-notifications-container {
        max-height: 500px;
    }

    .notifications-list-item {
        padding: 15px;
    }
}
/* تحسينات إضافية للجدول */
.status-badge-table {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #d5f4e6;
    color: #27ae60;
}

.status-maintenance {
    background: #fdebd0;
    color: #f39c12;
}

.status-inactive {
    background: #fadbd8;
    color: #e74c3c;
}

/* تناوب ألوان الصفوف */
.scrollable-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

    .scrollable-table tbody tr:nth-child(even):hover {
        background-color: #f0f7ff;
    }

/* رؤوس الأعمدة الثابتة */
.scrollable-table thead th {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-top: none;
    font-weight: 700;
}

/* تحسين عرض الأعمدة */
.scrollable-table th:nth-child(1),
.scrollable-table td:nth-child(1) {
    min-width: 150px;
}

.scrollable-table th:nth-child(2),
.scrollable-table td:nth-child(2) {
    min-width: 120px;
}

.scrollable-table th:nth-child(8),
.scrollable-table td:nth-child(8) {
    min-width: 200px;
}
/* ============================================ */
/* أنماط التمرير للجداول والقوائم */
/* ============================================ */

/* تنسيق الجدول مع تمرير */
.scrollable-table-container {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    background: white;
    position: relative;
}

.scrollable-table {
    width: 100%;
    border-collapse: collapse;
}

    .scrollable-table thead {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #f8f9fa;
        box-shadow: 0 2px 2px -1px rgba(0,0,0,0.1);
    }

    .scrollable-table th {
        padding: 15px;
        text-align: right;
        font-weight: 600;
        color: #2c3e50;
        border-bottom: 2px solid #e0e6ed;
        white-space: nowrap;
        font-size: 14px;
    }

    .scrollable-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #e0e6ed;
        color: #2c3e50;
        font-size: 13px;
    }

    .scrollable-table tbody tr:hover {
        background: #f8f9fa;
    }

/* تنسيق قائمة الإشعارات مع تمرير */
.scrollable-notifications-container {
    max-height: 600px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    background: white;
    padding: 0;
}

.notifications-list {
    padding: 0;
    margin: 0;
}

.notifications-list-item {
    padding: 20px;
    border-bottom: 1px solid #e0e6ed;
    transition: all 0.3s;
}

    .notifications-list-item:last-child {
        border-bottom: none;
    }

    .notifications-list-item:hover {
        background: #f8f9fa;
    }

/* تخصيص شريط التمرير */
.scrollable-table-container::-webkit-scrollbar,
.scrollable-notifications-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.scrollable-table-container::-webkit-scrollbar-track,
.scrollable-notifications-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scrollable-table-container::-webkit-scrollbar-thumb,
.scrollable-notifications-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

    .scrollable-table-container::-webkit-scrollbar-thumb:hover,
    .scrollable-notifications-container::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }

/* مؤشر التمرير */
.scroll-indicator {
    position: absolute;
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    background: rgba(52, 152, 219, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    display: none;
    animation: fadeInOut 2s ease;
    z-index: 100;
    cursor: pointer;
}

    .scroll-indicator:hover {
        background: rgba(52, 152, 219, 1);
    }

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* حالة عدم وجود بيانات */
.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-style: italic;
}

    .no-data-message i {
        font-size: 50px;
        margin-bottom: 15px;
        color: #bdc3c7;
    }

/* تحسينات للهواتف */
@media (max-width: 768px) {
    .scrollable-table-container {
        max-height: 400px;
    }

    .scrollable-table th,
    .scrollable-table td {
        padding: 10px;
        font-size: 12px;
    }

    .scrollable-notifications-container {
        max-height: 500px;
    }

    .notifications-list-item {
        padding: 15px;
    }

    .scroll-indicator {
        padding: 4px 10px;
        font-size: 11px;
    }
}
/* إضف هذا الكود في نهاية ملف css/style.css */

/* ============================================ */
/* مؤشر حالة الاتصال */
/* ============================================ */

.connection-status {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 20px;
    background: #f8f9fa;
    font-size: 12px;
    transition: all 0.3s;
}

    .connection-status i {
        font-size: 10px;
        animation: pulse 2s infinite;
    }

    .connection-status.connected {
        background: #d5f4e6;
        color: #27ae60;
    }

        .connection-status.connected i {
            color: #27ae60;
        }

    .connection-status.disconnected {
        background: #fadbd8;
        color: #e74c3c;
    }

        .connection-status.disconnected i {
            color: #e74c3c;
            animation: none;
        }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ============================================ */
/* Loading Spinner */
/* ============================================ */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #7f8c8d;
}

    .loading-spinner i {
        font-size: 40px;
        margin-bottom: 15px;
        color: #3498db;
    }

    .loading-spinner p {
        margin: 0;
        font-size: 14px;
    }

/* ============================================ */
/* Rotating Animation للأزرار */
/* ============================================ */

.rotating {
    pointer-events: none;
    opacity: 0.7;
}

    .rotating i {
        animation: rotate 1s linear infinite;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================ */
/* تحسينات شارة الإشعارات */
/* ============================================ */

.notifications .badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ============================================ */
/* تحسينات responsive للهواتف */
/* ============================================ */

@media (max-width: 768px) {
    .connection-status {
        padding: 6px 10px;
        font-size: 11px;
    }

    .header-right {
        gap: 10px;
    }

    .loading-spinner i {
        font-size: 30px;
    }

    .loading-spinner p {
        font-size: 12px;
    }
}

/* ============================================ */
/* تحسين الأزرار في الجدول */
/* ============================================ */

.view-elevator-btn {
    white-space: nowrap;
    padding: 8px 15px !important;
}

    .view-elevator-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    }

/* ============================================ */
/* تحسين المخططات */
/* ============================================ */

.report-card-body {
    position: relative;
    min-height: 300px;
}

canvas {
    max-height: 300px !important;
}

/* ============================================ */
/* رسائل الخطأ والنجاح */
/* ============================================ */

.error-message {
    background: #fadbd8;
    color: #c0392b;
    padding: 15px 20px;
    border-radius: 8px;
    border-right: 4px solid #e74c3c;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message {
    background: #d5f4e6;
    color: #27ae60;
    padding: 15px 20px;
    border-radius: 8px;
    border-right: 4px solid #2ecc71;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-message {
    background: #e8f4fc;
    color: #2980b9;
    padding: 15px 20px;
    border-radius: 8px;
    border-right: 4px solid #3498db;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================ */
/* تحسين تجربة المستخدم */
/* ============================================ */

.card {
    transition: transform 0.3s, box-shadow 0.3s;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

.btn {
    transition: all 0.3s;
}

    .btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .btn:active:not(:disabled) {
        transform: translateY(0);
    }

    /* تعطيل الأزرار أثناء التحميل */
    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* ============================================ */
/* Real-time Update Indicator */
/* ============================================ */

.update-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    z-index: 9999;
    animation: slideInLeft 0.3s ease;
}

    .update-indicator.show {
        display: flex;
    }

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.update-indicator i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
/* إصلاح مشكلة الـ input */
.form-control {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
    background: white !important;
    color: #333 !important;
    cursor: text !important;
    pointer-events: auto !important;
}

    .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    }

    .form-control:disabled {
        background: #f5f5f5 !important;
        cursor: not-allowed !important;
    }

/* إصلاح z-index للأيقونات */
.input-group {
    position: relative;
}

    .input-group i {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
        pointer-events: none;
    }

        .input-group i.fas.fa-lock,
        .input-group i.fas.fa-user {
            right: 15px;
            color: #667eea;
            font-size: 18px;
        }

.password-toggle {
    left: 15px !important;
    right: auto !important;
    color: #999;
    cursor: pointer !important;
    pointer-events: auto !important;
    font-size: 18px;
}

    .password-toggle:hover {
        color: #667eea;
    }

/* التأكد من أن الـ input فوق كل شيء */
.form-control {
    position: relative;
    z-index: 2;
}
.notification-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 180px;
}

    .filter-select:hover {
        border-color: #3498db;
    }

    .filter-select:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }

/* ====================================== */
/* Modals Styles - إضافة في آخر الملف */
/* ====================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    .modal.show {
        display: flex;
    }

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideDown 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
}

    .modal-header h2 {
        margin: 0;
        color: #2c3e50;
        font-size: 20px;
    }

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

    .close-modal:hover {
        color: #e74c3c;
    }

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 2px solid #e0e0e0;
}

    .modal-footer .btn {
        flex: 1;
        padding: 12px;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }

/* Device/Notification Item في الـ Modal */
.device-item,
.notification-item-modal {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

    .device-item:hover,
    .notification-item-modal:hover {
        border-color: #3498db;
        background: #f8f9fa;
        transform: translateX(-5px);
    }

    .device-item.selected,
    .notification-item-modal.selected {
        border-color: #2ecc71;
        background: #d4edda;
    }

    .device-item input[type="radio"],
    .notification-item-modal input[type="radio"] {
        margin-left: 15px;
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

.device-item-info,
.notification-item-info {
    flex: 1;
}

    .device-item-info h4,
    .notification-item-info h4 {
        margin: 0 0 5px 0;
        color: #2c3e50;
        font-size: 16px;
    }

    .device-item-info p,
    .notification-item-info p {
        margin: 0;
        color: #7f8c8d;
        font-size: 13px;
    }

.device-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

    .device-status-badge.off {
        background: #fee;
        color: #c33;
    }

    .device-status-badge.on {
        background: #efe;
        color: #3c3;
    }

.no-items-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

    .no-items-message i {
        font-size: 48px;
        margin-bottom: 15px;
        opacity: 0.5;
    }

    .no-items-message h3 {
        margin: 10px 0;
        color: #7f8c8d;
    }

    .no-items-message p {
        color: #bbb;
        font-size: 14px;
    }
/* ============================================
   أنماط إضافية لصفحة الإشعارات
   ============================================ */

/* فلتر التاريخ */
.date-filter-section {
    margin: 20px 0;
}

.date-filter-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.date-filter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

    .date-filter-header i {
        color: #3498db;
        font-size: 20px;
    }

    .date-filter-header h3 {
        margin: 0;
        color: #2c3e50;
        font-size: 18px;
    }

.date-filter-inputs {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.date-input-group {
    flex: 1;
    min-width: 200px;
}

    .date-input-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
        color: #34495e;
        font-size: 14px;
    }

.date-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

    .date-input:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }

/* تنسيق بطاقة الإشعار مع لينك الخريطة */
.notification-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    font-size: 14px;
    color: #7f8c8d;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 10px;
}

    .map-link:hover {
        background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    }

    .map-link i {
        font-size: 14px;
    }

/* تحسين عرض العنوان */
.notification-address {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

    .notification-address i {
        color: #e74c3c;
    }

/* تحسين البحث */
#search-notifications {
    width: 300px;
    padding: 10px 15px;
    padding-right: 40px;
    border: 2px solid #ecf0f1;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

    #search-notifications:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }

/* أنماط responsive */
@media (max-width: 768px) {
    .date-filter-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .date-input-group {
        min-width: 100%;
    }

    .map-link {
        font-size: 11px;
        padding: 3px 8px;
    }

    #search-notifications {
        width: 100%;
    }
}

/* تحسين عرض نوع العطل */
.malfunction-type {
    display: inline-block;
    padding: 4px 12px;
    background: #ecf0f1;
    color: #2c3e50;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
}

/* تحسين زر تطبيق الفلتر */
#apply-date-filter {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    transition: all 0.3s ease;
}

    #apply-date-filter:hover {
        background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    }

#clear-date-filter {
    background: #95a5a6;
    color: white;
    transition: all 0.3s ease;
}

    #clear-date-filter:hover {
        background: #7f8c8d;
        transform: translateY(-2px);
    }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

    .empty-state i {
        font-size: 80px;
        margin-bottom: 20px;
        opacity: 0.5;
    }

    .empty-state p {
        font-size: 18px;
        margin: 0;
    }

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px 20px;
    background: #fee;
    border-radius: 10px;
    color: #e74c3c;
}

    .error-message i {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .error-message p {
        font-size: 16px;
        margin: 10px 0 20px;
    }

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: #3498db;
}

    .loading-spinner i {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .loading-spinner p {
        font-size: 16px;
        margin: 0;
    }

/* ⭐ أنماط القائمة المنسدلة للمستخدم */
.user-info {
    position: relative;
}

.user-info-clickable {
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s;
}

    .user-info-clickable:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.user-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

    .user-dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
    cursor: pointer;
    font-size: 14px;
}

    .user-dropdown-item:hover {
        background: #f8f9fa;
    }

    .user-dropdown-item i {
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    .user-dropdown-item.logout {
        color: #e74c3c;
        border-top: 1px solid #f0f0f0;
    }

        .user-dropdown-item.logout:hover {
            background: #fee;
        }
/* ====================================
   🔊 أنماط زر التحكم في الصوت
   ==================================== */

.sound-toggle-button {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-left: 10px;
}

    .sound-toggle-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .sound-toggle-button:active {
        transform: translateY(0);
    }

    /* تأثير النبض عند الكتم */
    .sound-toggle-button i {
        transition: all 0.3s ease;
    }

    .sound-toggle-button:hover i {
        transform: scale(1.1);
    }

    /* أنماط حالة الكتم */
    .sound-toggle-button.muted {
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    }

/* تأثير النقر */
@keyframes soundPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.sound-toggle-button.pulse {
    animation: soundPulse 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .sound-toggle-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-left: 8px;
    }
}

/* ====================================
   📢 تحسين أنماط الإشعارات الموجودة
   ==================================== */

.notification {
    animation: slideInRight 0.4s ease-out;
}

.notification-alert {
    animation: slideInDown 0.4s ease-out;
}

/* إضافة تأثير اهتزاز خفيف للإشعارات المهمة */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.notification.warning,
.notification.error {
    animation: slideInRight 0.4s ease-out, shake 0.5s ease 0.4s;
}
