.teacher-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
}

.teacher-modal.tw-hidden {
    display: none !important;
}

.teacher-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity;
}

.teacher-modal-container {
    position: fixed;
    inset: 0;
    z-index: 10;
    overflow-y: auto;
}

.teacher-modal-content {
    display: flex;
    min-height: 100%;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
}

.teacher-modal-box {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 48rem;
    transform: translateY(0);
    transition: all;
    position: relative;
}

.teacher-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.close-teacher-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    background: white;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    transition: all 0.2s;
}

.close-teacher-modal:hover {
    background-color: #f3f4f6;
    transform: scale(1.1);
}

.close-teacher-modal svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #4b5563;
}

.teacher-modal-body {
    padding: 1.5rem;
}

.teacher-form-section {
    margin-bottom: 2rem;
}

.teacher-form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.teacher-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .teacher-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.teacher-form-full-width {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .teacher-form-full-width {
        grid-column: span 2;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-input {
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.form-select {
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.form-file {
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    font-size: 0.875rem;
    color: #6b7280;
}

.form-file::file-selector-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 0;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #eff6ff;
    color: #2563eb;
}

.form-file:hover::file-selector-button {
    background-color: #dbeafe;
}

.form-submit {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.form-submit:hover {
    background-color: #1d4ed8;
}

.form-submit:focus {
    outline: none;
    box-shadow: 0 0 0 2px #93c5fd;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    display: none;
}

.form-status.tw-hidden {
    display: none;
}

.required-field::after {
    content: "*";
    color: #ef4444;
    margin-left: 0.25rem;
} 