
:root {
    --primary: #2c5aa0;
    --primary-light: #3a6bc2;
    --secondary: #f8f9fa;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --dark: #343a40;
    --light: #f8f9fa;
    --border: #dee2e6;
    --text: #333;
    --text-light: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

body {
    background-color: #f5f7fa;
    color: var(--text);
    line-height: 1.6;
    padding: 0;
    overflow-x: hidden;
}

 

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0.1;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.15;
    }
    50% {
        transform: translateY(0) translateX(20px) rotate(180deg);
        opacity: 0.1;
    }
    75% {
        transform: translateY(20px) translateX(10px) rotate(270deg);
        opacity: 0.15;
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
        opacity: 0.1;
    }
}
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}
 
 

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}
 

/* التبويبات الرئيسية */
.tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.tab {
    padding: 18px 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(44, 90, 160, 0.05);
}

.tab:hover:not(.active) {
    background: rgba(0, 0, 0, 0.03);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
    padding: 0!important;
}

.tab-content.active {
    display: block;
}

 
 
.subtitle {
    font-size: 17px;
    opacity: 0.9;
    position: relative;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 20px;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.request-form {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.section-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    transition: border 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}
.sf-input-css
{
    height: 42px;
}
    .sf-input-css .e-control .e-dropdownlist .e-lib .e-input {
        height: 42px;
    }
.delegation-details {
    background: var(--secondary);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.checkbox-group input {
    width: auto;
    transform: scale(1.2);
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
}

.preview-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: fit-content;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.preview-card {
    background: var(--secondary);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.preview-card h4 {
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

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

.preview-label {
    font-weight: 500;
}

.preview-value {
    color: var(--text-light);
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.badge-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.badge-primary {
    background: rgba(44, 90, 160, 0.1);
    color: var(--primary);
}

.badge-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}
.grid_badge-danger {
    background-color: #fdecea; /* خلفية هادئة جداً */
    color: #b71c1c; /* نص أحمر غامق وواضح */
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
   /* border: 1px solid #f5c2c7;*/ /* لمسة احترافية */
}

.badge-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.badge-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: var(--text-light);
}

.cost-summary {
    background: #e8f4ff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border-right: 4px solid var(--primary);
}

.cost-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.cost-total {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary);
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 10px;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 90, 160, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

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

/* أنماط التكاليف الإضافية */
.costs-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.costs-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.cost-tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.cost-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(44, 90, 160, 0.05);
}

.cost-tab:hover:not(.active) {
    background: rgba(0, 0, 0, 0.03);
}

.cost-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.cost-tab-content.active {
    display: block;
}

.cost-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr auto;
    gap: 12px;
    margin-bottom: 12px;
    align-items: end;
}

.cost-item-card {
    background: white;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s;
}

.cost-item-card:hover {
    transform: translateX(5px);
}

.cost-item-info {
    flex: 1;
}

.cost-item-description {
    font-weight: 500;
    margin-bottom: 4px;
}

.cost-item-details {
    font-size: 13px;
    color: var(--text-light);
}

.cost-item-amount {
    font-weight: 600;
    color: var(--primary);
    margin-right: 12px;
}

.cost-item-actions {
    display: flex;
    gap: 5px;
}

.remove-cost {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.3s;
}

.remove-cost:hover {
    transform: scale(1.1);
}

.empty-costs {
    padding: 15px;
    text-align: center;
    color: var(--text-light);
    background: white;
    border-radius: 6px;
    margin-bottom: 12px;
}

.cost-summary-details {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.cost-breakdown {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.breakdown-category {
    font-weight: 500;
    color: var(--primary);
}

@media (max-width: 768px) {
    .container {
        padding: 0 8px;
    }

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

    .cost-item-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cost-item-amount {
        margin-right: 0;
    }

    .actions {
        flex-direction: column;
    }

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

/* تبويبات الطلب الداخلية */
.request-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.request-tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    position: relative;
}

.request-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(44, 90, 160, 0.05);
}

.request-tab:hover:not(.active) {
    background: rgba(0, 0, 0, 0.03);
}

.request-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.request-tab-content.active {
    display: block;
}

.employee-count-badge {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    position: absolute;
    top: -6px;
    left: -6px;
    animation: pulse 2s infinite;
}

.basic-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.request-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.supervisor-project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 12px;
    align-items: end;
    grid-column: 1 / -1;
}


.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

 
 
.days-indicator {
    background: #e8f4ff;
    padding: 10px 12px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.operational-unit {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.unit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
}

/* كارد معلومات الطالب */
.requester-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.requester-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
}

.requester-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* أنماط الموظفين المنتدبين */
.employees-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.employees-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
}

.employee-list {
    margin-top: 15px;
}

.employee-item {
    background: white;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s;
}

.employee-item:hover {
    transform: translateX(5px);
}

.employee-info {
    flex: 1;
}

.employee-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.employee-details {
    font-size: 13px;
    color: var(--text-light);
}

.employee-actions {
    display: flex;
    gap: 5px;
}

.remove-employee {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.3s;
}

.remove-employee:hover {
    transform: scale(1.1);
}

/* حقل البحث في جدول الموظفين */
.search-container {
    margin-bottom: 12px;
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
}

