/* Teacher Date Changer Styles */

.entkreis-change-date-link {
    font-size: 12px;
    color: #1ba747;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
    transition: color 0.2s;
}

.entkreis-change-date-link:hover {
    color: #158a38;
    text-decoration: underline;
}

/* Modal Overlay */
.entkreis-teacher-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.entkreis-teacher-modal-overlay.active {
    display: flex;
}

/* Modal */
.entkreis-teacher-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.entkreis-teacher-modal-header {
    padding: 20px;
    border-bottom: 1px solid #dcdcde;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1ba747;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.entkreis-teacher-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.entkreis-teacher-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    opacity: 0.8;
}

.entkreis-teacher-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.entkreis-teacher-modal-body {
    padding: 20px;
}

.entkreis-teacher-modal-body .info-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f1;
}

.entkreis-teacher-modal-body .info-row:last-of-type {
    border-bottom: none;
}

.entkreis-teacher-modal-body .info-label {
    font-weight: 600;
    color: #1ba747;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.entkreis-teacher-modal-body .info-value {
    color: #333;
    font-size: 15px;
}

.entkreis-teacher-modal-body .date-selection {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f1;
}

.entkreis-teacher-modal-body .date-selection label {
    font-weight: 600;
    color: #1ba747;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.entkreis-teacher-modal-body .reason-field {
    margin-top: 15px;
}

.entkreis-teacher-modal-body .reason-field label {
    font-weight: 600;
    color: #1ba747;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.entkreis-teacher-modal-body .reason-field textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.entkreis-teacher-modal-body .reason-field textarea:focus {
    outline: none;
    border-color: #1ba747;
    box-shadow: 0 0 0 1px #1ba747;
}

.entkreis-teacher-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #dcdcde;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f6f7f7;
    border-radius: 0 0 8px 8px;
}

.entkreis-teacher-modal-footer .button {
    margin: 0 !important;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: none;
}

.entkreis-teacher-modal-footer .button-cancel {
    background: #f0f0f1;
    color: #333;
}

.entkreis-teacher-modal-footer .button-cancel:hover {
    background: #dcdcde;
}

.entkreis-teacher-modal-footer .button-primary {
    background: #1ba747;
    color: #fff;
}

.entkreis-teacher-modal-footer .button-primary:hover {
    background: #158a38;
}

.entkreis-teacher-modal-footer .button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading State */
.entkreis-teacher-loading {
    text-align: center;
    padding: 20px;
    color: #646970;
}

.entkreis-teacher-loading:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f0f0f1;
    border-top-color: #1ba747;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.entkreis-teacher-message {
    padding: 12px 15px;
    margin: 0 0 15px 0;
    border-left: 4px solid;
    border-radius: 4px;
    display: none;
}

.entkreis-teacher-message.active {
    display: block;
}

.entkreis-teacher-message.success {
    background: #edfaef;
    border-color: #1ba747;
    color: #1ba747;
}

.entkreis-teacher-message.error {
    background: #fcf0f1;
    border-color: #d63638;
    color: #d63638;
}

/* Responsive */
@media (max-width: 782px) {
    .entkreis-teacher-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .entkreis-teacher-modal-footer {
        flex-direction: column;
    }
    
    .entkreis-teacher-modal-footer .button {
        width: 100%;
    }
}
