/*
 * קובץ CSS לעיצוב הטופס של יצירת התעודה
 * נתיב: wp-content/plugins/your-course-certificate/css/ycc-style.css
 */

.ycc-certificate-container {
    max-width: 600px; /* רוחב מקסימלי לטופס */
    margin: 20px auto; /* ממורכז בדף עם מרווח עליון ותחתון */
    padding: 20px; /* ריפוד פנימי */
    border: 1px solid #eee; /* מסגרת עדינה */
    border-radius: 8px; /* פינות מעוגלות */
    background-color: #f9f9f9; /* רקע בהיר */
    text-align: right; /* יישור טקסט לימין (עברית) */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* צל עדין לאלמנט */
}

.ycc-certificate-container p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.5;
    color: #333;
}

.ycc-certificate-container label {
    display: block; /* כל תווית בשורה משלה */
    margin-bottom: 8px; /* מרווח מתחת לתווית */
    font-weight: bold; /* טקסט מודגש */
    color: #555;
}

.ycc-certificate-container input[type="text"] {
    width: calc(100% - 20px); /* רוחב מלא פחות ריפוד */
    padding: 10px; /* ריפוד פנימי */
    margin-bottom: 15px; /* מרווח מתחת לשדה */
    border: 1px solid #ddd; /* מסגרת לשדה */
    border-radius: 5px; /* פינות מעוגלות לשדה */
    box-sizing: border-box; /* כלול ריפוד ומסגרת ברוחב הכולל */
    font-size: 1em;
    direction: rtl; /* כיוון כתיבה מימין לשמאל */
    text-align: right; /* יישור טקסט מימין לשמאל */
}

.ycc-certificate-container button {
    background-color: #0073aa; /* צבע כחול של וורדפרס */
    color: white; /* טקסט לבן */
    padding: 12px 25px; /* ריפוד לכפתור */
    border: none; /* ללא מסגרת */
    border-radius: 5px; /* פינות מעוגלות */
    cursor: pointer; /* סמן עכבר של יד */
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease; /* אנימציית מעבר צבע */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* צל עדין לכפתור */
}

.ycc-certificate-container button:hover {
    background-color: #005177; /* צבע כהה יותר במעבר עכבר */
}

.ycc-certificate-container button:disabled {
    background-color: #cccccc; /* צבע לא פעיל כשהכפתור מושבת */
    cursor: not-allowed; /* סמן עכבר של איסור */
}

#ycc-message {
    margin-top: 20px; /* מרווח מעל הודעות */
    font-weight: bold;
    text-align: center; /* ממורכז */
    padding: 10px;
    border-radius: 5px;
}

/* סגנונות ספציפיים להודעות */
#ycc-message[style*="color: red"] {
    background-color: #ffe0e0;
    border: 1px solid #ffaaaa;
}

#ycc-message[style*="color: blue"] {
    background-color: #e0f2f7;
    border: 1px solid #b3e0ed;
}

#ycc-message[style*="color: green"] {
    background-color: #e0ffe0;
    border: 1px solid #aaffaa;
}