/* جدول الموظفين */
.employees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.employees-table th,
.employees-table td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.employees-table th {
    background: var(--secondary);
    font-weight: 600;
    color: var(--primary);
}

.employees-table tr {
    transition: background 0.3s;
}

.employees-table tr:hover {
    background: rgba(44, 90, 160, 0.03);
}

.employee-checkbox {
    width: 18px;
    height: 18px;
}

/* الشاشة المنبثقة */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-light);
    transition: transform 0.3s;
}

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

.modal-body {
    padding: 20px;
}

/* شريط الموظفين المختارين */
.selected-employees-bar {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--success);
}

.count-badge {
    background: var(--success);
    color: white;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* أنماط التبويبات الأخرى */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}



.requests-table {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.table-container {
    overflow-x: auto;
}

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

th, td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--secondary);
    font-weight: 600;
    color: var(--primary);
}

tr {
    transition: background 0.3s;
}

tr:hover {
    background: rgba(44, 90, 160, 0.03);
}

.filter-bar {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.chart-placeholder {
    height: 250px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
    flex-direction: column;
}

/* نمط جديد لإخفاء العناصر */
.hidden {
    display: none !important;
}

/* أنماط جديدة للكومبو بوكس */
.combo-section {
    margin-bottom: 15px;
}

.combo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
}

.combo-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr auto;
    gap: 10px;
    margin-bottom: 10px;
    align-items: end;
}

.combo-list {
    margin-top: 10px;
}

.combo-item {
    background: white;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s;
}

.combo-item:hover {
    transform: translateX(5px);
}

.combo-item-info {
    flex: 1;
}

.combo-item-description {
    font-weight: 500;
    margin-bottom: 4px;
}

.combo-item-amount {
    font-weight: 600;
    color: var(--primary);
    margin-right: 10px;
}

.combo-item-actions {
    display: flex;
    gap: 5px;
}

.remove-combo {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: transform 0.3s;
}

.remove-combo:hover {
    transform: scale(1.1);
}

/* أنماط جديدة للواجهة المحدثة */
.employees-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.selected-employees-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

.selected-employees-count-badge {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* أنماط جديدة للجسيمات المتحركة */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* أنماط جديدة للرسائل المنبثقة */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-right: 4px solid var(--primary);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 20px;
    color: var(--primary);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.toast-message {
    font-size: 14px;
    color: var(--text-light);
}

.toast-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-light);
}

/* أنماط جديدة لشريط التقدم */
.progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* أنماط جديدة للزر العائم */
.fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(44, 90, 160, 0.4);
}

/* أنماط جديدة للتلميحات */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* أنماط جديدة للقوائم المنبثقة */
.context-menu {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.context-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-menu-item:hover {
    background: rgba(44, 90, 160, 0.05);
}

/* أنماط جديدة للعدادات المتحركة */
.counter {
    font-weight: 700;
    color: var(--primary);
}

/* أنماط جديدة للرسم البياني */
.chart-bar {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    margin-top: 20px;
}

.chart-bar-item {
    background: var(--primary);
    width: 40px;
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
    position: relative;
}

.chart-bar-label {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
}

/* أنماط جديدة للرسوم المتحركة */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* أنماط جديدة للعناصر المتحركة عند التمرير */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
/* Cards with Glass Effect */
.request-form, .preview-section, .approved-requests-table,
.termination-summary, .calculation-card, .assets-list,
.loans-list, .pending-operations, .future-events,
.tasks-responsibilities, .settlement-card, .professional-card,
.workflow-progress, .pre-termination-actions, .completed-operations,
.reports-statistics, .work-days-calculation, .recent-activity,
.dashboard-alerts, .termination-finalization, .rate-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    margin-bottom: 20px;
}

.request-form:hover, .preview-section:hover, .approved-requests-table:hover,
.termination-summary:hover, .calculation-card:hover, .assets-list:hover,
.loans-list:hover, .pending-operations:hover, .future-events:hover,
.tasks-responsibilities:hover, .settlement-card:hover, .professional-card:hover,
.workflow-progress:hover, .pre-termination-actions:hover, .completed-operations:hover,
.reports-statistics:hover, .work-days-calculation:hover, .recent-activity:hover,
.dashboard-alerts:hover, .termination-finalization:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* أنماط جديدة للشريط الجانبي */
.help-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.help-sidebar.active {
    left: 0;
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.help-title {
    font-size: 22px;
    color: var(--primary);
}

.help-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.help-section {
    margin-bottom: 25px;
}

.help-section-title {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shortcut-list {
    list-style: none;
}

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

.shortcut-key {
    background: var(--secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.badge-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.badge-primary {
    background: rgba(44, 90, 160, 0.1);
    color: var(--primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.2);
}
.status-badge.active{
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
}
.status-badge.inactive{
    background: rgba(207, 16, 16, 0.1);
    border: 1px solid rgba(181, 2, 2, 0.1);
}
.legal-notes {
    background: #fff9e6;
    border-radius: 10px;
    padding: 20px;
    border-right: 4px solid var(--warning);
    margin-top: 25px;
}

.legal-notes h3 {
    color: #b08c00;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-notes ul {
    padding-right: 20px;
    color: #745f00;
}

.legal-notes li {
    margin-bottom: 8px;
}

.attachment-count-badge {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -5px;
    right: -5px;
}