/* ===== المتغيرات العامة ===== */
:root {
    --primary: #0F766E;
    --primary-dark: #0D5E56;
    --primary-light: #14B8A6;
    --secondary: #0369A1;
    --accent: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --dark: #1F2937;
    --gray: #6B7280;
    --light: #F3F4F6;
    --white: #FFFFFF;
    --border-radius: 12px;
    --box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    --box-shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== شريط التنقل ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-light);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.logo-sub {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray);
    margin-right: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.user-profile {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition);
}

.user-avatar:hover {
    transform: scale(1.1);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 200px;
    display: none;
    margin-top: 0.5rem;
    overflow: hidden;
}

.user-profile:hover .user-dropdown {
    display: block;
}

.user-info {
    padding: 1rem;
    border-bottom: 1px solid var(--light);
}

.user-name {
    font-weight: 700;
    display: block;
}

.user-role {
    font-size: 0.875rem;
    color: var(--gray);
}

.dropdown-menu a {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--light);
    color: var(--danger);
}

/* ===== قسم البطل ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="8" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="12" fill="rgba(255,255,255,0.08)"/><circle cx="30" cy="80" r="10" fill="rgba(255,255,255,0.06)"/><circle cx="80" cy="70" r="15" fill="rgba(255,255,255,0.04)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero-title span {
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s 0.4s backwards;
}

.btn-primary, .btn-outline {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

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

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ===== الأقسام العامة ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* ===== بطاقات المميزات ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
}

/* ===== قسم الملفات الحديثة ===== */
.recent-files-section {
    background: var(--white);
}

.recent-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.file-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.file-card:hover {
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--box-shadow-sm);
}

.file-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.file-info {
    flex: 1;
}

.file-info h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.file-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.file-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.file-badge.public {
    background: var(--success);
    color: var(--white);
}

.file-badge.private {
    background: var(--warning);
    color: var(--white);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* ===== قسم التواصل ===== */
.contact-section {
    background: linear-gradient(135deg, var(--dark), #111827);
    color: var(--white);
    padding: 4rem 0;
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===== التذييل ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.copyright {
    color: var(--gray);
}

/* ===== صفحة تسجيل الدخول ===== */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.auth-box {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.5s;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--light);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--gray);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.875rem;
    border: 2px solid var(--light);
    border-radius: var(--border-radius);
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    font-size: 1rem;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--light);
}

.auth-divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--gray);
    position: relative;
}

#googleSignIn {
    display: flex;
    justify-content: center;
}

.auth-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
}

.auth-message.success {
    display: block;
    background: var(--success);
    color: var(--white);
}

.auth-message.error {
    display: block;
    background: var(--danger);
    color: var(--white);
}

/* ===== صفحة الملفات ===== */
.files-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.files-header h1 {
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.files-section {
    margin-bottom: 3rem;
}

.files-section h2 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.file-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light);
    position: relative;
}

.file-item:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-3px);
}

.file-item-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.file-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

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

.file-item-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.file-item-meta {
    font-size: 0.875rem;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

.btn-icon {
    flex: 1;
    padding: 0.5rem;
    border: none;
    background: var(--light);
    color: var(--dark);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.btn-icon.danger:hover {
    background: var(--danger);
}

/* ===== مودال رفع الملفات ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.close:hover {
    color: var(--danger);
}

/* ===== لوحة التحكم ===== */
.admin-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--light);
    flex-wrap: wrap;
}

.tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--gray);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab:hover {
    background: var(--light);
    color: var(--dark);
}

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

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

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

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

.users-list, .files-list {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
}

.list-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.list-item:hover {
    background: var(--light);
}

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

.item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 0.875rem;
    transition: var(--transition);
}

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

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

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

/* ===== حاسبة ضريبة القيمة المضافة ===== */
.vat-calculator {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow-sm);
}

.upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    border: 3px dashed var(--primary-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(15, 118, 110, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.upload-note {
    color: var(--gray);
    font-size: 0.875rem;
}

.manual-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: var(--dark);
}

.input-group input {
    padding: 0.75rem;
    border: 2px solid var(--light);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.summary-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.summary-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

#dataTable {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

#dataTable th {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: right;
}

#dataTable td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--light);
}

