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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0F172A;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* Menu Lateral */
.sidebar {
    width: 280px;
    background: #1E293B;
    color: #F1F5F9;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header h1 i {
    font-size: 22px;
}

.sidebar-header p {
    font-size: 12px;
    color: #94A3B8;
}

.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #E2E8F0;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.08);
}

/* Category-specific colors - Warm, harmonious palette */
.menu-section:nth-of-type(1) .menu-item {
    border-left-color: transparent;
}

.menu-section:nth-of-type(1) .menu-item:hover,
.menu-section:nth-of-type(1) .menu-item.active {
    border-left-color: #FF6B6B;
}

.menu-section:nth-of-type(1) .menu-section-title {
    color: #FF6B6B;
}

.menu-section:nth-of-type(1) .menu-item-icon {
    color: #FF6B6B;
}

.menu-section:nth-of-type(2) .menu-item:hover,
.menu-section:nth-of-type(2) .menu-item.active {
    border-left-color: #4ECDC4;
}

.menu-section:nth-of-type(2) .menu-section-title {
    color: #4ECDC4;
}

.menu-section:nth-of-type(2) .menu-item-icon {
    color: #4ECDC4;
}

.menu-section:nth-of-type(3) .menu-item:hover,
.menu-section:nth-of-type(3) .menu-item.active {
    border-left-color: #FFE66D;
}

.menu-section:nth-of-type(3) .menu-section-title {
    color: #FFE66D;
}

.menu-section:nth-of-type(3) .menu-item-icon {
    color: #FFE66D;
}

.menu-section:nth-of-type(4) .menu-item:hover,
.menu-section:nth-of-type(4) .menu-item.active {
    border-left-color: #FF8B94;
}

.menu-section:nth-of-type(4) .menu-section-title {
    color: #FF8B94;
}

.menu-section:nth-of-type(4) .menu-item-icon {
    color: #FF8B94;
}

.menu-section:nth-of-type(5) .menu-item:hover,
.menu-section:nth-of-type(5) .menu-item.active {
    border-left-color: #95E1D3;
}

.menu-section:nth-of-type(5) .menu-section-title {
    color: #95E1D3;
}

.menu-section:nth-of-type(5) .menu-item-icon {
    color: #95E1D3;
}

.menu-item-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-text {
    flex: 1;
    font-size: 14px;
}

.menu-item-external-icon {
    font-size: 12px;
    margin-left: 0.5em;
    color: #FFE66D;
    display: inline-flex;
}

.menu-section {
    margin-top: 20px;
    padding: 0 20px;
}

.menu-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 0 5px;
}

/* Área Principal com Iframe */
.main-content {
    flex: 1;
    margin-left: 280px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0F172A;
}

.iframe-header {
    background: #1E293B;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.iframe-header h2 {
    font-size: 18px;
    color: #F1F5F9;
    font-weight: 500 bold;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-btn {
    background: #4ECDC4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease;
}

.header-btn:hover {
    background: #45B8B0;
}

.header-btn i {
    font-size: 12px;
}

.back-btn {
    background: #475569;
}

.back-btn:hover {
    background: #334155;
}

.share-btn {
    background: #FF6B6B;
    position: relative;
}

.share-btn:hover {
    background: #FF5252;
}

.share-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

.share-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
    color: #E2E8F0;
    text-decoration: none;
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.share-option i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.share-option.whatsapp i {
    color: #25D366;
}

.share-option.instagram i {
    color: #E4405F;
}

.share-option.x i {
    color: #000000;
}

.iframe-container {
    flex: 1;
    position: relative;
    background: #0F172A;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    transition: opacity 0.3s ease;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #94A3B8;
    font-size: 14px;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* Classes para Mobile */
.mobile-menu-btn {
    display: none;
}

.mobile-overlay {
    display: none;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #F1F5F9;
        font-size: 20px;
        cursor: pointer;
        padding: 5px;
    }

    .header-title-container {
        display: flex;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1500;
        backdrop-filter: blur(2px);
    }

    .mobile-overlay.mobile-open {
        display: block;
    }

    .sidebar {
        width: 280px;
        height: 100vh;
        max-height: 100vh;
        position: fixed;
        top: 0;
        left: -100%;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        z-index: 2000;
        transition: left 0.3s ease;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        height: 100vh;
        flex: 1;
    }

    .iframe-header {
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .iframe-header h2 {
        font-size: 16px;
    }

    .header-buttons {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        justify-content: flex-start;
    }

    .header-btn {
        padding: 6px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* Scrollbar personalizado */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}