// =================== style.css ===================
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 20px;
}

.header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.content {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.back-btn {
    background: #6c757d;
    margin-bottom: 20px;
    width: auto;
    padding: 10px 20px;
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.welcome-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.welcome-section h2 {
    color: #667eea;
    margin-bottom: 10px;
}

.file-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.file-section h3 {
    color: #333;
    margin-bottom: 15px;
}

.file-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.file-item, .student-item, .report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.file-item:last-child, .student-item:last-child, .report-item:last-child {
    border-bottom: none;
}

.file-info, .student-info {
    flex: 1;
}

.file-name, .student-info h4 {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.file-date {
    font-size: 12px;
    color: #666;
}

.file-actions, .student-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    background: #667eea;
    border: none;
    cursor: pointer;
}

.btn-success {
    background: #27ae60;
}

.btn-danger {
    background: #e74c3c;
}

.status-unread {
    background: #f39c12;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.status-read {
    background: #27ae60;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.admin-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-nav .btn {
    width: auto;
    padding: 10px 20px;
    flex: 1;
    min-width: 120px;
}

.admin-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.student-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 20px;
    border: 1px solid #e1e5e9;
}

.student-info p {
    margin: 5px 0;
    color: #666;
}

.student-info small {
    color: #999;
    font-style: italic;
}

.report-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    flex-direction: column;
    align-items: flex-start;
}

.report-item h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.report-item p {
    margin: 3px 0;
    color: #666;
}

@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
    }
    
    .admin-nav .btn {
        width: 100%;
    }
    
    .file-item, .student-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .file-actions, .student-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

