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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Custom Header */
.custom-header {
    background: #ffffff;
    border-bottom: 2px solid #e5e5e5;
    padding: 20px 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

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

.logo-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #000000;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo-section h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.025em;
}

.logo-section .subtitle {
    font-size: 0.85rem;
    color: #666666;
    font-weight: 500;
    margin-left: 8px;
}

.nav-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: #000000;
    color: #000000;
    transform: translateY(-1px);
}

.nav-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* RapiDoc Container */
.rapidoc-container {
    width: 100%;
    height: calc(100vh - 90px);
}

rapi-doc {
    width: 100%;
    height: 100%;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #000000;
    z-index: 1001;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.theme-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Dark Mode */
body.dark-theme {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-theme .custom-header {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 2px solid #404040;
}

body.dark-theme .logo-icon {
    stroke: #ffffff;
}

body.dark-theme .logo-section h1 {
    color: #ffffff;
}

body.dark-theme .logo-section .subtitle {
    color: #cccccc;
}

body.dark-theme .nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

body.dark-theme .nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
}

body.dark-theme .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #404040;
    color: #ffffff;
}

body.dark-theme .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .custom-header {
        padding: 15px 0;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .logo-section {
        flex-direction: column;
        gap: 5px;
    }

    .logo-section .subtitle {
        margin-left: 0;
    }

    .nav-section {
        justify-content: center;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .rapidoc-container {
        height: calc(100vh - 150px);
    }

    .theme-toggle {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}