body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-box {
    background: #1e293b;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.auth-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
}

.auth-box button {
    width: 100%;
    padding: 10px;
    background: #3b82f6;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.auth-box button:hover {
    background: #2563eb;
}

.hidden {
    display: none;
}

#message {
    margin-top: 10px;
}


/* PLAN */
.container {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.create-plan {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.create-plan input {
    flex: 1;
}

.plan-item {
    background: #1e293b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.plan-item:hover {
    background: #334155;
}

.plan-row {
    padding: 10px;
    border: 1px solid #333;
    margin-bottom: 5px;
    border-radius: 6px;
}


.class-picker {
    background: #0f172a;
    border: 1px solid #444;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
}

.class-picker input {
    width: 100%;
    margin-bottom: 10px;
}

.class-picker-results div {
    padding: 5px;
    cursor: pointer;
}

.class-picker-results div:hover {
    background: #334155;
}

.add-class-box {
    background: #1e293b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.category-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.category-row input {
    flex: 1;
}

.category-block {
    margin-top: 30px;
}

.subcategory-block {
    margin-top: 15px;
    padding-left: 10px;
}

.class-row {
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.class-header {
    font-weight: bold;
    margin-bottom: 5px;
}

.class-actions {
    margin-top: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.back-link {
    color: #a855f7;
    text-decoration: underline;
}

.panel {
    background: #1e293b;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.panel h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.panel-subtext {
    margin-top: 0;
    margin-bottom: 14px;
    color: #cbd5e1;
    font-size: 14px;
}

.full-width-input {
    width: 100%;
    box-sizing: border-box;
}

.search-results {
    margin-top: 12px;
    max-height: 320px;
    overflow-y: auto;
}

.search-result-item,
.picker-result-item {
    width: 100%;
    text-align: left;
    background: #0f172a;
    border: 1px solid #334155;
    color: #ffffff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
}

.search-result-item:hover,
.picker-result-item:hover {
    background: #162033;
}

.search-result-title,
.picker-result-title {
    font-weight: bold;
}

.search-result-subtitle,
.picker-result-subtitle {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 14px;
}

.empty-state {
    background: #0f172a;
    border: 1px dashed #334155;
    border-radius: 8px;
    padding: 14px;
    color: #cbd5e1;
}

.empty-state.compact {
    padding: 8px 10px;
    margin-top: 8px;
}

.error-state {
    color: #fecaca;
}

.selected-class-display {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
}

.selected-class-display.empty {
    color: #cbd5e1;
}

.requirements-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.requirements-builder-empty {
    background: #0f172a;
    border: 1px dashed #334155;
    border-radius: 8px;
    padding: 14px;
    color: #cbd5e1;
}

.create-class-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.create-class-actions {
    margin-top: 12px;
}

.requirement-group {
    border-left: 2px solid #3b82f6;
    padding-left: 14px;
    margin-top: 12px;
}

.requirement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #0f172a;
    padding: 10px;
    border-radius: 8px;
}

.group-label {
    font-weight: bold;
    color: #60a5fa;
}

.group-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.requirement-item {
    margin-top: 8px;
    background: #334155;
    padding: 8px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-right: 8px;
}

.class-picker {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
}

.class-picker input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.class-picker-results {
    max-height: 220px;
    overflow-y: auto;
}

.danger-button {
    color: #fecaca;
}

@media (max-width: 900px) {
    .create-class-grid {
        grid-template-columns: 1fr;
    }
}