/* Enhanced Settings Modal Styles */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.settings-modal {
    background: #2a2a2a;
    border: 2px solid #555;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    color: white;
    overflow-y: auto;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #444;
    background: #333;
    border-radius: 6px 6px 0 0;
}

.settings-header h2 {
    margin: 0;
    color: white;
    font-size: 24px;
}

.settings-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.settings-close:hover {
    color: white;
}

.settings-content {
    padding: 0;
}

/* Section Styling */
.settings-section {
    padding: 24px;
    border-bottom: 1px solid #444;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    margin: 0 0 20px 0;
    color: #4CAF50;
    font-size: 18px;
    font-weight: 600;
}

.settings-label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

/* Current Settings Display */
.current-settings {
    background: #1e1e1e;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 3px solid #4CAF50;
}

.current-label {
    color: #aaa;
    font-size: 14px;
}

.current-value {
    color: #4CAF50;
    font-weight: bold;
    font-size: 18px;
    margin-left: 8px;
}

.current-stacks {
    color: #aaa;
    font-size: 14px;
    margin-left: 8px;
}

/* Preset Buttons */
.preset-section {
    margin-bottom: 24px;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.preset-btn {
    background: #3a3a3a;
    border: 1px solid #555;
    color: white;
    padding: 12px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
}

.preset-btn:hover {
    background: #4a4a4a;
    border-color: #4CAF50;
    transform: translateY(-1px);
}

.preset-btn small {
    color: #4CAF50;
    font-weight: 600;
}

/* Input Sections */
.custom-section,
.stack-section {
    margin-bottom: 20px;
}

.blind-inputs,
.stack-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.input-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.input-group label {
    margin-bottom: 6px;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

.blind-input,
.stack-input {
    background: #1e1e1e;
    border: 1px solid #555;
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.blind-input:focus,
.stack-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.bb-display {
    position: absolute;
    right: 12px;
    top: 32px;
    color: #4CAF50;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    background: #2a2a2a;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Validation Messages */
.validation-message {
    margin-top: 8px;
    font-size: 14px;
    min-height: 20px;
}

.validation-message.error {
    color: #f44336;
}

.validation-message.warning {
    color: #ff9800;
}

.validation-message.success {
    color: #4CAF50;
    font-weight: 600;
}

/* Action Buttons */
.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    background: #333;
    border-radius: 0 0 6px 6px;
}

.settings-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.settings-btn-secondary {
    background: #555;
    color: white;
}

.settings-btn-secondary:hover {
    background: #666;
}

.settings-btn-primary {
    background: #4CAF50;
    color: white;
}

.settings-btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.settings-btn-primary:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    .settings-modal {
        width: 95%;
        max-width: none;
    }

    .blind-inputs,
    .stack-inputs {
        grid-template-columns: 1fr;
    }

    .preset-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-actions {
        flex-direction: column;
    }

    .settings-btn {
        width: 100%;
    }
}