

/* تصميم محسن للصفحة الرئيسية */
:root {
    --primary-color: #2563eb;
    --secondary-color: #ea580c;
    --accent-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
}

body {
    background-color: #f0f2f5;
}

/* تحسين شريط العلوي */
.topbar {
    font-size: 0.9rem;
    background: linear-gradient(90deg, #1e293b, #334155);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--accent-color);
}

.topbar a {
    transition: all 0.3s ease;
}

.topbar a:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* تحسين رأس الصفحة */
.header-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-bottom: 3px solid var(--primary-color);
}

.full-width-image {
    width: 100%;
    height: 240px;
    filter: brightness(1.05) contrast(1.05);
    transition: all 0.5s ease;
}

/* تحسين شريط الأخبار */
.news-ticker {
    overflow: hidden;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #f8fafc, #e2e8f0, #f8fafc);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.12);
    border-bottom: 2px solid var(--secondary-color);
}

.ticker-content {
    display: flex;
    animation: ticker 25s linear infinite;
    position: absolute;
    white-space: nowrap;
}

.ticker-content a {
    margin-right: 80px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    padding: 6px 18px;
    border-radius: 20px;
}

.ticker-content a:hover {
    background-color: rgba(234, 88, 12, 0.15);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ticker-content a::before {
    content: "•";
    position: absolute;
    right: -15px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-120%);
    }
}

/* تحسين القسم الرئيسي */
.main-content-wrapper {
    margin-top: 50px;
    margin-bottom: 10px;
    position: relative;
}

.main-content-wrapper::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 3px;
}

.main-content-card {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 25px 30px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.main-content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 40px -15px rgba(0, 0, 0, 0.3);
}

.main-content-card::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    animation: backgroundMove 30s linear infinite;
}

@keyframes backgroundMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.image-container {
    position: relative;
    padding: 15px;
    margin: 0 auto;
    max-width: 100%;
}

.image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transform: rotate(-3deg);
    z-index: -1;
}

.image-container img {
    border-radius: 15px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    border: 4px solid rgba(255, 255, 255, 0.15);
    max-height: 200px;
    object-fit: contain;
}

.image-container img:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.3);
}

