body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #6e7bff, #8b3eff);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    color: #fff;
    background-attachment: fixed;
}

form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    margin: 10px auto;
    color: #333;
    box-sizing: border-box;
    position: relative;
}

form h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #444;
    font-weight: bold;
    text-align: center;
}

input, select, button {
    width: 100%;
    padding: 12px 30px 12px 12px;
    margin: 8px 0;
    border-radius: 8px;
    border: 2px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input:focus, select:focus, button:focus {
    border-color: #ff7f50;
    outline: none;
}

input, select {
    background: #f9f9f9;
}

button {
    background: #ff7f50;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 12px;
}

button:hover {
    background-color: #ff4500;
}

select {
    background: #f1f1f1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

@-moz-document url-prefix() {
    select {
        text-indent: 0.01px;
        text-overflow: '';
    }
}

select::-ms-expand {
    display: none;
}

.form-container {
    max-width: 800px;
    margin: 1px auto;
    padding-top: 50px;
}

.form-container p {
    font-size: 16px;
    text-align: center;
    color: #999;
}

.file-upload {
    position: relative;
    margin: 20px 0;
    padding: 30px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    background-color: #f9f9f9;
    cursor: pointer;
}

.file-upload:hover, .file-upload.dragover {
    border-color: #ff7f50;
    background-color: #f0f7ff;
}

.file-upload.dragover {
    background-color: #e1f0ff;
    border-color: #6e7bff;
}

.file-upload.dragover .file-upload-label {
    color: #6e7bff;
}

.file-upload.dragover .file-upload-label strong {
    display: none;
}

.file-upload.dragover .file-upload-label::after {
    content: "DROP ANYWHERE";
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #6e7bff;
    margin-top: 10px;
}

.file-upload-label {
    display: block;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
    pointer-events: none;
}

.file-upload-label strong {
    color: #ff7f50;
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.file-has-selected .file-upload-label strong {
    font-size: 12px;
    margin-bottom: 0;
}

.file-upload-label span {
    font-size: 14px;
    color: #999;
    display: block;
    margin-top: 5px;
}

.file-upload-label .file-info {
    display: none;
}

.file-upload-label .file-name {
    color: #ff7f50;
    font-weight: bold;
    display: block;
}

.file-upload-label .file-size {
    color: #ff7f50;
    font-weight: bold;
    font-size: 12px;
    display: block;
}

.file-upload-label .change-text {
    display: none;
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
}

.file-has-selected .main-instruction,
.file-has-selected .drag-instruction,
.file-has-selected .file-types,
.file-has-selected .preview-link-container {
    display: none;
}

.file-has-selected .file-info {
    display: block;
}

.file-has-selected .change-text {
    display: block;
}

.file-input-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-input-wrapper input[type="file"] {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.preview-link {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    font-weight: bold;
    text-decoration: none;
    color: #0077ff
}
.preview-link:hover{
    text-decoration: underline;
}

.progress-container {
    width: 100%;
    margin: 15px 0;
    display: none;
}

.progress-bar {
    height: 20px;
    background-color: #dddddd;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6e7bff, #8b3eff);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 
        0 0 3px #6e7bff,
        0 0 5px #6e7bff,
        0 0 7px #8b3eff,
        0 0 9px #8b3eff;
}

.message-success {
    color: rgb(39, 39, 39) !important;
    background-color: #00ffd5;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}

.message-error {
    color: white !important;
    background-color: #f44336;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}

.searchable-dropdown {
    position: relative;
    margin-bottom: 8px;
    width: 100%;
    font-size: 14px;
}

.searchable-dropdown-input {
    width: 100%;
    padding: 10px 30px 10px 12px;
    border-radius: 8px;
    border: 2px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #fff;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.searchable-dropdown-input:focus {
    border-color: #ff7f50;
    outline: none;
}

.searchable-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    font-size: 14px;
}

.searchable-dropdown-options.show {
    display: block;
}

.searchable-dropdown-option {
    padding: 8px 15px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.searchable-dropdown-option:last-child {
    border-bottom: none;
}

.searchable-dropdown-option:hover {
    background-color: #f5f5f5;
}

.searchable-dropdown-option.selected {
    background-color: #e1f0ff;
}

.searchable-dropdown-option.highlighted {
    background-color: #f0f0f0;
}
.readonly-field {
    background-color: #f9f9f9;
    cursor: not-allowed;
    color: #555;
    font-size: 14px;
    padding: 10px 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    width: 100%;
    margin: 8px 0;
    box-sizing: border-box;
}

.searchable-dropdown-input[readonly] {
    background-color: #f9f9f9;
    cursor: pointer;
}

.searchable-dropdown-input:not([readonly]) {
    background-color: #fff;
    cursor: text;
}

@media (max-width: 768px) {
    form {
        padding: 20px;
        max-width: 90%;
        margin: 20px auto;
    }

    form h3 {
        font-size: 24px;
    }

    input, select, button {
        font-size: 14px;
    }

    .form-container p {
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    form {
        padding: 30px;
        max-width: 450px;
    }

    form h3 {
        font-size: 20px;
    }

    input, select, button {
        font-size: 12px;
    }

    .form-container p {
        font-size: 12px;
    }
}


.teacher-name-input {
    transition: all 0.3s ease;
}

.teacher-name-input:disabled {
    background-color: #eeeeee;
    border-color: #dfe232;
    cursor: not-allowed;
}

.teacher-name-input:disabled::placeholder {
    color: #1fa4f1;
}