/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #F4F7FA;
    min-height: 100vh;
    color: #1F2937;
    font-size: 16px;
    line-height: 1.5;
}

/* Utilities */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem;
}

.text-primary { color: #1E3A8A; }
.text-red-500 { color: #EF4444; }
.text-green-500 { color: #10B981; }
.bg-primary { background-color: #1E3A8A; }

.border { border: 1px solid #E5E7EB; }
.rounded-lg { border-radius: 0.75rem; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

.pt-20 { padding-top: 5rem; }
.pb-8 { padding-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* Header */
header {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
}

/* Card Styles */
.card {
    background: #FFFFFF;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

details summary {
    cursor: pointer;
    padding: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details[open] > div {
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

details > div {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Forms */
input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: #F9FAFB;
    color: #1F2937;
    appearance: none;
}

input[type="number"]:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

button {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: #2563EB;
}

/* Sidebar */
#sidebar {
    transition: transform 0.3s ease-in-out;
}

#sidebar-overlay {
    transition: opacity 0.3s ease-in-out;
}

#sidebar-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#sidebar-overlay:not(.hidden) {
    opacity: 1;
}

/* Animations */
.rotate-180 {
    transform: rotate(180deg);
}

@media (min-width: 640px) {
    .container {
        max-width: 400px;
    }
}