.welcome-heading {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-heading::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.main-heading {
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(to right, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.login-button {
    background: linear-gradient(to right, #f59e0b, #ea580c);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.4);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 0.6rem 1.8rem;
    font-size: 1rem;
    border-radius: 50px;
}

.login-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #ea580c, #c2410c);
    transition: all 0.4s;
    z-index: -1;
}

.login-button:hover::before {
    left: 0;
}

.login-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(234, 88, 12, 0.5);
}

/* تحسين التذييل */
.footer {
    margin-top: 50px;
    color: #070707;
    padding: 17px 15px;
    font-size: 16px;
    font-weight: 300;
    border-top: 1px solid rgba(48, 99, 150, 0.13);
    background: #fff;
}

/* تحسين التذييل */
.main-footer {
    background: linear-gradient(90deg, #1e293b, #334155);
    color: white;
    border-top: 3px solid var(--accent-color);
    margin-top: 50px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.1);
}


/* تحسين التجاوب */
@media (max-width: 992px) {
    .main-heading {
        font-size: 1.5rem;
    }

    .welcome-heading {
        font-size: 1.3rem;
    }

    .main-content-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .main-heading {
        font-size: 1.4rem;
    }

    .welcome-heading {
        font-size: 1.2rem;
    }

    .main-content-card {
        padding: 25px 15px;
    }

    .main-content-wrapper {
        margin-top: 70px;
        margin-bottom: 70px;
    }
}

/* تأثيرات الحركة */
.fadeInLeft {
    animation: fadeInLeft 1s ease-out;
}

.fadeInRight {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-body2 {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    direction: rtl;
    min-height: 100vh;
}

.reset-page-container {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.reset-form-container {
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    background-color: white;
    max-width: 550px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.reset-form-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #6b21a8, #8b5cf6);
}

.btn-reset {
    background: linear-gradient(to right, #6b21a8, #8b5cf6);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
    height: 50px;
    font-size: 16px;
}

.btn-reset:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
}

.password-toggle {
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #8b5cf6;
}

.password-requirements {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border-right: 4px solid #8b5cf6;
}

.requirement-item {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.requirement-item i {
    margin-left: 8px;
    font-size: 12px;
}

.requirement-item.valid {
    color: #28a745;
    text-decoration: line-through;
}
.requirement-item.valid::before {
    content: "✓ ";
    color: #28a745;
}
.cursor-pointer {
    cursor: pointer;
}
.invalid-feedback {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 5px;
}

.logo-container {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-right: 15px;
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-to-login a {
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}


.form-header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6b21a8 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.form-header-icon i {
    font-size: 30px;
    color: white;
}

.costom-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0eafc 100%);
}

.custom2FA-modal .modal-content {
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
}

.custom2FA-modal .modal-header {
    background: linear-gradient(to right, #6b21a8, #8b5cf6);
    color: white;
    padding: 15px 20px;
    border-bottom: none;
}

.custom2FA-modal .modal-body {
    padding: 30px;
}

.custom2FA-modal h5 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 15px;
}

.custom2FA-modal .form-label {
    font-weight: 500;
    color: #475569;
    margin-bottom: 10px;
}

.custom2FA-modal .form-control {
    height: 50px;
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-align: center;
}

.custom2FA-modal .form-control:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.custom2FA-modal .btn-primary {
    height: 50px;
    background: linear-gradient(to right, #6b21a8, #8b5cf6);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
    margin-top: 20px;
}

.custom2FA-modal .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
}

.otp-container {
    position: relative;
    margin-top: 15px;
}

.otp-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b5cf6;
    font-size: 1.2rem;
}

.timer-container {
    text-align: center;
    margin-top: 15px;
    color: #475569;
    font-size: 0.9rem;
}

.timer-text {
    font-weight: 600;
    color: #6b21a8;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.profile-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 20px;
    margin-top: 20px;
}

.profile-card .card-header {
    background: linear-gradient(to right, #6b21a8, #8b5cf6);
    padding: 15px 20px;
}
.two-factor-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 20px;
    margin-top: 20px;
}

.two-factor-card .card-header {
    background: linear-gradient(to right, #6b21a8, #8b5cf6);
    padding: 20px 20px;
}

.nav-tabs {
    border-bottom: 1px solid #e2e8f0;
}

.nav-tabs .nav-item {
    margin-bottom: -1px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: #64748b;
    font-weight: 600;
    font-size: 20px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #8b5cf6;
    border-bottom-color: #e2e8f0;
}

.nav-tabs .nav-link.active {
    color: #8b5cf6;
    background-color: transparent;
    border-bottom-color: #8b5cf6;
}

.nav-tabs .nav-link i {
    margin-right: 8px;
}

.btn-purple {
    background: linear-gradient(to right, #6b21a8, #8b5cf6);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
    color: white;
}

.btn-purple:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #475569;
}

.custom-file-upload:hover {
    background-color: #e2e8f0;
}

.custom-file-upload i {
    margin-right: 8px;
}



/* تحسين مظهر العنوان الرئيسي */
.main-content-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 20px;
    position: relative;
    padding-right: 15px;
}

.main-content-label:before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #0162e8;
    border-radius: 4px;
}

/* تحسين مظهر رؤوس الخطوات */
.wizard-header {
    background-color: #0162e8;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.wizard-header i {
    margin-left: 10px;
}

/* تحسين مظهر خطوات المعالج */
.wizard-step {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

/* تحسين مظهر الخطوات */
.steps ul {
    display: flex;
    padding: 0;
    margin: 0 0 20px 0;
    list-style: none;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.steps ul li {
    flex: 1;
    text-align: center;
    background-color: #f8fafc;
    padding: 12px 5px;
    position: relative;
    border-right: 1px solid #e2e8f0;
}

.steps ul li:last-child {
    border-right: none;
}

.steps ul li.done {
    background-color: #e0f2fe;
    color: #0162e8;
}

.steps ul li a {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* تحسين مظهر الأزرار */
.actions ul {
    display: flex;
    padding: 0;
    margin: 20px 0 0 0;
    list-style: none;
    justify-content: space-between;
}

.actions ul li a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.actions ul li:first-child a {
    background-color: #94a3b8;
    color: white;
}

.actions ul li:last-child a {
    background-color: #0162e8;
    color: white;
}

.actions ul li a:hover {
    opacity: 0.9;
}

/* تصميم بطاقات الإحصائيات */
.stat-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-right: 4px solid;
}

.stat-card-primary {
    border-color: #0162e8;
}

.stat-card-success {
    border-color: #28a745;
}

.stat-card-info {
    border-color: #17a2b8;
}

.stat-card-warning {
    border-color: #ffc107;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #0162e8;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

.stat-card .label {
    font-size: 1rem;
    color: #64748b;
}

/* تصميم الرسوم البيانية */
.chart-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    height: 350px;
}

/* تخصيص أزرار التصدير */
.dt-buttons .btn {
    margin-right: 5px;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 0.9rem;
}

.dt-buttons .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.dt-buttons .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* تحسين مظهر الأزرار */
.btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: #fff;
}

.btn-purple:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(111, 66, 193, 0.3);
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* تحسين مظهر نموذج الاستيراد */
.import-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.import-form:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.import-form .form-group {
    margin-bottom: 15px;
}

.import-form label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.import-form .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    transition: border-color 0.3s ease;
}

.import-form .form-control:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* تحسين مظهر أيقونات الأزرار */
.btn i {
    margin-left: 5px;
}

/* تحسين مظهر رسائل التنبيه */
.alertify-notifier .ajs-message {
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* تحسين مظهر مربع البحث */
.dataTables_filter input {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    margin-right: 5px;
}

.dataTables_filter input:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
    outline: none;
}

/* تحسين مظهر اختيار عدد العناصر */
.dataTables_length select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 6px 10px;
}

/* تحسين مظهر الترقيم الصفحي */
.dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    margin: 0 3px;
}

