:root {
    --editor-bg: #f4f4f4;
    --editor-panel: #ffffff;
    --border-color: #ddd;
}

body {
    background-color: var(--editor-bg);
    color: #333;
}

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.back-link {
    color: var(--jeopardy-gold);
    text-decoration: none;
    font-weight: bold;
}

.toolbar {
    background: var(--editor-panel);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.editor-section {
    background: var(--editor-panel);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.editor-section h3 {
    margin-top: 0;
    color: var(--jeopardy-blue);
    border-bottom: 2px solid var(--jeopardy-gold);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.help-text {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

#game-title {
    width: 100%;
    font-size: 1.5em;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Grid Editor */
#editor-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
}

.col-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.col-header input {
    background: var(--jeopardy-blue);
    color: white;
    border: 1px solid var(--jeopardy-gold);
    padding: 8px;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
}

.col-header input::placeholder {
    color: rgba(255,255,255,0.7);
}

.grid-cell {
    background: var(--jeopardy-blue);
    color: var(--jeopardy-gold);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
}

.grid-cell:hover {
    border-color: var(--jeopardy-gold);
    transform: scale(1.02);
}

.grid-cell.filled {
    background: #00008b; /* Darker blue */
}

.grid-cell.empty {
    opacity: 0.5;
    background: #666;
}

.cell-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.6em;
    color: white;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.secondary-btn {
    background: #666;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.secondary-btn:hover {
    background: #555;
}

.large-btn {
    font-size: 1.2em;
    padding: 15px 30px;
    width: 100%;
}

.final-jeopardy-editor {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
