/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-section h3,
.form-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 24px;
}

/* University Form Styles */
.university-form {
    padding: 0;
}

.university-form .form-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Schedule Form Styles */
.schedule-form {
    padding: 20px;
}

.schedule-form .form-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.schedule-form .form-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.schedule-form .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.schedule-form .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.schedule-form .form-group:last-child {
    margin-bottom: 0;
}

.schedule-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 24px;
}

/* Department Form Styles */
.year-data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.year-data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.year-data-item label {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 4px;
}

.year-data-item input {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
}

.subject-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.subject-section h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

/* Responsive Forms */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 16px;
    }
    
    .schedule-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .schedule-form .form-row .form-group {
        margin-bottom: 16px;
    }
    
    .schedule-form {
        padding: 16px;
    }
    
    .schedule-form .form-section {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .schedule-form .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .schedule-form .form-actions button {
        margin-bottom: 8px;
    }
    
    .schedule-form .form-actions button:last-child {
        margin-bottom: 0;
    }
    
    .year-data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions button {
        margin-bottom: 8px;
    }
    
    .form-actions button:last-child {
        margin-bottom: 0;
    }
}