/**
 * Calculadora de Madeiramento - Stylesheet Principal
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 */

/* ========================================
   CSS VARIABLES (COLOR PALETTE)
   ======================================== */
:root {
    /* Palette: Earthy & Natural */
    --primary-color: #8B4513;
    --secondary-color: #A0522D;
    --accent-color: #CD853F;
    --surface-color: #DEB887;
    --text-color: #2C1810;
    --card-bg: #FFFFFF;
    
    /* Automatic variations */
    --primary-hover: #6B3410;
    --primary-light: #A0522D;
    --bg-color: #FAEBD7;
    --bg-secondary: #F5DEB3;
    --text-muted: #8B7355;
    --border-color: #D2B48C;
    
    /* Semantic colors */
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: #FF9800;
    --info-color: #2196F3;
    
    /* Layout */
    --border-radius: 12px;
    --border-radius-small: 8px;
    --border-radius-large: 16px;
    --spacing-unit: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.18);
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

/* Dark Mode */
body.dark-mode {
    --bg-color: #120d0a;
    --bg-secondary: #2C1810;
    --surface-color: #3a2820;
    --text-color: #FDF5E6;
    --card-bg: var(--surface-color);
    --text-muted: #D2B48C;
    --border-color: #4a3830;
    
    /* Adjusted primary/secondary for dark mode contrast */
    --primary-color: #D2B48C;
    --primary-hover: #DEB887;
    --secondary-color: #CD853F;
    --primary-light: #8B4513;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: clamp(14px, 2.5vw, 18px);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    min-height: 100vh;
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0));
    }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ========================================
   HEADER (FIXED)
   ======================================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}


/* Brand Logo */
.header-logo .brand-logo {
    color: var(--primary-color);
    margin-right: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
body.dark-mode .header-logo .brand-logo {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.header-logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.header-logo h1 {
    font-size: 1.2rem;
    margin: 0;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
        gap: 8px;
    }
    
    .desktop-nav .nav-link {
        padding: 8px 16px;
        border-radius: var(--border-radius-small);
        color: var(--text-color);
        text-decoration: none;
        transition: var(--transition);
        font-weight: 500;
    }
    
    .desktop-nav .nav-link:hover,
    .desktop-nav .nav-link.active,
    .desktop-nav .nav-link:focus {
        background: var(--primary-color);
        color: white;
        text-decoration: none !important;
    }
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ========================================
   BOTTOM NAVIGATION (MOBILE ONLY)
   ======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--surface-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-muted);
    text-decoration: none !important;
    font-size: 11px;
    transition: var(--transition);
    min-width: 64px;
    min-height: 48px;
}
.nav-item:hover, .nav-item:active, .nav-item:focus {
    text-decoration: none !important;
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: scale(1.15);
}

@media (min-width: 992px) {
    .bottom-nav {
        display: none !important;
    }
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
    padding: 16px;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        padding: 24px;
        max-width: 720px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}

/* ========================================
   VIEWS (SPA SECTIONS)
   ======================================== */
.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

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

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 48px;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: color-mix(in srgb, var(--secondary-color) 85%, black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 12px;
    min-width: 48px;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-icon:hover {
    background: var(--bg-secondary);
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--bg-secondary);
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 32px 0;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    text-align: center;
    padding: 40px 0;
}

.hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    box-shadow: var(--shadow-lg);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .quick-actions {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }
}

/* ========================================
   PROJECT TYPES
   ======================================== */
.project-types {
    margin: 48px 0;
}

.project-types h3 {
    text-align: center;
    margin-bottom: 24px;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .types-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.type-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.type-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--primary-light);
    color: white;
}

.type-item i {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
    color: var(--primary-color);
}

.type-item:hover i {
    color: white;
}

/* ========================================
   SECTION HEADER
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-header h2 {
    margin: 0;
}

/* ========================================
   RESULTS SECTION
   ======================================== */
