/* EducaXD - Student Management Styles */

/* Modal Base */
#studentModal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-title {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8em;
}

/* Student Modal Container */
.students-list-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 20px;
}

/* Student Item */
.student-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.student-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Student Header - Name and Report Toggle */
.student-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.student-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

/* Toggle Switch for Daily Report */
.student-report-toggle {
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:focus + .slider {
    box-shadow: 0 0 1px #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-size: 0.9em;
    color: #555;
}

/* Student Goals Section */
.student-goals {
    margin-top: 10px;
}

.student-goals label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.goals-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.goals-textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Modal Actions */
.modal-actions {
    text-align: right;
    margin-top: 15px;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button.primary {
    background-color: #4CAF50;
    color: white;
}

.button.primary:hover {
    background-color: #45a049;
}

.button.primary:disabled {
    background-color: #a5d6a7;
    cursor: not-allowed;
}

.button.secondary {
    background-color: #f1f1f1;
    color: #333;
}

.button.secondary:hover {
    background-color: #e7e7e7;
}

/* Loading and Error States */
.loading-students, 
.no-students, 
.error-message {
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}

.loading-students {
    color: #4285f4;
    font-style: italic;
}

.no-students {
    color: #666;
    font-style: italic;
}

.error-message {
    color: #d32f2f;
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #ffcdd2;
}

/* Message Types */
.message.info {
    background-color: rgba(33, 150, 243, 0.2);
    color: #0d47a1;
    border: 1px solid #0d47a1;
}

.message.warning {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ff8f00;
    border: 1px solid #ff8f00;
}

/* Scrollbar Styling */
.students-list-container::-webkit-scrollbar {
    width: 6px;
}

.students-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.students-list-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.students-list-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .student-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .student-report-toggle {
        margin-top: 10px;
    }
} 