:root {
    --primary: #0084ff;
    --bg-light: #f4f7f6;
    --text-dark: #333;
    --sidebar-bg: #1a1a2e;
    --sidebar-text: #fff;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary);
}

nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-btn {
    background: none;
    border: none;
    color: #a0a0b8;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: 0.3s;
}

.nav-btn:hover, .nav-btn.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-btn.active {
    border-left: 4px solid var(--primary);
}

/* Main Content */
.content {
    flex: 1;
    padding: 2rem;
}

header {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

select {
    padding: 0.6rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-width: 200px;
}

/* Dynamic Content */
#dynamic-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards & Components */
.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.copy-box {
    background: #f8f9fa;
    padding: 1rem;
    border: 1px dashed #ccc;
    position: relative;
    margin-top: 1rem;
    white-space: pre-wrap;
    line-height: 1.6;
}

.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Checklist */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.progress-container {
    background: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

#progress-bar {
    background: var(--primary);
    height: 100%;
    transition: width 0.3s;
}

#progress-text {
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    font-size: 0.8rem; font-weight: bold; color: #333;
}

.badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.primary-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #666;
}

.input-group input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.res-list {
    list-style: none;
    margin-top: 0.5rem;
}

.res-list li {
    margin-bottom: 0.5rem;
}

.copy-box.small {
    padding: 0.5rem;
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.copy-box.list-item {
    margin-top: 0;
}

/* Calculator specific */
.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    text-align: center;
    border-top: 5px solid #ddd;
}

.result-card.highlight {
    border-top-color: #388e3c;
    background: #f1f8e9;
}

.big-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
}

.highlight .big-number {
    color: #2e7d32;
}

.info-card {
    background: #e3f2fd;
    border-left: 4px solid var(--primary);
    font-size: 0.95rem;
    line-height: 1.5;
}