.results-section {
    margin-top: 32px;
    background: var(--card-bg);
    border-radius: var(--border-radius-large);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.results-header h3 {
    margin: 0;
}

.results-actions {
    display: flex;
    gap: 8px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.result-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.result-item h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-unit {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.results-footer {
    display: flex;
    justify-content: center;
    padding-top: 16px;
    border-top: 2px solid var(--border-color);
}

/* ========================================
   HISTORY
   ======================================== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.history-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.history-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

.history-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.history-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.history-detail {
    font-size: 0.9rem;
}

.history-detail strong {
    color: var(--primary-color);
}

.history-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ========================================
   WOOD TABLE
   ======================================== */
.info-card {
    background: var(--info-color);
    color: white;
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card i {
    font-size: 24px;
}

.wood-table-container {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.wood-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.wood-table thead {
    background: var(--primary-color);
    color: white;
}

.wood-table th,
.wood-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.wood-table tbody tr:hover {
    background: var(--bg-secondary);
}

.wood-table tbody tr:last-child td {
    border-bottom: none;
}

.tips-section {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-top: 32px;
    box-shadow: var(--shadow-sm);
}

.tips-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tips-section h3 i {
    color: var(--warning-color);
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
}

.tips-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom, 0));
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-color);
    color: var(--bg-color);
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    max-width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

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

.toast.error {
    background: var(--error-color);
    color: white;
}

.toast.warning {
    background: var(--warning-color);
    color: white;
}

@media (min-width: 768px) {
    .toast {
        bottom: 24px;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.app-footer {
    background: var(--surface-color);
    padding: 32px 16px;
    text-align: center;
    margin-top: 48px;
    border-top: 2px solid var(--border-color);
}

.app-footer p {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.b20-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.b20-link:hover {
    text-decoration: underline;
    transform: scale(1.05);
    display: inline-block;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

/* ========================================
   STATIC PAGES
   ======================================== */
.static-page {
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 32px;
}

.page-icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.content-section {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.content-section h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-section ul,
.content-section ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.content-section li {
    margin-bottom: 8px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.contact-info,
.contact-form-container {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    min-width: 32px;
}

.contact-item h3 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.social-links {
    margin-top: 32px;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.social-icons a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.success-message {
    text-align: center;
    padding: 40px;
}

.success-message i {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 16px;
}

/* Legal Pages */
.legal-page {
    font-size: 0.95rem;
}

.legal-content {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h2 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.legal-section h3 {
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.legal-footer {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 32px;
    text-align: center;
}

/* Support Page */
.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 32px 0;
}

@media (min-width: 768px) {
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .support-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.support-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.support-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.guide-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 8px;
}

.tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tutorial-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.tutorial-item:hover {
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.tutorial-item i {
    font-size: 32px;
    color: var(--primary-color);
}

.problem-solution {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--warning-color);
}

.problem-solution h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.problem-solution h3 i {
    color: var(--warning-color);
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.requirement-item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.requirement-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.requirement-item ul {
    margin-left: 0;
    list-style: none;
}

.requirement-item li::before {
    content: "✓ ";
    color: var(--success-color);
    font-weight: bold;
}

/* FAQ Page */
.faq-section {
    margin-bottom: 48px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: var(--card-bg);
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    color: var(--text-color);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-answer[hidden] {
    display: none;
}

.faq-link-section,
.cta-section {
    text-align: center;
    padding: 40px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-top: 32px;
}

.faq-link-section i,
.cta-section i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 24px auto 0;
}

@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* About Page */
.audience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .audience-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.audience-card {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    text-align: center;
}

.audience-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-list li i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-item {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    text-align: center;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.hidden {
    display: none !important;
}

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

.text-muted {
    color: var(--text-muted);
}

.mt-1 { margin-top: calc(var(--spacing-unit) * 1); }
.mt-2 { margin-top: calc(var(--spacing-unit) * 2); }
.mt-3 { margin-top: calc(var(--spacing-unit) * 3); }
.mt-4 { margin-top: calc(var(--spacing-unit) * 4); }

.mb-1 { margin-bottom: calc(var(--spacing-unit) * 1); }
.mb-2 { margin-bottom: calc(var(--spacing-unit) * 2); }
.mb-3 { margin-bottom: calc(var(--spacing-unit) * 3); }
.mb-4 { margin-bottom: calc(var(--spacing-unit) * 4); }

/* ========================================
   ACCESSIBILITY
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .app-header,
    .bottom-nav,
    .app-footer,
    .btn,
    .nav-item {
        display: none !important;
    }
    
    body {
        padding: 0;
        background: var(--card-bg);
    }
    
    .container {
        max-width: 100%;
    }
}
.header-actions { display: flex; align-items: center; gap: 10px; }


/* Mobile Table Responsive Design */
@media (max-width: 768px) {
    .wood-table-container {
        box-shadow: none;
        background: transparent;
        margin: 16px 0;
    }
    .wood-table, .wood-table tbody, .wood-table tr, .wood-table td {
        display: block;
        width: 100%;
    }
    .wood-table thead {
        display: none;
    }
    .wood-table tr {
        margin-bottom: 24px;
        background: var(--card-bg);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border-color);
        overflow: hidden;
    }
    .wood-table td {
        display: flex;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
        gap: 6px;
    }
    .wood-table td:last-child {
        border-bottom: none;
    }
    .wood-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary-color);
        font-size: 0.85em;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .wood-table td strong {
        font-size: 1.1em;
    }
}
