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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --card-background: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #64748b;
    font-size: 1.1rem;
}

.input-section {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
}

.framework-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.framework-category {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.framework-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.idea-list {
    list-style: none;
}

.idea-list li {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.idea-list li:last-child {
    border-bottom: none;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #64748b;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .framework-results {
        grid-template-columns: 1fr;
    }
}

/* Framework Info Section */
.framework-info {
    margin-bottom: 2rem;
}

.info-toggle {
    text-align: center;
    margin-bottom: 1rem;
}

.framework-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.framework-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.framework-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.framework-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Advanced Options */
.advanced-options {
    margin: 1rem 0;
}

.advanced-panel {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-toggles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.category-toggles label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.category-toggles label:hover {
    background-color: var(--background-color);
}

.category-toggles input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.idea-count {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
}

.idea-count select {
    padding: 0.5rem;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    background-color: var(--card-background);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.idea-count select:hover,
.idea-count select:focus {
    border-color: var(--primary-color);
    outline: none;
}

@media (max-width: 768px) {
    .category-toggles {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Output Controls */
.output-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Buttons */
.secondary-btn {
    background-color: #f8fafc;
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.secondary-btn.export-btn {
    background-color: #22c55e;
    border-color: #16a34a;
    color: white;
}

.secondary-btn.export-btn:hover {
    background-color: #16a34a;
    border-color: #15803d;
}

.secondary-btn:hover {
    background-color: var(--border-color);
}

.secondary-btn.full-width {
    width: 100%;
    margin-top: 1rem;
}

/* Idea Items */
.idea-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.save-idea, .delete-idea {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
}

.save-idea:hover {
    color: #2c3e50;
}

.delete-idea:hover {
    color: #dc3545;
}

/* Saved Ideas Section */
.saved-ideas {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.saved-ideas h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .framework-details {
        grid-template-columns: 1fr;
    }
    
    .category-toggles {
        grid-template-columns: 1fr 1fr;
    }
    
    .output-controls {
        flex-direction: column;
    }
    
    .idea-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .save-idea, .delete-idea {
        align-self: flex-end;
    }
}

/* Framework Titles */
.framework-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.framework-title:hover {
    color: var(--primary-color);
}

.info-icon {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--card-background);
    margin: 15% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: #f0f0f0;
    color: #333;
}

#modalTitle {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-right: 2rem;
}

#modalDescription {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

#modalExamples {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

#modalExamples h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

#modalExamples ul {
    list-style-type: none;
    padding-left: 0;
}

#modalExamples li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

#modalExamples li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Save Button States */
.save-idea {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.save-idea:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.save-idea.selected {
    color: var(--primary-color);
}

.save-idea.selected i {
    font-weight: 900;
}

/* Category Badges */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    text-transform: capitalize;
}

.category-badge:before {
    margin-right: 0.25rem;
}

/* Category-specific badge styles */
li:has(.category-badge:contains('actionable')) .category-badge {
    background-color: #e3f2fd;
    color: #1976d2;
}

li:has(.category-badge:contains('aspirational')) .category-badge {
    background-color: #fce4ec;
    color: #c2185b;
}

li:has(.category-badge:contains('analytical')) .category-badge {
    background-color: #e8f5e9;
    color: #388e3c;
}

li:has(.category-badge:contains('anthropological')) .category-badge {
    background-color: #fff3e0;
    color: #f57c00;
}

/* Optional Input Styles */
.optional-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.optional-separator {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    text-transform: uppercase;
    font-weight: 500;
}

.optional-group {
    display: flex;
    flex-direction: column;
}

.optional-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.optional-group input {
    border: 2px solid var(--border-color);
}

.optional-group input:focus {
    border-color: var(--primary-color);
}

@media (max-width: 640px) {
    .optional-inputs {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .optional-separator {
        text-align: center;
        margin-top: 0;
        padding: 0.5rem 0;
    }
}

/* No Ideas Message */
.no-ideas {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Info Buttons */
.info-btn {
    background: none;
    border: none;
    padding: 0;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.info-btn:hover {
    color: var(--primary-color);
}

/* Modal Styles */
.modal-list {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0;
}

.modal-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.modal-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.modal-examples {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.modal-examples h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1rem;
}

.modal-examples ul {
    list-style-type: none;
    padding: 0;
}

.modal-examples li {
    padding: 0.5rem 0;
    color: #64748b;
    font-style: italic;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button-group .primary-btn {
    flex: 2;
}

.button-group .secondary-btn {
    flex: 1;
}

@media (max-width: 640px) {
    .button-group {
        flex-direction: column;
    }
    
    .button-group .primary-btn,
    .button-group .secondary-btn {
        width: 100%;
    }
}

/* Output Controls */
.output-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
} 