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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: #2563eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    color: #374151;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.nav-link.active {
    background-color: #2563eb;
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: 0.3s;
}

/* User Navigation Elements */
.account-dropdown-container {
    position: relative;
    display: inline-block;
}

.account-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

.account-dropdown a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.account-dropdown a:hover {
    background: #f9fafb;
}

.account-dropdown a:last-child {
    border-bottom: none;
}

/* Main Content */
main {
    padding: 24px 0;
    min-height: calc(100vh - 128px);
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 24px;
    margin-bottom: 24px;
}

/* Home Page */
.hero {
    text-align: center;
    padding: 48px 0;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 16px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
}

.story-section {
    background: #dbeafe;
    padding: 32px;
    border-radius: 8px;
    margin: 48px 0;
    border-left: 4px solid #2563eb;
}

.story-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 16px;
    color: #1f2937;
}

.story-section p {
    margin-bottom: 16px;
    color: #374151;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.feature-card {
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #2563eb;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
}

/* Manual Page */
.manual-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-top: 20px;
}

.manual-nav {
    background: white;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 90px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.manual-nav h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.manual-nav button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 12px 16px;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.2s;
    line-height: 1.4;
    font-weight: 500;
}

.manual-nav button:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.manual-nav button.active {
    background: #2563eb;
    color: white;
}

.manual-content {
    background: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 600px;
}

.manual-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.manual-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #374151;
}

.manual-content strong {
    color: #1f2937;
    font-weight: 600;
}

.manual-section {
    display: none;
}

.manual-section.active {
    display: block;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn {
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Account Page */
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-value {
    font-weight: 600;
    color: #1f2937;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 32px auto;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Highlights */
.highlight-section {
    background: #f0f9ff;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    border-left: 4px solid #0ea5e9;
}

.highlight-section.green {
    background: #f0fdf4;
    border-left-color: #10b981;
}

.highlight-section.gray {
    background: #f9fafb;
    border-left-color: #6b7280;
}

.highlight-section.blue {
    background: #dbeafe;
    border-left-color: #2563eb;
}

.highlight-section h3 {
    margin-top: 0;
    color: #1f2937;
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 32px 0;
    margin-top: 48px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .nav-menu.mobile-open {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #f3f4f6;
    }

    .manual-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .manual-nav {
        position: static;
        order: 2;
        padding: 16px;
    }

    .manual-content {
        order: 1;
        padding: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.25rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-placeholder {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 32px 0;
    }

    .story-section {
        padding: 20px;
        margin: 24px 0;
    }

    .manual-content {
        padding: 20px 16px;
    }

    .card {
        padding: 20px 16px;
    }
}