:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent: #ef4444;
    --border: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem 1rem;
}

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

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

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.survey-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.question-group {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.question-group:last-child {
    border-bottom: none;
}

.question-group h3 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #f1f5f9;
}

.option-item:hover {
    background: #f1f5f9;
    border-color: var(--primary);
}

.option-item input {
    margin-right: 1rem;
    accent-color: var(--primary);
    width: 1.25rem;
    height: 1.25rem;
}

.other-input {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-main);
    padding: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 1rem;
    color: var(--text-main);
    padding: 1.25rem;
    min-height: 150px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.nps-container {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 0.5rem;
}

.nps-btn {
    flex: 1;
    padding: 1rem 0;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 600;
}

.nps-btn:hover {
    background: #eef2ff;
    color: var(--primary);
    border-color: var(--primary);
}

.nps-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--primary);
    border: none;
    border-radius: 1rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 2rem;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

/* Admin Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.charts-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 1.5rem; 
    margin-bottom: 3rem; 
}

.chart-container { 
    background: white; 
    padding: 2rem; 
    border-radius: 1.5rem; 
    border: 1px solid var(--border); 
    height: 400px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.chart-container h3 { 
    margin-bottom: 1.5rem; 
    font-size: 1.1rem; 
    color: var(--text-main); 
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.feedback-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feedback-content h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.feedback-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    .nps-container {
        flex-wrap: wrap;
    }
    .nps-btn {
        flex: 0 0 18%;
        margin-bottom: 0.5rem;
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
}
