/* التنسيق العام */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* الهيدر */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
}

/* القائمة */
nav {
    background-color: #34495e;
    padding: 10px 0;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

nav ul li a i {
    margin-left: 5px;
}

/* الأقسام الرئيسية */
main {
    padding: 30px 0;
}

section {
    margin-bottom: 40px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* قسم الملفات */
.filter-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-options select, .filter-options button {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.filter-options button {
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-options button:hover {
    background-color: #2980b9;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.file-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.file-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 10px;
}

.file-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.file-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.download-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #27ae60;
}

/* قسم الرفع */
.upload-area {
    border: 2px dashed #3498db;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.upload-area:hover {
    background-color: #f0f8ff;
}

.upload-area i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 15px;
}

.upload-area p {
    margin-bottom: 20px;
}

#file-input {
    display: none;
}

.file-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.file-options label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-options select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

#upload-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#upload-btn:hover {
    background-color: #2980b9;
}

.upload-progress {
    margin-top: 20px;
}

.progress-item {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-bar {
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #2ecc71;
    width: 0%;
    transition: width 0.3s;
}

/* الفوتر */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
}

/* التنسيق للغة العربية */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] nav ul li a i {
    margin-left: 0;
    margin-right: 5px;
}