/* ========================================
   MainStreet Exchange - Professional B2B Marketplace
   Design: Clean, credible, calm for 40-70 age group
   ======================================== */

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

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

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #1a252f;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e40af;
}

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.container-narrow {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a252f;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #1a252f;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

/* ========================================
   SCREEN MANAGEMENT
   ======================================== */

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PRODUCT CARD (Screen 0)
   ======================================== */

.product-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    text-align: center;
}

.card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin: 2rem 0 2.5rem 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #475569;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 1.2rem;
}

.link-secondary {
    display: inline-block;
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.95rem;
}

/* ========================================
   PROGRESS BAR
   ======================================== */

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.progress-step.completed {
    background-color: #10b981;
    color: #ffffff;
}

.progress-line {
    width: 60px;
    height: 2px;
    background-color: #e5e7eb;
    transition: background-color 0.3s ease;
}

.progress-line.completed {
    background-color: #10b981;
}

/* ========================================
   FORM CONTAINER
   ======================================== */

.form-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.step-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.listing-form {
    max-width: 700px;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    color: #1a252f;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

label.required:after {
    content: " *";
    color: #dc2626;
}

input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field-help {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.form-helper {
    margin-top: 0.75rem;
}

/* ========================================
   INPUT WITH PREFIX
   ======================================== */

.input-with-prefix {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.input-with-prefix:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-prefix {
    background-color: #f3f4f6;
    padding: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    border-right: 1px solid #d1d5db;
}

.input-with-prefix input {
    border: none;
    box-shadow: none;
}

.input-with-prefix input:focus {
    box-shadow: none;
}

/* ========================================
   RADIO & CHECKBOX GROUPS
   ======================================== */

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked,
.checkbox-option input[type="checkbox"]:checked {
    accent-color: #2563eb;
}

.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: #2563eb;
}

.checkbox-confirm {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 6px;
}

.checkbox-confirm input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #2563eb;
}

/* ========================================
   SLIDER
   ======================================== */

.slider-container {
    padding: 1rem 0;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-value {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2563eb;
}

/* ========================================
   TOOLTIP
   ======================================== */

.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.25rem;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #64748b;
    color: #ffffff;
    font-size: 0.75rem;
    cursor: help;
    font-weight: 600;
}

.tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #1e293b;
    color: #ffffff;
    text-align: left;
    border-radius: 6px;
    padding: 0.75rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 400;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-trust {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.badge-trust-large {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
}

.badge-tier {
    background-color: #e0e7ff;
    color: #4338ca;
    border: 1px solid #a5b4fc;
}

.badge-tier-premium {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.badge-recommended {
    background-color: #10b981;
    color: #ffffff;
    margin-left: 0.5rem;
}

.badge-status {
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    font-family: inherit;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: #ffffff;
    color: #64748b;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

.btn-outline {
    background-color: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.btn-outline:hover {
    background-color: #eff6ff;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-edit {
    background-color: transparent;
    color: #2563eb;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    font-weight: 600;
}

.btn-edit:hover {
    background-color: #eff6ff;
    border-radius: 4px;
}

/* ========================================
   FORM ACTIONS
   ======================================== */

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* ========================================
   REVIEW CONTAINER (Screen 5)
   ======================================== */

.review-container {
    max-width: 700px;
}

.review-section {
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-section h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.editable-section {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    min-height: 100px;
    line-height: 1.7;
}

.editable-section p {
    margin-bottom: 0;
    color: #475569;
}

/* ========================================
   TRUST SUMMARY (Screen 6)
   ======================================== */

.trust-summary {
    max-width: 700px;
}

.trust-badge-large {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.trust-score {
    font-size: 1.1rem;
    color: #475569;
    margin-top: 1rem;
}

.trust-score strong {
    color: #1e40af;
}

.completion-checklist {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.completion-checklist h3 {
    color: #166534;
    margin-bottom: 1rem;
}

.checklist {
    list-style: none;
}

.checklist li {
    padding: 0.625rem 0;
    padding-left: 2rem;
    position: relative;
    color: #15803d;
    font-weight: 500;
}

.checklist li.checked:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
    font-size: 1.2rem;
}

.upgrade-prompt {
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

.upgrade-prompt h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.upgrade-prompt > p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.tier-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tier-card {
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.tier-card h4 {
    margin-bottom: 0.75rem;
}

.tier-features {
    list-style: none;
    margin: 1rem 0 1.5rem 0;
}

.tier-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
    font-size: 0.9rem;
}

.tier-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 700;
}

.upgrade-note {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
    margin-top: 1rem;
}

/* ========================================
   BUYER PREVIEW (Screen 7)
   ======================================== */

.buyer-preview {
    background-color: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.preview-header {
    margin-bottom: 1.5rem;
}

.preview-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.listing-preview {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
}

.listing-preview h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.preview-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.preview-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.preview-section h4 {
    color: #475569;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.preview-section p {
    color: #475569;
    line-height: 1.7;
}

.publish-form {
    max-width: 700px;
}

/* ========================================
   DASHBOARD (Post-Publish)
   ======================================== */

.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    color: #1e293b;
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.success-message {
    font-size: 1.1rem;
    color: #64748b;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card h3 {
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stat-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.dashboard-actions {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dashboard-actions h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.dashboard-actions > p {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
}

.upgrade-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.upgrade-card {
    background-color: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.upgrade-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.upgrade-card.featured {
    border-color: #2563eb;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    position: relative;
}

.upgrade-header {
    margin-bottom: 1.5rem;
}

.upgrade-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.upgrade-features {
    list-style: none;
    margin-bottom: 2rem;
}

.upgrade-features li {
    padding: 0.625rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: #475569;
}

.upgrade-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 1.1rem;
}

.upgrade-card .btn {
    width: 100%;
}

.dashboard-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f1f5f9;
    color: #64748b;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body textarea {
    width: 100%;
    min-height: 150px;
    font-family: inherit;
    resize: vertical;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .container,
    .container-narrow {
        padding: 1.5rem 1rem;
    }

    .product-card {
        padding: 2rem 1.5rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .progress-bar {
        padding: 0;
    }

    .progress-step {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .progress-line {
        width: 40px;
    }

    .tier-comparison {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .upgrade-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-links {
        flex-direction: column;
    }

    .dashboard-links .btn {
        width: 100%;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus styles for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