.dataTables_paginate .paginate_button.current {
    background: #6f42c1 !important;
    border-color: #6f42c1 !important;
    color: #fff !important;
}

.dataTables_paginate .paginate_button:hover {
    background: #5a32a3 !important;
    border-color: #5a32a3 !important;
    color: #fff !important;
}

/* تحسين مظهر العمليات */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* تحسين مظهر الرأس */
.breadcrumb-header {
    margin-bottom: 10px;
}

.content-title {
    color: #334155;
    font-weight: 700;
}

/* إضافة تأثير بصري للصفوف */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-success {
    background: linear-gradient(to right, #059669, #10b981);
    color: white;
}

.badge-danger {
    background: linear-gradient(to right, #dc2626, #ef4444);
    color: white;
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 15px;
    transition: all 0.2s;
    color: #1e293b;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: #8b5cf6;
}

.dropdown-item i {
    margin-right: 8px;
    color: #8b5cf6;
}

/* تحسين أزرار الإجراءات */
.action-btn {
    background: linear-gradient(to right, #6b21a8, #8b5cf6);
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 5px;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
}

.status-badge.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge i {
    font-size: 0.7rem;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.empty-state-text {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 20px;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to right, #6b21a8, #8b5cf6);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.btn-upload:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-upload i {
    font-size: 1rem;
}

/* تحسين مظهر الجدول للشاشات الصغيرة */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 15px;
        overflow: hidden;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .table-actions {
        width: 100%;
    }

    .btn-upload {
        width: 100%;
        justify-content: center;
    }
}

/* تحسين مظهر الزر المنسدل */
.action-dropdown .dropdown-toggle {
    padding: 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.action-dropdown .dropdown-toggle::after {
    display: none;
}

.action-dropdown .dropdown-menu {
    min-width: 180px;
    margin-top: 10px;
}

.search-btn {
    background: linear-gradient(to right, #1e40af, #3b82f6);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

.action-btn {
    background: linear-gradient(to right, #1e40af, #3b82f6);
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 5px;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

#payroll-details {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    overflow: hidden;
}

#payroll-details .card-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 15px 25px;
}

/* تحسين أزرار الطباعة والتحميل */
.print-btn,
.Lang-Btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.print-btn {
    background: linear-gradient(to right, #0891b2, #06b6d4);
    border: none;
    color: white;
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
}

.Lang-Btn {
    background: linear-gradient(to right, #059669, #10b981);
    border: none;
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.print-btn:hover,
.Lang-Btn:hover {
    transform: translateY(-3px);
}

.print-btn:hover {
    box-shadow: 0 6px 15px rgba(6, 182, 212, 0.4);
}

.Lang-Btn:hover {
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

/* تحسين مظهر رأس التقرير */
.report-header {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

/* تحسين مظهر شريط الأدوات */
.action-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    padding: 10px 15px;
    background-color: #e7e4e4;
    border-radius: 8px;
}

/* تحسين مظهر العناوين */
.report-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.report-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #6259ca, #9289e0);
}

/* تحسين مظهر زر الطباعة */
.print-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #6259ca;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.print-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* تحسين مظهر الرسائل */
.alert {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* تحسين مظهر الشاشات الصغيرة */
@media (max-width: 768px) {
    .table {
        font-size: 0.75rem;
    }

    .table thead th,
    .table tbody td {
        padding: 8px 5px;
    }
}

/* تحسين مظهر الأيقونات */
.fa,
.fas,
.fa-solid {
    margin-left: 5px;
}

/* تحسين مظهر زر الحفظ */
.save-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.save-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.save-btn i {
    margin: 0;
    font-size: 1.2rem;
}

/* تحسين مظهر القائمة المنسدلة */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236f42c1' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 12px;
    padding-left: 35px;
}

/* تحسين مظهر الفترة */
.period-badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    background-color: #e2e3e5;
    color: #41464b;
    border: 1px solid #d3d6d8;
    margin-top: 10px;
}

/* تحسين مظهر الإطار */
.settings-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-right: 4px solid #6f42c1;
}

.settings-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-bottom: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #22c03c;
}

input:focus + .slider {
    box-shadow: 0 0 1px #8b5cf6;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Status indicator */
.status-indicator {
    display: inline-block;
    margin-right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-active {
    background-color: #10b981;
}

.status-inactive {
    background-color: #ef4444;
}

.select2-container--default .select2-selection--single {
    height: 45px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 8px 15px;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 45px;
}

.togglepassword {
    position: absolute;
    left: 15px; /* Keep this as left since it should be on the opposite side of the input icon */
    top: 30%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s ease;
}

.togglepassword:hover {
    color: #8b5cf6;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 70%;
    transform: translateY(-50%);
    color: #8b5cf6;
}

.togglepassword:hover {
    color: #8b5cf6;
}

/* Password strength indicator */
.password-strength {
    height: 5px;
    border-radius: 5px;
    margin-top: 8px;
    transition: all 0.3s ease;
    background-color: #e2e8f0;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-weak {
    width: 25%;
    background-color: #ef4444;
}

.strength-medium {
    width: 50%;
    background-color: #f59e0b;
}

.strength-strong {
    width: 75%;
    background-color: #10b981;
}

.strength-very-strong {
    width: 100%;
    background-color: #22c55e;
}

.card-header {
    background: linear-gradient(135deg, #6b21a8 0%, #8b5cf6 100%);
    color: white;
    padding: 15px;
    border-bottom: none;
    position: relative;
}

.card-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: white;
}

.card-title i {
    margin-left: 10px;
    font-size: 1.2em;
}

.table thead th {
    background-color: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    border: none;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
}

.table tbody td {
    padding: 10px;
    vertical-align: middle;
    border: none;
    text-align: center;
    background-color: #fff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    z-index: 1;
    position: relative;
}

.table tbody tr td:first-child {
    border-radius: 8px 0 0 8px;
    border-left: 1px solid #f1f5f9;
}

.table tbody tr td:last-child {
    border-radius: 0 8px 8px 0;
    border-right: 1px solid #f1f5f9;
}

.icon-text-spacing {
    margin-left: 5px;
}

.content-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Search box styling */
.dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 15px 10px 40px;
    transition: all 0.3s ease;
    width: 250px !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%238b5cf6" class="bi bi-search" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 16px;
}

.dataTables_filter input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
    outline: none;
    width: 300px !important;
}

/* Pagination styling */
.dataTables_paginate {
    margin-top: 20px !important;
}

.dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    margin: 0 3px;
    border: none !important;
    background: #f8fafc !important;
    color: #64748b !important;
    font-weight: 500;
    padding: 5px 12px !important;
    transition: all 0.2s ease;
}

.dataTables_paginate .paginate_button.current {
    background: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.dataTables_paginate .paginate_button:hover:not(.current) {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
    transform: translateY(-2px);
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 15px;
    display: block;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
    }

    .table tbody td {
        display: flex;
        justify-content: space-between;
        text-align: right;
        padding: 12px 15px;
        border-bottom: 1px solid #f1f5f9;
    }

    .table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #1e293b;
    }

    .table tbody td:last-child {
        border-bottom: none;
    }
}

.settings-icon {
    font-size: 3rem;
    color: #6f42c1;
    margin-bottom: 20px;
}

.clear-section {
    background-color: #fff3f3;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    border: 1px dashed #dc3545;
}

.clear-section h3 {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 15px;
}

.dashboard-container {
    background-color: #f8f9fa;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 20px;
}

.dashboard-header {
    background: linear-gradient(135deg, #6b21a8 0%, #8b5cf6 100%);
    padding: 3rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.dashboard-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    pointer-events: none;
}

.dashboard-header::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(-30deg);
    pointer-events: none;
}

.dashboard-welcome {
    position: relative;
    z-index: 2;
}

.btn-dashboard {
    background: linear-gradient(to right, #6b21a8, #8b5cf6);
    border: none;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

.btn-dashboard:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-dashboard:active {
    transform: translateY(-1px);
}

.quick-actions {
    margin: 0 2rem 2rem;
}

.welcome-message {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.welcome-message h5 {
    color: #64748b;
    font-weight: 400;
    margin-bottom: 1rem;
}

.welcome-message p {
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .feature-card {
        margin-bottom: 60px;
    }

    .dashboard-header {
        padding: 2rem 1rem;
    }
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}
.delay-2 {
    animation-delay: 0.2s;
}
.delay-3 {
    animation-delay: 0.3s;
}
.delay-4 {
    animation-delay: 0.4s;
}

.feature-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.1);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #6b21a8, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -45px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    border: 5px solid white;
}

.feature-icon img {
    width: 60%;
    height: 60%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon img {
    transform: scale(1.15);
}

.feature-content {
    padding: 1.8rem 1.5rem;
    text-align: center;
}

.feature-title {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    position: relative;
    display: inline-block;
}

.feature-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}