#dataTable tr:hover {
    background: var(--light);
}

.balance-section {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.balance-row:last-child {
    border-bottom: none;
}

.balance-row.final {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

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

.saved-files-section {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.saved-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.file-item {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.file-action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
}

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

.file-action-btn.delete {
    background: var(--danger);
    color: var(--white);
}

/* ===== الإحصائيات ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card-large {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    text-align: center;
}

.stat-card-large .stat-value {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card-large .stat-label {
    font-size: 1.1rem;
    color: var(--gray);
}

/* ===== الرسوم المتحركة ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* ===== التصميم المتجاوب ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .files-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .tab {
        justify-content: center;
    }
}

/* ===== تنسيقات إضافية ===== */
.no-files {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    font-size: 1.1rem;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* تنسيق رسائل التنبيه */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s;
}

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

.alert-error {
    background: var(--danger);
    color: var(--white);
}

.alert-warning {
    background: var(--warning);
    color: var(--white);
}

.alert-info {
    background: var(--info);
    color: var(--white);
}
/* ===== إضافات لصفحة الملفات ===== */

.files-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.files-page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
}

.header-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-content p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* شريط الأدوات */
.files-toolbar {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow-sm);
}

.search-section {
    margin-bottom: 1rem;
}

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

.search-box.large input {
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
}

.filter-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--light);
    border-radius: var(--border-radius);
    font-family: 'Cairo', sans-serif;
    background: var(--white);
    min-width: 180px;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-right: auto;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--light);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* علامات التبويب */
.files-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light);
}

.file-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--gray);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.file-tab:hover {
    color: var(--primary);
}

.file-tab.active {
    color: var(--primary);
}

.file-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-count {
    background: var(--light);
    color: var(--dark);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.file-tab.active .tab-count {
    background: var(--primary);
    color: var(--white);
}

/* إحصائيات سريعة */
.files-stats {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.file-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
}

.file-stat-item i {
    color: var(--primary);
}

/* عرض الشبكة */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.file-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light);
    overflow: hidden;
}

.file-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.file-card-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light);
    position: relative;
}

.file-type-icon {
    font-size: 2rem;
    color: var(--primary);
}

.file-actions-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 180px;
    display: none;
    z-index: 100;
    overflow: hidden;
}

.dropdown-menu a {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--light);
}

.dropdown-menu a.text-warning {
    color: var(--warning);
}

.dropdown-menu a.text-danger {
    color: var(--danger);
}

.file-card-body {
    padding: 1rem;
}

.file-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-description {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.file-card-footer {
    padding: 1rem;
    background: var(--light);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.file-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.file-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.badge.private {
    background: var(--warning);
    color: var(--white);
}

.badge.category {
    background: var(--primary-light);
    color: var(--white);
}

.file-stats {
    display: flex;
    justify-content: space-around;
    font-size: 0.875rem;
    color: var(--gray);
}

/* عرض القائمة */
.files-list-view .data-table {
    width: 100%;
}

.file-info-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-info-cell i {
    font-size: 1.5rem;
    color: var(--primary);
}

.file-info-cell div {
    display: flex;
    flex-direction: column;
}

.file-info-cell small {
    color: var(--gray);
    font-size: 0.875rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* مودال رفع الملفات */
.modal-xlarge {
    max-width: 1200px;
}

.upload-modal-content {
    padding: 1rem 0;
}

.upload-dropzone {
    border: 3px dashed var(--primary-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light);
    margin-bottom: 1.5rem;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(15, 118, 110, 0.05);
}

.upload-dropzone i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-dropzone h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.upload-dropzone p {
    color: var(--gray);
    font-size: 0.875rem;
}

.selected-file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.selected-file-info i {
    font-size: 2rem;
    color: var(--primary);
}

.selected-file-info div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upload-progress {
    margin: 1.5rem 0;
}

.progress-bar {
    height: 8px;
    background: var(--light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
    width: 0%;
}

/* مودال المعاينة */
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light);
}

.preview-actions {
    display: flex;
    gap: 0.5rem;
}

.preview-content {
    min-height: 400px;
    max-height: 70vh;
    overflow: auto;
}

.file-preview-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.file-preview-placeholder i {
    margin-bottom: 1rem;
}

.file-preview-placeholder p {
    margin-bottom: 1.5rem;
}

/* مودال المشاركة */
.share-section {
    margin-bottom: 2rem;
}

.share-section h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.share-link-box {
    display: flex;
    gap: 0.5rem;
}

.share-link-box input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--light);
    border-radius: var(--border-radius);
    font-family: 'Cairo', sans-serif;
}

