/* Onboarding Dialog Styles */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.onboarding-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    animation: onboardingSlideIn 0.3s ease-out;
}

@keyframes onboardingSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.onboarding-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.onboarding-header h2 {
    color: #007bff;
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.onboarding-header p {
    color: #6c757d;
    margin: 0;
    font-size: 16px;
}

.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.form-section h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input:invalid {
    border-color: #dc3545;
}

.form-group input:invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Color Selection */
.color-selection {
    margin-top: 10px;
}

.selected-color-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e9ecef;
}

.selected-color-box {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-color-text {
    color: #495057;
    font-weight: 500;
}

.color-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    max-width: 100%;
    overflow-x: auto;
}

.color-row {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: nowrap;
}

.color-box {
    width: 35px;
    height: 35px;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.color-box:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: #007bff;
    z-index: 10;
}

.color-box.selected {
    border-color: #007bff;
    border-width: 3px;
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.color-box.reset-color {
    background: linear-gradient(45deg, #fff 48%, #dc3545 48%, #dc3545 52%, #fff 52%);
    background-size: 8px 8px;
    color: #dc3545;
    font-weight: bold;
    font-size: 18px;
}

.color-box.reset-color span {
    background: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.form-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.setup-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    min-width: 200px;
}

.setup-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #004085);
}

.setup-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .onboarding-overlay {
        padding: 10px;
    }
    
    .onboarding-dialog {
        padding: 20px;
        max-height: 95vh;
    }
    
    .onboarding-header h2 {
        font-size: 24px;
    }
    
    .color-row {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .color-box {
        width: 30px;
        height: 30px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .setup-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .onboarding-dialog {
        padding: 15px;
    }
    
    .onboarding-header h2 {
        font-size: 20px;
    }
    
    .color-box {
        width: 25px;
        height: 25px;
    }
    
    .selected-color-box {
        width: 25px;
        height: 25px;
    }
} 