:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #10b981;
    /* Emerald green for healthy/unhealthy status */
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    background-image:
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s;
    background: var(--surface);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.back-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Tool Card */
.tool-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    margin-bottom: 40px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: var(--text-main);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Results Section */
.results-container {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: none;
    animation: slideUp 0.5s ease-out forwards;
}

.results-container.show {
    display: block;
}

.result-header {
    text-align: center;
    margin-bottom: 32px;
}

.result-status {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
}

.status-healthy {
    color: var(--success);
}

.status-warning {
    color: var(--warning);
}

.status-danger {
    color: var(--danger);
}

.result-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Recommendations */
.recommendations {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}

.recommendations h3 {
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendations ul {
    list-style: none;
}

.recommendations li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.recommendations li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* Info Sections */
.info-content {
    background: var(--surface);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.info-content h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin-bottom: 24px;
    font-size: 1.8rem;
}

.info-content h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.info-content ul {
    list-style: none;
    margin-bottom: 24px;
}

.info-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.info-content li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .tool-card {
        padding: 24px;
    }
}