:root {
    /* تم روشن (Light Mode) */
    --color-primary: #0E2050;
    --color-secondary: #fff;
    --color-blue80: #7D87A1;
    --color-gray: #DADDE4;
    --color-background: #F6F8FE;
}

[data-theme="dark"] {
    /* تم تاریک (Dark Mode) */
    --color-primary: #fff;
    --color-secondary: #0E2050;
    --color-gray: #DADDE4;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    /* user-select: none; */
    overflow-x: hidden;
    background-color: var(--color-background);
}

a {
    text-decoration: none;
    cursor: pointer;
    transition: all .4s;
}

.fw-Medium {
    font-weight: 500;
}

.fw-semiBold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.transition {
    transition: all .4s;
}

/* max-width */
.max-w-241 {
    max-width: 241px;
    width: 100%;
}
.max-w-420 {
    max-width: 420px;
    width: 100%;
}
.max-w-800 {
    max-width: 800px;
    width: 100%;
}

/* max height */

.max-h-70vh {
    max-height: 70vh;
}

.max-h-400 {
    max-height: 400px;
}

/* font size */
.fs-8 {
    font-size: 8px;
}

.fs-10 {
    font-size: 10px;
}

.fs-11 {
    font-size: 11px;
}

.fs-12 {
    font-size: 12px;
}

.fs-13 {
    font-size: 13px;
}

.fs-14 {
    font-size: 14px;
}

.fs-16 {
    font-size: 16px;
}

.fs-18 {
    font-size: 18px;
}

.fs-20 {
    font-size: 20px;
}

.fs-22 {
    font-size: 22px;
}

.fs-24 {
    font-size: 24px;
}

.fs-30 {
    font-size: 30px;
}

.fs-32 {
    font-size: 32px;
}

.fs-36 {
    font-size: 36px;
}

.fs-40 {
    font-size: 40px;
}

.fs-48 {
    font-size: 48px;
}

.fs-60 {
    font-size: 60px !important;
}

/* cursor */
.cursor-pointer {
    cursor: pointer !important;
}

/* gap */

.gap-12 {
    gap: 12px;
}

.gap-44 {
    gap: 44px;
}

/* width */
.w-20 {
    width: 20px;
}
.w-24 {
    width: 24px;
}

.w-27 {
    width: 27px;
}

.w-32 {
    width: 32px;
}

.w-35 {
    width: 35px;
}

.w-37 {
    width: 37px;
}

.w-40 {
    width: 40px;
}

.w-46 {
    width: 46px;
}

.w-48 {
    width: 48px;
}

.w-49 {
    width: 49px;
}

.w-60 {
    width: 60px;
}

.w-62 {
    width: 62px;
}

.w-76 {
    width: 76px;
}

.w-80 {
    width: 80px;
}

.w-177 {
    width: 177px;
}

.w-214 {
    width: 214px;
}

.w-280 {
    width: 280px;
}

/* height */
.h-20 {
    height: 20px;
}
.h-24 {
    height: 24px;
}

.h-30 {
    height: 30px;
}

.h-32 {
    height: 32px;
}

.h-35 {
    height: 35px;
}

.h-38 {
    height: 38px;
}

.h-40 {
    height: 40px;
}

.h-48 {
    height: 48px;
}

.h-51 {
    height: 51px;
}

.h-54 {
    height: 54px;
}

.h-60 {
    height: 60px;
}

.h-80 {
    height: 80px;
}

.h-screen {
    height: 100vh;
}

/* z index */
.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

/* padding */
.py-10 {
    padding-bottom: 10px;
    padding-top: 10px;
}

.px-12 {
    padding-right: 12px;
    padding-left: 12px;
}

.py-14 {
    padding-bottom: 14px;
    padding-top: 14px;
}

.py-15 {
    padding-bottom: 15px;
    padding-top: 15px;
}

.py-20 {
    padding-bottom: 20px;
    padding-top: 20px;
}

.pt-40 {
    padding-top: 40px;
}

/* margin */
.mb-8 {
    margin-bottom: 8px;
}

/* flex */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* text align */
.text-justify {
    text-align: justify;
}

/* text color */
.text-main {
    color: var(--color-primary);
}

