body {
    font-family: Inter, sans-serif;
    background: #f8f9fa;
    margin: 0;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
}

/* PANEL */
.selection-panel {
    background: #f1f3f5;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.selected-item {
    background: white;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
}

.remove-btn {
    border: none;
    background: transparent;
    color: red;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-secondary {
    background: white;
    border: 1px solid #ccc;
}

/* CALENDAR */
.calendar {
    display: flex;
    flex-direction: column;
}

/* HEADER */
.calendar-header {
    display: grid;
    grid-template-columns: 100px repeat(6, 1fr);
    font-weight: bold;
    margin-bottom: 10px;
}

.time-col {
    padding: 10px;
}

/* ROW */
.time-row {
    display: grid;
    grid-template-columns: 100px repeat(6, 1fr);
    border-bottom: 1px solid #eee;
}

.time-label {
    padding: 10px;
    font-weight: bold;
    color: #666;
}

/* CELL */
.day-cell {
    padding: 8px;
    min-height: 140px;
    border-left: 1px solid #eee;
}

/* CARD */
.class-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    transition: 0.2s;
}

.class-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
}

.class-header {
    font-weight: 700;
    font-size: 14px;
}

.class-teacher {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

/* WEEK SELECT */
.week-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.week-option {
    font-size: 12px;
    background: #f1f3f5;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
}

.week-option input {
    margin-right: 6px;
}

/* EMPTY */
.no-class {
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.badge.booked {
    background: #28a745;
    color: white;
}

.badge.conflict {
    background: #dc3545;
    color: white;
}

/* disabled state */
.class-card.booked {
    opacity: 0.6;
    border: 1px solid #28a745;
}

.class-card.conflict {
    opacity: 0.5;
    border: 1px solid #dc3545;
}

.week-option.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.class-card.selected {
    border: 2px solid #007bff;
    background: #f0f8ff;
}

/* AUTH BAR */
.auth-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

/* LOGGED IN STATE */
.auth-right {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f7fa;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.auth-user {
    font-weight: 600;
    color: #333;
}

.auth-logout {
    background: #ff4d4f;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.auth-logout:hover {
    background: #d9363e;
}

/* LOGIN BOX */
.auth-login-box {
    width: 260px;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-login-box h3 {
    margin-bottom: 10px;
}

/* WP login form default override */
.auth-login-box input {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.auth-login-box input[type="submit"] {
    background: #1677ff;
    color: white;
    border: none;
    cursor: pointer;
}

.auth-login-box input[type="submit"]:hover {
    background: #0f5ed7;
}

.auth-register {
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
}

.hidden {
    display: none;
}

.class-card.booked {
    border: 2px solid #28a745 !important;
    background-color: #f4fbf6 !important;
}

.class-card.course-conflict,
.class-card.disabled,
.class-card.init-conflict,
.class-card.live-conflict {
    border: 1px solid #ea3737 !important;
    background-color: #f8f9fa !important;
    opacity: 0.6 !important;
}

.class-card.my-choice {
    border: 2px solid #007bff !important;
    background-color: #e7f3ff !important;
    opacity: 1 !important;
}
