/* Synology Expert Design System - Unified Stylesheet */
:root {
    --bg-color: #0a0f16;
    --card-bg: #161c24;
    --primary-color: #00d1ff;
    --primary-hover: #00b8e6;
    --secondary-color: #00e676;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Ornament */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, rgba(0, 209, 255, 0.1), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

/* Typography */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--primary-color);
    background: linear-gradient(135deg, #00d1ff 0%, #0072ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Cards & Forms */
.wizard-form, .result-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.step-num {
    background: rgba(0, 209, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* Form Elements */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}

select, input[type="number"], input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 209, 255, 0.15);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.check-item {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.check-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 209, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--text-muted);
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Recommendation Results */
.result-card header {
    text-align: center;
    margin-bottom: 32px;
}

.rec-main {
    text-align: center;
    padding: 24px;
    background: rgba(0, 209, 255, 0.03);
    border-radius: 20px;
    margin-bottom: 32px;
    border: 1px dashed rgba(0, 209, 255, 0.2);
}

.label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.model-name {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 8px 0;
    text-shadow: 0 0 20px rgba(0, 209, 255, 0.2);
}

.stat-circle strong {
    display: block;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-top: 4px;
}

.details-table .row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.details-table .row:last-child {
    border-bottom: none;
}

.col-head {
    color: var(--text-muted);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-body {
    font-weight: 600;
    text-align: right;
}

/* Admin Specific */
.admin-body {
    background-color: var(--bg-color);
}

.table-wrapper {
    margin-top: 24px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    text-align: left;
    font-size: 0.8125rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

td {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .container { margin: 30px auto; }
    .wizard-form, .result-card { padding: 24px; }
    .hero h1 { font-size: 2rem; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .model-name { font-size: 2.25rem; }
}