.shared-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--light);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

/* تفاصيل الملف */
.file-details {
    padding: 1rem;
}

.detail-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    width: 150px;
    color: var(--dark);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--primary-light);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* رسالة لا توجد ملفات */
.no-files-message {
    text-align: center;
    padding: 4rem;
    color: var(--gray);
}

.no-files-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-files-message h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* ترقيم الصفحات */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    width: 40px;
    height: 40px;
    border: 2px solid var(--light);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}

.pagination button:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

/* ===== إضافات لوحة التحكم ===== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    display: block;
}

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
}

.stat-trend {
    display: block;
    font-size: 0.75rem;
    color: var(--success);
    margin-top: 0.25rem;
}

.admin-tabs-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
}

.admin-tabs {
    display: flex;
    gap: 0;
    background: var(--light);
    border-bottom: 2px solid rgba(0,0,0,0.05);
    overflow-x: auto;
}

.admin-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--gray);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    position: relative;
}

.admin-tab:hover {
    color: var(--primary);
    background: rgba(15, 118, 110, 0.05);
}

.admin-tab.active {
    color: var(--primary);
    background: var(--white);
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.admin-tab-contents {
    padding: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow-sm);
    border: 1px solid var(--light);
}

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

.dashboard-card h3 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-card {
    min-height: 300px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light);
    border-radius: var(--border-radius);
}

.activity-log {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--light);
}

.activity-icon {
    width: 35px;
    height: 35px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.activity-content {
    flex: 1;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--gray);
}

.section-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

.data-table th {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: right;
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--light);
}

.data-table tbody tr:hover {
    background: var(--light);
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

/* إعدادات النظام */
.settings-container {
    max-width: 800px;
}

.settings-section {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.settings-section h3 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* التقارير */
.reports-container {
    padding: 1rem 0;
}

.report-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.report-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

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

.report-card h3 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* رسوم متحركة */
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .files-page-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .filter-section {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .view-toggle {
        margin-right: 0;
        justify-content: center;
    }
    
    .files-tabs {
        overflow-x: auto;
    }
    
    .files-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-tabs {
        flex-wrap: nowrap;
    }
    
    .section-actions {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
    }
}

/* الطباعة */
@media print {
    .navbar,
    .files-toolbar,
    .files-tabs,
    .files-stats,
    .pagination,
    .btn-primary,
    .btn-secondary,
    .action-buttons,
    .file-actions-dropdown {
        display: none !important;
    }
    
    .files-page-container {
        padding: 0;
    }
    
    .file-card {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
}
/* ===== المتغيرات الأساسية ===== */
:root {
    --navy: #0A1929;
    --navy-light: #1A2A4A;
    --navy-dark: #051020;
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --gold-dark: #996515;
    --white: #FFFFFF;
    --white-off: #F8F9FA;
    --gray-light: #E9ECEF;
    --gray: #6C757D;
    --gray-dark: #343A40;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;
    
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --box-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background: var(--white-off);
    color: var(--navy);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== صفحة المصادقة ===== */
.auth-page {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 3px solid var(--gold);
}

.logo-icon i {
    font-size: 2.5rem;
    color: var(--gold);
}

.auth-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.auth-logo h1 span {
    color: var(--gold);
}

.auth-logo p {
    color: var(--gray);
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-light);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    color: var(--gray);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
}

.auth-tab.active {
    color: var(--navy);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    right: 1rem;
    color: var(--gray);
    font-size: 1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 0.875rem 2.75rem 0.875rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--gray);
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.auth-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.auth-message.success {
    display: block;
    background: var(--success);
    color: var(--white);
}

.auth-message.error {
    display: block;
    background: var(--danger);
    color: var(--white);
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
    text-align: center;
}

.auth-footer p {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.demo-accounts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--white-off);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
}

.demo-accounts span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    font-size: 0.85rem;
}

