* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Lexend Deca", Arial, sans-serif;
    min-height: 100vh;
    background-color: #f8f9fa;
    color: #333;
}

.convert-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Drop Zone Styling */
.drop-zone {
    width: 100%;
    height: 18vh;
    margin: 0 auto 2rem;
    border: 2px dashed #8043db;
    border-radius: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #7338cd;
    background-color: #f8f9ff;
    transition: all 0.3s ease;
}

.drop-zone:hover {
    background-color: #f0f0ff;
    border-color: #6b2db8;
    transform: translateY(-2px);
}

.drop-zone.drag-over {
    background-color: #b994f44a;
}

.drop-zone i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.drop-zone p {
    margin: 0;
}

.drop-zone p i {
    font-size: 1rem;
    font-style: italic;
}

/* File Info Container */
.file-info-container {
    width: 100%;
    margin: 0 auto 2rem;
}

/* File Info Display */
.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #e8f5e8;
    border: 2px solid #28a745;
    border-radius: 0.75rem;
    width: 100%;
    min-height: 12vh;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 2rem;
    color: #28a745;
}

.file-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.file-size {
    font-size: 0.875rem;
    color: #666;
}

.remove-file-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.remove-file-btn:hover {
    background: #c82333;
}

.remove-file-btn i {
    font-size: 0.875rem;
}

/* Message Styling */
.message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Search Container */
.search-container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.unchange-data {
    margin-bottom: 2rem;
}

.input-container {
    display: flex;
    flex-direction: column;
}

.input-container label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4c4c4c;
    padding-left: .2rem;
}

.input-container input,
.input-container select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-container input:focus,
.input-container select:focus {
    outline: none;
    border-color: #8043db;
}

/* New Course Container */
.new-course-container {
    margin-bottom: 2rem;
}

.new-course-container h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.25rem;
}

.course-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.course-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-form-header h5 {
    margin: 0;
    color: #8043db;
    font-size: 1.1rem;
}

.course-data{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.remove-course-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.remove-course-btn:hover {
    background: #c82333;
}

.course-form .input-container {
    margin-bottom: 1rem;
}

.course-form .input-container:last-child {
    margin-bottom: 0;
}

/* Button Styling */
.form-button {
    margin-top: 1rem;
}

.add-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.add-btn:hover {
    background: #218838;
}

.button-container {
    text-align: center;
    margin-top: 2rem;
}

#exam-schedule {
    background: #8839cb;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(128, 67, 219, 0.3);
}

#exam-schedule:hover {
    background: #5c279c;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(128, 67, 219, 0.4);
}

/* Exam Results Styling */
.exam-results {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
}

.student-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.student-info p {
    margin: 0;
    font-size: 0.95rem;
}

.download-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: #138496;
}

.download-btn i {
    font-size: 0.9rem;
}

/* Table Styling */
.results-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
    position: sticky;
    top: 0;
}

tbody tr:hover {
    background-color: #f8f9ff;
}

tbody tr:nth-child(even) {
    background-color: #fafafa;
}

tbody tr:nth-child(even):hover {
    background-color: #f0f0ff;
}

/* Room cell styling */
.room-cell {
    font-weight: 600;
}

.room-number {
    color: #28a745;
    background-color: #d4edda;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.no-room {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.room-details {
    font-size: 0.8rem;
    color: #666;
    max-width: 200px;
    word-wrap: break-word;
}

/* Responsive Design */
@media (max-width: 768px) {
    .convert-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .search-container {
        padding: 1rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .student-info {
        margin: 1rem 0;
    }
    
    .download-btn {
        align-self: flex-start;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
    
    .drop-zone {
        height: 12vh;
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .drop-zone i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .add-btn {
        padding: 0.55rem 1rem;
    }

    #exam-schedule {
        padding: .9rem 1.4rem;
        font-size: 1rem;
    }

    .course-data{
        gap: 0rem;
    }
    
    .remove-course-btn {
        align-self: flex-end;
        padding: 0.3rem 0.75rem;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 0.5rem 0.25rem;
    }
}