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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', system-ui, sans-serif;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    color: #1a1a1a;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

h1 {
    text-align: center;
    color: #0a0a0a;
    margin-bottom: 24px;
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Tab Styles */
.tab-container {
    margin-bottom: 20px;
}

.tab-nav {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-btn:hover {
    background: #374151;
    color: #ffffff;
}

.tab-btn.active {
    background: #111827;
    color: #ffffff;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.search-form {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    align-items: end;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background-color: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

select:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

button {
    background-color: #111827;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: fit-content;
}

button:hover:not(:disabled) {
    background-color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.schedule-result {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#scheduleTitle {
    color: #111827;
    margin-bottom: 24px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #e5e7eb;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

th {
    background-color: #f9fafb;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:hover {
    background-color: #f9fafb;
}

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

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

td:first-child {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

td:nth-child(2) {
    font-weight: 500;
    color: #059669;
}

td:last-child {
    color: #6b7280;
    font-size: 14px;
}

/* Optimal Class Indicators */
.optimal-badge {
    background: #10b981;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.not-optimal-badge {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.optimal-row {
    background-color: #f0fdf4 !important;
    border-left: 3px solid #10b981;
}

.optimal-row:hover {
    background-color: #dcfce7 !important;
}

.optimal-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.optimal-info p {
    margin: 0;
    color: #1e40af;
}

.no-result {
    background: #ffffff;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.no-result p {
    font-size: 1.125rem;
    color: #6b7280;
    font-weight: 400;
}

.error-message {
    padding: 12px 0;
    margin-top: 16px;
}

.error-message p {
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
    font-style: italic;
}

@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
    }
    
    .form-group {
        min-width: auto;
    }
    
    h1 {
        font-size: 1.875rem;
        margin-bottom: 32px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 12px 16px;
    }
    
    .tab-btn {
        font-size: 13px;
        padding: 10px 12px;
        flex: 1;
        min-width: 0;
        white-space: normal;
        line-height: 1.3;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .tab-nav {
        padding: 6px;
    }
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.settings-btn {
    padding: 10px 20px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Settings Popup Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.overlay.show {
    display: flex;
}

.settings-popup {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: popupSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupSlide {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #f3f4f6;
}

.settings-header h2 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.close-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    padding: 8px;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.settings-content {
    padding: 32px;
}

.setting-group {
    margin-bottom: 24px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.setting-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background-color: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.setting-group select:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.setting-help {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 6px;
    font-style: italic;
}

.setting-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.save-btn, .clear-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.save-btn {
    background: #059669;
    color: #ffffff;
}

.save-btn:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.clear-btn {
    background: #dc2626;
    color: #ffffff;
}

.clear-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Notification Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Teacher Search Styles */
.teacher-search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-input-section {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.search-input-section .form-group label {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.search-input-section input {
    width: 100%;
    font-size: 16px;
    padding: 12px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-section input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: none;
}

/* Force 24-hour format for time input */
input[type="time"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
}

input[type="time"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-clear-button {
    display: none;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

.search-filters-section {
    background: #f9fafb;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-header h4 {
    margin: 0;
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
}

.current-time-display {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.current-time-display span {
    color: #9ca3af;
    font-weight: 500;
}

.current-time-display .current-day {
    color: #059669;
    background: #ecfdf5;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0 4px;
    font-weight: 500;
    font-size: 13px;
}

.current-time-display .current-time {
    color: #dc2626;
    background: #fef2f2;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    margin: 0 4px;
    font-weight: 500;
    font-size: 13px;
}

.use-current-btn {
    background: #111827;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.use-current-btn:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.search-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: #111827;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-btn:hover:not(:disabled) {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.search-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.current-time-info {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.time-label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.current-time {
    font-size: 1.5rem;
    font-weight: 600;
    color: #dc2626;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    min-width: 80px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

.current-day {
    font-size: 1rem;
    font-weight: 500;
    color: #059669;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
}

.time-selector {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin: 16px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-group {
    margin: 0;
}

input[type="time"] {
    padding: 12px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

input[type="time"]:focus {
    outline: none;
    border-color: #111827;
    box-shadow: none;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
    font-size: 14px;
}

.suggestion-item:hover, .suggestion-item.active {
    background: #111827;
    color: #ffffff;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.form-group {
    position: relative;
}

.teacher-location-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
    border: 1px solid #e5e7eb;
}

.teacher-status {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
}

.teacher-status.teaching {
    background: #f0fdf4;
    border-color: #a7f3d0;
}

.teacher-status.not-teaching {
    background: #fef2f2;
    border-color: #fecaca;
}

.teacher-status h4 {
    margin: 0 0 8px 0;
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
}

.teacher-status p {
    margin: 4px 0;
    color: #374151;
    font-size: 14px;
}

.teacher-status .location {
    font-size: 1rem;
    font-weight: 600;
    color: #059669;
}

.teacher-status .subject {
    font-weight: 600;
    color: #111827;
}

.teacher-status .time-range {
    font-weight: 500;
    color: #6b7280;
}

.teacher-schedule-today {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
}

.teacher-schedule-today h4 {
    margin: 0 0 16px 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item.current {
    background: #fffbeb;
    border-radius: 4px;
    padding: 8px 12px;
    border: 1px solid #fde68a;
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .settings-popup {
        width: 95%;
        margin: 10px;
    }
    
    .settings-content {
        padding: 20px;
    }
    
    .setting-buttons {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .search-input-section,
    .search-filters-section {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .teacher-search-container {
        max-width: none;
        margin: 0;
    }
    
    .current-time-display {
        padding: 12px;
    }
    
    .current-time-display .current-day,
    .current-time-display .current-time {
        display: block;
        margin: 5px 0;
    }
    
    .time-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .use-current-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .search-btn {
        width: 100% !important;
        max-width: none;
        margin: 0;
        padding: 15px;
        font-size: 16px;
    }
    
    th, td {
        padding: 8px;
        font-size: 12px;
    }
    
    .schedule-result {
        padding: 15px;
    }
    
    .search-form {
        padding: 15px;
    }
}

/* Compare Classes Styles */
.compare-form {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.compare-description {
    color: #6b7280;
    margin-bottom: 24px;
    font-style: italic;
    font-size: 14px;
}

.compare-selectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.compare-table-container {
    overflow-x: auto;
    margin-top: 24px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1.5px solid #e5e7eb;
}

.compare-table th {
    background: #f9fafb;
    color: #374151;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compare-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
    vertical-align: top;
    font-size: 14px;
}

.compare-table tr:nth-child(even) {
    background: #fafafa;
}

.compare-table tr:hover {
    background: #f3f4f6;
}

.compare-time-slot {
    font-weight: 600;
    color: #111827;
    background: #f9fafb !important;
}

.compare-subject {
    font-weight: 600;
    color: #111827;
}

.compare-teacher {
    color: #6b7280;
    font-size: 13px;
}

.compare-location {
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
}

.compare-empty {
    color: #9ca3af;
    font-style: italic;
}

@media (max-width: 768px) {
    .compare-selectors {
        grid-template-columns: 1fr;
    }
    
    .compare-table {
        font-size: 12px;
    }
    
    .compare-table th,
    .compare-table td {
        padding: 8px;
    }
    
    .compare-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .settings-popup {
        width: 95%;
        margin: 10px;
    }
    
    .settings-content {
        padding: 24px;
    }
    
    .setting-buttons {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filter-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .search-input-section,
    .search-filters-section {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .teacher-search-container {
        max-width: none;
        margin: 0;
    }
    
    .current-time-display {
        padding: 12px;
    }
    
    .current-time-display .current-day,
    .current-time-display .current-time {
        display: block;
        margin: 4px 0;
    }
    
    .time-display {
        flex-direction: column;
        gap: 8px;
    }
    
    .use-current-btn {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .search-btn {
        width: 100% !important;
        max-width: none;
        margin: 0;
        padding: 14px;
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
        font-size: 12px;
    }
    
    .schedule-result {
        padding: 20px;
    }
    
    .search-form {
        padding: 20px;
    }
    
    .teacher-location-card {
        padding: 20px;
    }
}