/* ===== Color Palette ===== */
:root {
    --primary: #FF6B9D;
    --primary-light: #FF85B3;
    --primary-dark: #E64C7C;
    --secondary: #00D4FF;
    --secondary-light: #4DEAF7;
    --tertiary: #FFA500;
    --tertiary-light: #FFB84D;
    --accent-1: #9D4EDD;
    --accent-2: #3A86FF;
    --success: #06D6A0;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --border: #DFE6E9;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* ===== Header ===== */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--white);
    animation: slideDown 0.6s ease;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1.2em;
    opacity: 0.95;
}

/* ===== Navigation Tabs ===== */
.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.tab-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    box-shadow: var(--shadow-hover);
}

/* ===== Tab Content ===== */
.tab-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-hover);
    animation: fadeIn 0.4s ease;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.section-header {
    margin-bottom: 30px;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 15px;
}

.section-header h2 {
    color: var(--text-dark);
    font-size: 2em;
}

/* ===== Date Ideas Section ===== */
.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
    background: linear-gradient(135deg, #F0F8FF 0%, #FFE4F5 100%);
    padding: 20px;
    border-radius: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== Checkbox Styling ===== */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
    gap: 10px;
}

.checkbox-label:hover {
    color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--tertiary);
    border-radius: 6px;
    background: var(--white);
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--tertiary) 0%, var(--tertiary-light) 100%);
    border-color: var(--tertiary);
    color: var(--white);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    font-weight: bold;
    font-size: 14px;
}

/* ===== Buttons ===== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--text-dark);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-3px);
}

.btn-tertiary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent-2) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-tertiary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ===== Results Display ===== */
.results-container {
    min-height: 300px;
    background: linear-gradient(135deg, #F0F8FF 0%, #E8F5FF 100%);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--secondary);
}

.placeholder {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 60px 20px;
    font-size: 1.1em;
}

.ideas-list {
    display: grid;
    gap: 12px;
}

.idea-item {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.idea-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary);
}

/* ===== Questions Section ===== */
.question-config {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE6F0 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.config-group {
    margin-bottom: 25px;
}

.config-group h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.number-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.number-input {
    padding: 10px 15px;
    border: 2px solid var(--tertiary);
    border-radius: 8px;
    font-size: 1em;
    width: 80px;
    transition: all 0.3s ease;
}

.number-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.input-hint {
    color: var(--text-light);
    font-size: 0.9em;
}

/* ===== Question Display ===== */
.question-display {
    background: linear-gradient(135deg, #E8F5FF 0%, #F0F8FF 100%);
    padding: 40px;
    border-radius: 15px;
    border: 3px solid var(--secondary);
}

.question-display.hidden {
    display: none;
}

.question-progress {
    margin-bottom: 30px;
}

#question-counter {
    display: block;
    text-align: center;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent-2) 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.question-box {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.question-text {
    font-size: 1.4em;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.8;
}

.question-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.complete-message {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #06D6A0 0%, #00C896 100%);
    color: var(--white);
    border-radius: 15px;
    margin: 30px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.complete-message.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

/* ===== Animations ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .tab-content {
        padding: 20px;
    }

    .question-box {
        padding: 25px 15px;
        min-height: 120px;
    }

    .question-text {
        font-size: 1.2em;
    }

    .filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .question-controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .checkbox-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .tabs {
        gap: 10px;
    }

    .tab-button {
        padding: 10px 16px;
        font-size: 0.9em;
    }

    .tab-content {
        padding: 15px;
    }

    .question-box {
        padding: 20px 10px;
    }

    .complete-message {
        font-size: 1em;
        padding: 20px;
    }
}