.text-blue80 {
    color: var(--color-blue80);
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-blue {
    color: #1f53dc;
}

/* left */
.-left-8 {
    left: -8px;
}
.left-25 {
    left: 25px;
}

/* right */
.right-4 {
    right: 4px;
}

/* top */
.-top-4 {
    top: -4px;
}

/* bottom */
.-bottom-96 {
    bottom: -96px;
}

/* vertical-center */
.vertical-center {
    vertical-align: middle;
}

/* position */
.position-stisky {
    position: sticky;
}

/* line height */
.lh-20 {
    line-height: 20px;
}

/* resize */
.resize-none {
    resize: none;
}

.appearance-none {
    appearance: none;
}

/* border */
.border-main {
    border: 1px solid var(--color-primary);
}

.border-gray {
    border: 1px solid var(--color-gray);
}

.border-b-gray {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.border-t-gray {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.border-l-gray {
    border-left: 1px solid var(--color-gray);
}

.border-t-gray2 {
    border-top: 1px solid #f3f4f6;

}

.border-b-gray2 {
    border-bottom: 1px solid #f3f4f6;

}

.border-b-gray-2 {
    border-bottom: 1px solid #e5e7eb;
}

.border-gray-2 {
    border: 2px solid var(--color-gray);
}

.border-gray-3 {
    border: 1px solid e5e7eb;
}

.border-blue-2 {
    border: 2px solid #2056e0;
}

.border-gray-3 {
    border: 1px solid #eef0f2;
}

/* background */
.bg-main {
    background-color: var(--color-primary);
}

.bg-gray {
    background-color: rgba(255, 255, 255, 0.2);
}

.bg-blue {
    background-color: #2159e2;
}

.bg-gradient-1 {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #2462ea 0%, #1f52dc 100%);
}

/* box shadow */
.shadow-1 {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.shadow-2 {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shadow-3 {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* border radius */
.rounded-6 {
    border-radius: 6px;
}

.rounded-8 {
    border-radius: 8px !important;
}

.rounded-12 {
    border-radius: 12px;
}

.rounded-16 {
    border-radius: 16px;
}

/* outline-none */
.outline-none {
    outline: none;
}

/* opacity */
.opacity-none {
    opacity: 0;
}

/* scroll */
.hiddenScroll::-webkit-scrollbar {
    width: 1px;
    /* Width of the scrollbar */
    height: 1px;
    /* Height for horizontal scrollbar */
}

/* The scrollbar track */
.hiddenScroll::-webkit-scrollbar-track {
    background: transparent;
    /* Light gray background */
    border-radius: 10px;
    /* Rounded corners */
}

/* The scrollbar thumb (the draggable part) */
.hiddenScroll::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #eaeff7, transparent);
    /* Gradient effect */
    border-radius: 10px;
    /* Rounded corners */
    border: 3px solid transparent;
    /* Space around the thumb */
}

/* The scrollbar thumb on hover */
.hiddenScroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #eaeff7, transparent);
    /* Darker gradient on hover */
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: thin;
    /* Thin scrollbar */
    scrollbar-color: #eaeff7 transparent;
    /* Thumb and track colors */
}

/* input number */
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0;
}

/* hover */
.cardhover,
.btnhover1,
.btnhover2,
.btnhover2 svg,
.cardhover2,
.btnhover3,
.btnhover3 svg {
    transition: all .4s;
}

/* .cardhover:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
} */

.cardhover2:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
    transform: translateY(-5px);
}

.btnhover1:hover {
    background: linear-gradient(135deg, #1f52dc 0%, #2462ea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btnhover2:hover {
    background-color: #f3f4f6;
}

.btnhover2:hover svg {
    color: #2563eb;
}

.btnhover3:hover {
    background-color: #2563eb !important;
}

.btnhover3:hover svg {
    color: #f3f4f6;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #2563eb;
    border-color: #2563eb;
}

/* swiper */
.swiper-button-next::after,
.swiper-button-prev::after {
    color: white;
}

/* select2 */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: red !important;
}

.select2-container {
    width: 100% !important;
    z-index: 9999 !important;
}

.select2-dropdown {
    z-index: 9999 !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid var(--color-gray) !important;
    height: 48px !important;
    border-radius: 12px;
}

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    height: 100%;
    padding-top: 6px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 9px !important;
}
.select2-container--default .select2-selection--multiple {
    border-radius: 12px;
    height: 48px;
    border: 1px solid var(--color-gray) !important;
}
/* folder */

.folder-container {
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.folderBtn {
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 15px;
}

.folderBtn:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
}

.folderContent {
    transition: all 0.3s ease;
}

.file-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background-color: #f1f5f9;
}

.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.5rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-action {
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 500;
}

.date-section {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.date-section.bg-light {
    background-color: #f8fafc !important;
}

.folder-view {
    display: none;
}

.folder-view.active {
    display: block;
}

.folder-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.folder-grid .folderBtn {
    width: 120px;
    text-align: center;
}

.back-btn {
    background-color: #e9ecef;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background-color: #dee2e6;
}

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

.upload-btn {
    position: relative;
    overflow: hidden;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}

.upload-btn input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
/* dropdown */
.dropdown-toggle::after {
  content: none;
}
/* tab */
.tab {
    color: #6b7280;
    cursor: pointer;
}

.tab.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    font-weight: bold;
}

.tab:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    box-shadow: none;
    font-weight: bold;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    color: #fff !important;
    background-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nav-pills .nav-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb !important;
}

/* sidebar */
#sidebar {
    height: 100vh;
    overflow: auto;
    background-color: #2c3e50;
}

#sidebar a:hover,
#sidebar a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white !important;
    opacity: 100%;
    font-weight: bold;
}

#sidebar a svg {
    transition: all .4s;
}

#sidebar a:hover svg,
#sidebar a.active svg {
    transform: scale(1.1);
}

/* share page */

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.image-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.image-preview {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

.comment-form {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

/* new design button */

.fab-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    z-index: 100;
}

.fab-button:hover {
    transform: scale(1.1);
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* td */

td {
    vertical-align: middle;
}

/* login */

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.login-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    color: var(--gray-800);
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #235fe7 0%, #1e4fd9 100%);
}

.login-body {
    padding: 2rem;
    background: white;
}

/* responsive */
@media (max-width: 1200px) {}

@media (max-width: 992px) {
    #sidebar {
        position: fixed;
        height: 100%;
        left: -300px;
        top: 0;
        bottom: 0;
        transition: all .4s;
        z-index: 20;
    }

    #sidebar.active {
        left: 0;
    }

    #overlay {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.288);
        transition: all .4s;
        opacity: 0;
        visibility: hidden;
        z-index: 10;
    }

    #overlay.active {
        opacity: 100%;
        visibility: visible;
    }

    .h-lg-auto {
        height: auto;
    }
}

@media (max-width: 768px) {
    .w-md-100 {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .w-sm-auto {
        width: auto;
    }

    .h-sm-auto {
        height: auto;
    }

    .w-sm-100 {
        width: 100%;
    }

    .fs-sm-12 {
        font-size: 12px;
    }

    .fs-sm-24 {
        font-size: 24px;
    }
}

@media (max-width: 400px) {}