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

body {
    font-family: Arial, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
}

.header h1 {
    color: #4a9eff;
}

.nav {
    display: flex;
    gap: 10px;
}

.nav button {
    padding: 8px 16px;
    background: #4a9eff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.nav button:hover {
    background: #3a8eef;
}

.nav button.secondary {
    background: #444;
}

.nav button.secondary:hover {
    background: #555;
}

.game-canvas-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#gameCanvas {
    border: 2px solid #4a9eff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

.controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.control-panel {
    background: #16213e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
}

.control-panel h2 {
    color: #4a9eff;
    margin-bottom: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    background: #0f3460;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

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

.btn:hover {
    background: #3a8eef;
}

.btn.secondary {
    background: #444;
}

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

.btn.danger {
    background: #e63946;
}

.btn.danger:hover {
    background: #d63646;
}

.btn.success {
    background: #2ecc71;
}

.btn.success:hover {
    background: #27ae60;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.task-list {
    max-height: 400px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #0f3460;
    border-radius: 4px;
    margin-bottom: 5px;
}

.task-item.pending {
    border-left: 3px solid #fff;
}

.task-item.completed {
    border-left: 3px solid #2ecc71;
}

.task-item.skipped {
    border-left: 3px solid #e63946;
}

.task-info {
    flex: 1;
}

.task-actions {
    display: flex;
    gap: 5px;
}

.task-actions button {
    padding: 5px 10px;
    font-size: 12px;
}

.level-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.level-item {
    background: #0f3460;
    padding: 15px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
}

.level-item.active {
    border-color: #4a9eff;
}

.level-item:hover {
    background: #1a3a5c;
}

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.game-item {
    background: #0f3460;
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.game-item:hover {
    border-color: #4a9eff;
}

.game-item h3 {
    color: #4a9eff;
    margin-bottom: 10px;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: #16213e;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

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

.modal-header h2 {
    color: #4a9eff;
}

.modal-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
}

.modal-close:hover {
    color: white;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    color: white;
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #2ecc71;
}

.toast.error {
    background: #e63946;
}

.toast.info {
    background: #4a9eff;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.accordion {
    border: 1px solid #444;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    background: #0f3460;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: #1a3a5c;
}

.accordion-content {
    display: none;
    padding: 15px;
    background: #16213e;
}

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