@font-face {
  font-family: Vazir;
  src: url('../fonts/Vazirmatn-Regular.eot');
  src: url('../fonts/Vazirmatn-Regular.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Vazirmatn-Regular.woff2') format('woff2'),
       url('../fonts/Vazirmatn-Regular.woff') format('woff'),
       url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: normal;
  font-display:swap;
}

@font-face {
  font-family: Vazir;
  src: url('../fonts/Vazirmatn-Bold.eot');
  src: url('../fonts/Vazirmatn-Bold.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Vazirmatn-Bold.woff2') format('woff2'),
       url('../fonts/Vazirmatn-Bold.woff') format('woff'),
       url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
  font-weight: bold;
  font-display:swap;
}

@font-face {
  font-family: Vazir;
  src: url('../fonts/Vazirmatn-Thin.eot');
  src: url('../fonts/Vazirmatn-Thin.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Vazirmatn-Thin.woff2') format('woff2'),
       url('../fonts/Vazirmatn-Thin.woff') format('woff'),
       url('../fonts/Vazirmatn-Thin.ttf') format('truetype');
  font-weight: 100;
  font-display:swap;
}

@font-face {
  font-family: Vazir;
  src: url('../fonts/Vazirmatn-Light.eot');
  src: url('../fonts/Vazirmatn-Light.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Vazirmatn-Light.woff2') format('woff2'),
       url('../fonts/Vazirmatn-Light.woff') format('woff'),
       url('../fonts/Vazirmatn-Light.ttf') format('truetype');
  font-weight: 300;
  font-display:swap;
}

@font-face {
  font-family: Vazir;
  src: url('../fonts/Vazirmatn-Medium.eot');
  src: url('../fonts/Vazirmatn-Medium.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Vazirmatn-Medium.woff2') format('woff2'),
       url('../fonts/Vazirmatn-Medium.woff') format('woff'),
       url('../fonts/Vazirmatn-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display:swap;
}

@font-face {
  font-family: Vazir;
  src: url('../fonts/Vazirmatn-Black.eot');
  src: url('../fonts/Vazirmatn-Black.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Vazirmatn-Black.woff2') format('woff2'),
       url('../fonts/Vazirmatn-Black.woff') format('woff'),
       url('../fonts/Vazirmatn-Black.ttf') format('truetype');
  font-weight: 900;
  font-display:swap;
}
body { background: linear-gradient(135deg, #f5f7fa, #c3cfe2); font-family: 'Vazir', sans-serif; }
            .login-box { max-width: 400px; padding: 2rem; border-radius: 0.75rem; background: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
            .login-box h2 { color: #2c3e50; }
            .btn-primary { background-color: #3498db; border-color: #3498db; }
            .btn-primary:hover { background-color: #2980b9; }
:root {
            --primary-color: #3498db;
            --secondary-color: #2ecc71;
            --error-color: #e74c3c;
            --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            --card-bg: #ffffff;
            --shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        body {
            font-family: 'Vazir', sans-serif;
            background: var(--bg-gradient);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 20px;
        }
        .container {
            max-width: 90%;
            width: 1000px;
            margin-top: 20px;
            padding: 25px;
            background: var(--card-bg);
            border-radius: 1rem;
            box-shadow: var(--shadow);
        }
        .file-table { display: table; }
        .file-list { display: none; }
        @media (max-width: 768px) {
            .file-table { display: none; }
            .file-list { display: block; }
            .container { padding: 15px; }
        }
        .file-item {
            border-bottom: 1px solid #eee;
            padding: 15px;
            background: #fafafa;
            border-radius: 0.5rem;
            margin-bottom: 10px;
        }
        .flag { border-radius: 5px;height: 25px; margin: 0 5px; }
        .flags a { text-decoration: none; }
        pre { white-space: pre-wrap; direction: ltr; text-align: left; }
        .edit-section, .preview-section {
            display: none;
            margin-top: 20px;
            padding: 15px;
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 0.5rem;
        }
        .ace_editor { height: 400px; width: 100%; }
        #searchInput, #createFolderForm, #createFileForm, #uploadForm {
            max-width: 500px;
            margin: 0 auto 15px;
        }
        #createFolderForm .form-control, #createFileForm .form-control {
            flex: 1;
        }
        #createFolderForm .btn, #createFileForm .btn {
            font-size:0.95rem;
        }
        @media (max-width: 768px) {
            #searchInput, #createFolderForm, #createFileForm, #uploadForm {
                max-width: 100%;
            }
            #createFolderForm .btn, #createFileForm .btn {
                width: 100px;
            }
        }
        .file-input-wrapper {
            position: relative;
            margin: 20px auto;
        }
        .file-drop-area {
            padding: 25px;
            border: 2px dashed #bbb;
            border-radius: 1rem;
            background: #f9f9f9;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .file-drop-area:hover, .file-drop-area.drag-over {
            border-color: var(--primary-color);
            background: #e6f4ea;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        .file-message {
            font-size: 1rem;
            color: #555;
        }
        .file-name {
            margin-top: 10px;
            font-size: 0.9rem;
            color: #333;
        }
        .page {
            text-align: center;
            margin: 10px auto;
        }
        .progress-container {
            margin: 10px 0;
            display: none;
        }
        .progress-bar {
            width: 100%;
            background: #ddd;
            border-radius: 0.5rem;
            overflow: hidden;
        }
        .progress {
            height: 20px;
            background: linear-gradient(45deg, var(--primary-color), #2980b9);
            width: 0%;
            transition: width 0.3s;
        }
        .progress-text {
            font-size: 0.9rem;
            margin-top: 5px;
        }
        .message { 
            font-size: 0.9rem; 
            margin-top: 10px; 
            color: var(--secondary-color); 
        }
        .error { 
            font-size: 0.9rem; 
            margin-top: 10px; 
            color: var(--error-color); 
        }
        hr.hr-13 {
            height: 10px;
            border: 0;
            box-shadow: 0 10px 10px -10px #8c8c8c inset;
        }
        hr {
            background-color: cornsilk;
            padding: 0;
            margin: 20px;
            border-radius: 50px;
            opacity: 1;
        }
        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }
        .btn-primary:hover {
            background-color: #2980b9;
            border-color: #2980b9;
        }
        .btn-success {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
        }
        .btn-success:hover {
            background-color: #27ae60;
            border-color: #27ae60;
        }
        .pagination {
            display: flex;
            justify-content: center;
            gap: 5px;
            margin-top: 20px;
        }
        .pagination a {
            color: var(--primary-color);
            padding: 8px 12px;
            text-decoration: none;
            border: 1px solid #ddd;
            border-radius: 0.25rem;
        }
        .pagination a:hover {
    background-color: #fcf5da;
    color: black;
}
        .pagination .active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        a.btn.btn-danger.logOut {
    color: white;
}
html[dir="ltr"] a.btn.btn-danger.logOut {
    float: right;
    direction: ltr;
}
html[dir="rtl"] a.btn.btn-danger.logOut {
    float: left;
    direction: rtl;
}
.text-primary {
    color: #2c3e50;
}
.link-primary {
    color: var(--primary-color);
}
.file-table th {
    color: #2c3e50;
}
.file-icon{
    height:30px;
}
.dark-blue{
    color:#2c3e50
}
.d-none{
    display:none;
}