/* التنسيقات العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* تنسيق الرأس */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffeb3b;
}

/* تنسيق المحتوى الرئيسي */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* تنسيق الجداول */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: right;
}

th {
    background-color: #667eea;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* تنسيق النماذج */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

input[type="text"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    border-color: #667eea;
    outline: none;
}

/* تنسيق الأزرار */
button {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

button:hover {
    background: #764ba2;
}

.btn-reset {
    background: #ff6b6b;
}

.btn-reset:hover {
    background: #ee5a5a;
}

/* تنسيق التذييل */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
    margin-top: 20px;
}

/* تنسيق تفاصيل التطبيق */
.app-details {
    background: #f8f9fa;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    border-right: 4px solid #667eea;
}

.hidden {
    display: none;
}

/* إضافات للصفحة الرئيسية */
.hero {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.students-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.student {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-right: 4px solid #667eea;
}

/* إضافات لنماذج الإدخال */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-submit {
    background: #28a745;
}

.btn-submit:hover {
    background: #218838;
}

small {
    color: #666;
    font-size: 12px;
}

/* إضافات لصفحة من نحن */
.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.contact-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.map-placeholder {
    background: #e9ecef;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
}

/* إضافات لصفحة التطبيقات */
.actions {
    text-align: center;
    margin: 30px 0;
}

.actions .btn {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.actions .btn:hover {
    background: #218838;
}
/* تنسيقات إضافية لتفاصيل التطبيقات */
.app-details {
    background: #f8f9fa;
    padding: 20px;
    margin: 10px 0;
    border-radius: 8px;
    border-right: 4px solid #667eea;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.app-header h3 {
    color: #333;
    margin: 0;
}

.app-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.app-logo.placeholder {
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}

.app-info p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.app-media {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.btn-details {
    background: #17a2b8;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-details:hover {
    background: #138496;
}

/* تحسينات للجدول */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: bold;
}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f5f5f5;
}

/* تحسينات للاستجابة */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        text-align: center;
    }
    
    .app-logo {
        margin-top: 10px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}