/* Email Assistant User Guide - Two Column Layout */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: #f9fafb;
}

/* Layout Container */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
    width: 34px;
    height: 34px;
}

.mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    background: #0a7ea4;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 10px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* Left Sidebar Navigation */
.sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid #e2e8f0;
    background: #f9fafb;
}

.sidebar-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a7ea4;
    margin-bottom: 10px;
}

.sidebar-header p {
    font-size: 0.9rem;
    color: #687076;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Language Switcher */
.language-switcher {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.language-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #212529;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-select:hover {
    border-color: #0a7ea4;
    background: #f9fafb;
}

.language-select:focus {
    outline: none;
    border-color: #0a7ea4;
    box-shadow: 0 0 0 3px rgba(10, 126, 164, 0.1);
}

/* Navigation Sections */
.nav-sections {
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0a7ea4;
    margin-bottom: 15px;
    padding: 0 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 2px;
}

.nav-link {
    display: block;
    padding: 12px 25px;
    color: #687076;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #0a7ea4;
}

.nav-link.active {
    background: #f0f8ff;
    color: #0a7ea4;
    border-left-color: #0a7ea4;
    font-weight: 600;
}

/* Right Content Area */
.content {
    flex: 1;
    margin-left: 300px;
    padding: 40px 60px;
    max-width: calc(100vw - 300px);
}

/* Content Sections */
.content-section {
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a7ea4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Section Link Icon */
.section-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #687076;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 4px;
    margin-left: 8px;
    flex-shrink: 0;
}

.content-section h2:hover .section-link-icon {
    opacity: 1;
}

.section-link-icon:hover {
    color: #0a7ea4;
    background-color: #f0f8ff;
    opacity: 1;
}

.section-link-icon svg {
    display: block;
}

.section-description {
    font-size: 1.1rem;
    color: #687076;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Content Prompts */
.content-prompt {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.content-prompt p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.content-prompt p:last-child {
    margin-bottom: 0;
}

/* Placeholder Content */
.placeholder-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
}

.placeholder-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 15px;
    margin-top: 25px;
}

.placeholder-content h3:first-child {
    margin-top: 0;
}

.placeholder-content ul,
.placeholder-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.placeholder-content li {
    margin-bottom: 8px;
    color: #495057;
}

.placeholder-content strong {
    color: #0a7ea4;
    font-weight: 600;
}

/* Links - Only for content area, not navigation */
.placeholder-content a,
.content a:not(.nav-link) {
    color: #0a7ea4 !important;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}

.placeholder-content a:hover,
.content a:not(.nav-link):hover {
    color: #086a8a !important;
    text-decoration: underline !important;
}

/* Info Boxes (Tips, Examples, Notes) */
.info-box {
    background-color: #f0f8ff !important;
    border: 1px solid #0a7ea4 !important;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.info-box p {
    margin-bottom: 10px;
    color: #212529;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box ul {
    margin-top: 10px;
    margin-bottom: 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
    color: #495057;
}

.placeholder-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
    margin-top: 20px;
}

/* Image Container and Images */
.image-container {
    margin: 25px 0;
    text-align: center;
}

.guide-image {
    max-width: 100%;
    width: 500px;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.guide-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(10, 126, 164, 0.2);
    border-color: #0a7ea4;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    line-height: 1;
}

.image-modal-close:hover {
    color: #0a7ea4;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0a7ea4;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .content {
        margin-left: 250px;
        padding: 30px 40px;
        max-width: calc(100vw - 250px);
    }
}

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

    .mobile-overlay {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        transform: translateX(-100%);
        border-right: 1px solid #e2e8f0;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        padding: 80px 20px 30px 20px;
        max-width: 100%;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .sidebar-header {
        padding: 20px;
        padding-top: 70px;
    }

    .sidebar-header h1 {
        font-size: 1.3rem;
    }

    .nav-section h3 {
        padding: 0 20px;
    }

    .nav-link {
        padding: 10px 20px;
    }

    /* Close sidebar when link is clicked on mobile */
    .nav-link:active {
        background: #f0f8ff;
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        top: 15px;
        right: 15px;
        padding: 6px;
    }

    .mobile-menu-toggle span {
        width: 16px;
    }

    .content {
        padding: 70px 15px 20px 15px;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .placeholder-content {
        padding: 20px;
    }

    .content-prompt {
        padding: 15px;
    }

    .guide-image {
        width: 100%;
        max-width: 100%;
    }

    .image-modal-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }

    .section-link-icon {
        opacity: 0.5;
        margin-left: 8px;
    }

    .section-link-icon svg {
        width: 16px;
        height: 16px;
    }

    .toast {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .sidebar {
        display: none;
    }

    .content {
        margin-left: 0;
        max-width: 100%;
    }

    .content-prompt {
        display: none;
    }

    .content-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}