/**
 * CSS למנהל קורס הקלדה עברית
 */

/* עיצוב כללי */
.htc-admin-wrap {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
}

/* כרטיסי סטטיסטיקות */
.htc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.htc-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.htc-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.htc-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
}

/* כרטיסי מידע */
.htc-info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
    border-right: 5px solid #667eea;
    transition: box-shadow 0.3s ease;
}

.htc-info-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.htc-info-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* טבלאות */
.htc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.htc-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

.htc-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.htc-table tr:hover {
    background-color: #f8f9fa;
}

.htc-table tr:last-child td {
    border-bottom: none;
}

/* כפתורים */
.htc-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.htc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.htc-button-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.htc-button-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.htc-button-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.htc-button-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

/* טפסים */
.htc-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.htc-form-group {
    margin-bottom: 20px;
}

.htc-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.htc-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.htc-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.htc-form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* גרפים */
.htc-chart-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
    text-align: center;
}

.htc-chart-container h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

/* מודלים */
.htc-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.htc-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.htc-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.htc-close:hover {
    color: #333;
}

/* הודעות */
.htc-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
}

.htc-alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.htc-alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.htc-alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.htc-alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* כרטיסי תלמידים */
.htc-student-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 10px 0;
    border-right: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.htc-student-card:hover {
    transform: translateX(-5px);
}

.student-name {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

.student-email {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.student-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.student-stat {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
}

/* סרגל התקדמות */
.htc-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.htc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* כרטיסי שיעורים */
.htc-lesson-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 10px 0;
    border-left: 4px solid #28a745;
    transition: transform 0.3s ease;
}

.htc-lesson-card:hover {
    transform: translateX(5px);
}

.lesson-title {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
}

.lesson-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.lesson-stat {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

/* תגיות */
.htc-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.htc-badge-success {
    background-color: #d4edda;
    color: #155724;
}

.htc-badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.htc-badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.htc-badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* רספונסיביות */
@media (max-width: 768px) {
    .htc-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .htc-charts-section {
        grid-template-columns: 1fr;
    }
    
    .htc-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .htc-student-stats,
    .htc-lesson-stats {
        flex-direction: column;
        gap: 5px;
    }
}

/* אנימציות */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.htc-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* טעינה */
.htc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* עיצוב מיוחד לתעודות */
.certificate-preview {
    text-align: center;
    padding: 20px;
}

.certificate-preview h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 24px;
}

.certificate-preview p {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

.certificate-preview strong {
    color: #667eea;
    font-weight: 600;
} 