/* إعادة تعيين التنسيقات الافتراضية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* تنسيقات عامة */
body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    direction: rtl;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* تنسيق الهيدر */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #128C7E;
    font-size: 2.2rem;
    padding: 15px 0;
    border-bottom: 2px solid #25D366;
}

/* تنسيق النموذج */
form {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #075E54;
}

/* تنسيق قسم القوالب */
.template-parameter {
    margin-bottom: 10px;
    position: relative;
}

.btn {
    background-color: #128C7E;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
}

.btn:hover {
    background-color: #0C6B5D;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #128C7E;
    outline: none;
    box-shadow: 0 0 5px rgba(18, 140, 126, 0.3);
}

input[type="file"] {
    padding: 10px 0;
}

/* تنسيق أزرار النموذج */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

#send-btn {
    background-color: #25D366;
    color: white;
}

#send-btn:hover {
    background-color: #128C7E;
}

#reset-btn {
    background-color: #f1f1f1;
    color: #555;
}

#reset-btn:hover {
    background-color: #e0e0e0;
}

/* تنسيق الفوتر */
footer {
    text-align: center;
    margin-top: 30px;
    color: #777;
    font-size: 0.9rem;
}

/* تنسيقات متجاوبة */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    form {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    button {
        width: 100%;
    }
}

/* تنسيق رسائل الخطأ */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.error {
    border-color: #e74c3c !important;
}

.error + .error-message {
    display: block;
}

/* تنسيق رسالة النجاح */
.success-message {
    background-color: #25D366;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    display: none;
}