/* 1. Base Reset & Variables */
:root {
    --primary-color: #2563eb; /* Strong blue */
    --primary-hover: #1d4ed8;
    --bg-color: #f3f4f6; /* Light gray background */
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    /* Prevent text from becoming tiny when rotating the phone */
    -webkit-text-size-adjust: 100%; 
}

/* 2. Layout & Containers (Mobile First) */
.container {
    width: 100%;
    max-width: 600px; /* Limits width on large screens */
    margin: 0 auto;
    padding: 16px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

/* 3. Typography */
h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

/* 4. Forms - Optimized for Fat Thumbs */
.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="number"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 12px; /* Large padding for easy tapping */
    font-size: 16px; /* 16px prevents iPhones from auto-zooming! */
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: #fff;
    transition: border-color 0.2s;
}

input:focus, 
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 5. Buttons - Big and Tappable */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--primary-hover);
}

/* 6. Tablet/Desktop Adjustments */
@media (min-width: 768px) {
    .container {
        padding: 32px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* On desktop, maybe we don't want the button to span the whole screen */
    .btn {
        width: auto;
        min-width: 200px;
    }
}