.demo-accounts i {
    color: var(--gold);
}

/* ===== شريط التنقل ===== */
.navbar {
    background: var(--navy);
    box-shadow: var(--box-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
}

.logo i {
    font-size: 1.8rem;
    color: var(--gold);
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-light);
    margin-right: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-light);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.nav-menu a.active {
    background: var(--gold);
    color: var(--navy-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.user-profile {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--navy-light), var(--navy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    border: 2px solid var(--gold);
    transition: var(--transition);
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow);
    min-width: 220px;
    display: none;
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

.user-profile:hover .user-dropdown {
    display: block;
}

.user-info {
    padding: 1rem;
    background: var(--navy);
    color: var(--white);
}

.user-info span {
    display: block;
}

.user-info span:first-child {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.user-info span:last-child {
    font-size: 0.8rem;
    color: var(--gold);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-light);
}

.user-dropdown a {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--white-off);
    color: var(--danger);
}

/* ===== قسم البطل للصفحة الرئيسية ===== */
.hero-home {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-home::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

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

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray-light);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.stat-item i {
    font-size: 2rem;
    color: var(--gold);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-light);
}

/* ===== الأقسام العامة ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

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

.view-all {
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--gold);
    gap: 0.75rem;
}

/* ===== شبكة الخدمات ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--gold);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--gold);
    font-size: 2rem;
    border: 2px solid var(--gold);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--navy);
}

.service-card p {
    color: var(--gray);
}

/* ===== شبكة الملفات ===== */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.file-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.file-card:hover {
    box-shadow: var(--box-shadow);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.file-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.file-card-header i {
    font-size: 2rem;
    color: var(--navy);
}

.file-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.file-badge.public {
    background: var(--success);
    color: var(--white);
}

.file-badge.private {
    background: var(--warning);
    color: var(--navy-dark);
}

.file-card h4 {
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.file-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.file-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.file-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== حالة فارغة ===== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    background: var(--white);
    border-radius: var(--border-radius);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* ===== التذييل ===== */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 2rem 0;
    border-top: 2px solid var(--gold);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo i {
    color: var(--gold);
    font-size: 1.5rem;
}

.copyright {
    color: var(--gray-light);
}

/* ===== صفحة الملفات ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.page-header h1 {
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.files-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    color: var(--gray);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.tab-btn:hover {
    border-color: var(--gold);
    color: var(--navy);
}

.tab-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--gold);
}

.files-container {
    min-height: 400px;
}

/* ===== مودال ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--gold);
}

.close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.close:hover {
    color: var(--danger);
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: var(--navy);
    padding-left: 2rem;
}

/* ===== نماذج ===== */
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-family: 'Cairo', sans-serif;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* ===== لوحة التحكم ===== */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-content {
    display: none;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    text-align: center;
    border: 1px solid var(--gray-light);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.stat-box h3 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: var(--gray);
}

.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
}

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

.data-table th {
    background: var(--navy);
    color: var(--white);
    padding: 1rem;
    text-align: right;
    white-space: nowrap;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.data-table tbody tr:hover {
    background: var(--white-off);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.admin {
    background: var(--danger);
    color: var(--white);
}

.badge.user {
    background: var(--info);
    color: var(--white);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 35px;
    height: 35px;
    border: none;
    background: var(--white-off);
    border-radius: var(--border-radius-sm);
    color: var(--navy);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--navy);
    color: var(--gold);
}

.btn-icon.danger:hover {
    background: var(--danger);
    color: var(--white);
}

/* ===== حاسبة الضريبة ===== */
.upload-area {
    border: 3px dashed var(--gold);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white-off);
    margin-bottom: 2rem;
}

.upload-area:hover {
    border-color: var(--navy);
    background: rgba(10, 25, 41, 0.02);
}

.upload-area i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.manual-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: var(--navy);
}

