/* Base/Common Styles - Shared across all pages */

/* CSS Variables - Design tokens */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --success-btn: #16a34a;
    --success-btn-hover: #15803d;
    --error-bg: #fee2e2;
    --error-text: #991b1b;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Typography */
h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Common Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-success {
    background: var(--success-btn);
    color: white;
}

.btn-success:hover {
    background: var(--success-btn-hover);
}

/* Form Elements */
.input,
input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
}

.input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    border-color: var(--primary-color);
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Common Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.error {
    color: var(--error-text);
    text-align: center;
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* Card Component */
.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* Container */
.container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
}