.input-group input {
    padding: 0.75rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
}

.vat-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.vat-card {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.vat-card h4 {
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.vat-card p {
    font-size: 1.5rem;
    font-weight: 700;
}

.vat-balance {
    background: var(--gold);
    color: var(--navy-dark);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 2rem;
}

.vat-balance p {
    font-size: 1.25rem;
    font-weight: 700;
}

.vat-balance span {
    font-size: 2rem;
    display: block;
    margin-top: 0.5rem;
}

/* ===== تصميم متجاوب ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .files-tabs {
        justify-content: center;
    }
}

/* ===== تحميل ===== */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

.text-center {
    text-align: center;
}

.file-info-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-info-cell i {
    color: var(--navy);
    font-size: 1.2rem;
}
/* ===== تنسيقات صفحة الملفات المحسنة ===== */

.search-section {
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-box input {
    width: 100%;
    padding: 0.875rem 2.75rem 0.875rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.tab-count {
    background: var(--gray-light);
    color: var(--navy);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.tab-btn.active .tab-count {
    background: var(--gold);
    color: var(--navy-dark);
}

.file-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.file-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.file-badge.public {
    background: var(--success);
    color: var(--white);
}

.file-badge.private {
    background: var(--warning);
    color: var(--navy-dark);
}

.file-badge.owner {
    background: var(--info);
    color: var(--white);
}

.file-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0.75rem 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-stats {
    display: flex;
    gap: 1rem;
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.85rem;
    color: var(--gray);
}

.file-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.required {
    color: var(--danger);
}

small {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray);
    font-size: 0.8rem;
}

.upload-progress {
    margin: 1rem 0;
}

.progress-bar {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.3s;
    width: 0%;
}

#progressText {
    font-size: 0.9rem;
    color: var(--gray);
}

.modal-large {
    max-width: 900px;
    width: 95%;
}

/* تحسينات للبطاقات */
.file-card {
    display: flex;
    flex-direction: column;
}

.file-card .file-actions {
    margin-top: auto;
}

/* حالة الملفات الفارغة */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 2px dashed var(--gray-light);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
/* ===== تنسيقات المجلدات ===== */
.folders-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.folder-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--box-shadow-sm);
    border: 2px solid transparent;
    transition: var(--transition);
}

.folder-card.public {
    border-color: var(--success);
}

.folder-card.private {
    border-color: var(--warning);
}

.folder-card i {
    font-size: 2.5rem;
}

.folder-card.public i {
    color: var(--success);
}

.folder-card.private i {
    color: var(--warning);
}

.folder-details h3 {
    margin-bottom: 0.25rem;
    color: var(--navy);
}

.folder-details p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.folder-count {
    font-weight: 600;
    color: var(--navy);
}

/* اختيار المجلد في المودال */
.folder-select {
    display: flex;
    gap: 1rem;
}

.folder-option {
    flex: 1;
    cursor: pointer;
}

.folder-option input {
    display: none;
}

.folder-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.folder-label.public {
    border-color: var(--success);
}

.folder-label.private {
    border-color: var(--warning);
}

.folder-option input:checked + .folder-label {
    background: var(--navy);
    color: var(--white);
    border-color: var(--gold);
}

.folder-option input:checked + .folder-label i {
    color: var(--gold);
}

.folder-label i {
    font-size: 1.2rem;
}

/* بطاقة الملف */
.file-card.public-file {
    border-right: 4px solid var(--success);
}

.file-card.private-file {
    border-right: 4px solid var(--warning);
}

.file-badge.public {
    background: var(--success);
    color: var(--white);
}

.file-badge.private {
    background: var(--warning);
    color: var(--navy-dark);
}
