/* Dashboard V2 - Style completo e independente */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff3b3b;
    --primary-dark: #cc2f2f;
    --bg-dark: #0a0a0a;
    --bg-panel: #1a1a1a;
    --bg-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #333333;
    --error-color: #ff4444;
    --success-color: #44ff44;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a15 50%, #0a0a0a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 147, 205, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 147, 205, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Panel */
.main-panel.v2-panel {
    background: linear-gradient(145deg, #1a1a1a 0%, #151515 100%);
    border: 2px solid var(--primary-color);
    border-radius: 24px;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    box-shadow: 
        0 0 60px rgba(255, 147, 205, 0.4),
        0 0 100px rgba(255, 147, 205, 0.2),
        0 0 150px rgba(255, 147, 205, 0.1),
        inset 0 0 30px rgba(255, 147, 205, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.main-panel.v2-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Panel Body V2 - Layout horizontal */
.v2-panel-body {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
}

/* Sidebar Navigation Lateral */
.sidebar-navigation {
    display: flex;
    flex-direction: column;
    width: 200px;
    min-width: 200px;
    padding: 15px;
    
    border-right: 2px solid rgba(255, 147, 205, 0.2);
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.sidebar-navigation::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

/* Botões de navegação lateral */
.nav-tab-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #aaaaaa;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    width: 100%;
}

.nav-tab-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 147, 205, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-tab-sidebar:hover::before {
    left: 100%;
}

.nav-tab-sidebar .nav-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.nav-tab-sidebar .nav-icon svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.nav-tab-sidebar .nav-text {
    position: relative;
    z-index: 1;
    flex: 1;
}

.nav-tab-sidebar:not(.active):hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 147, 205, 0.3);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 147, 205, 0.2), 0 0 30px rgba(255, 147, 205, 0.1);
}

.nav-tab-sidebar.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 
        0 4px 20px rgba(255, 147, 205, 0.4),
        0 0 40px rgba(255, 147, 205, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.nav-tab-sidebar.active .nav-icon {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Scrollbar da sidebar */
.sidebar-navigation::-webkit-scrollbar {
    width: 6px;
}

.sidebar-navigation::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.sidebar-navigation::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 147, 205, 0.3);
}

.sidebar-navigation::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary-color));
}

/* Content Wrapper */
.v2-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

/* Panel Header New */
.panel-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(255, 147, 205, 0.12) 0%, rgba(255, 147, 205, 0.04) 100%);
    border-bottom: 1px solid rgba(255, 147, 205, 0.15);
    position: relative;
}

.panel-header-new::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.4;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-icon-new {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 147, 205, 0.2) 0%, rgba(255, 147, 205, 0.1) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 14px;
    color: var(--primary-color);
    box-shadow: 
        0 0 20px rgba(255, 147, 205, 0.3),
        inset 0 0 10px rgba(255, 147, 205, 0.1);
}

.header-icon-new svg {
    width: 28px;
    height: 28px;
}

.header-text h1 {
    color: var(--primary-color);
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 147, 205, 0.5), 0 0 20px rgba(255, 147, 205, 0.3);
    margin: 0;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 4px 0 0 0;
    opacity: 0.8;
}

.icon-btn-new {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #cccccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.icon-btn-new::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 147, 205, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.icon-btn-new:hover::before {
    width: 100%;
    height: 100%;
}

.icon-btn-new svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.icon-btn-new:hover {
    color: var(--text-primary);
    background: rgba(255, 147, 205, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 147, 205, 0.3), 0 0 30px rgba(255, 147, 205, 0.2);
    transform: scale(1.05);
}

/* Content Area New */
.content-area-new {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.2) 0%, transparent 100%);
}

.content-area-new::-webkit-scrollbar {
    width: 8px;
}

.content-area-new::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.content-area-new::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 147, 205, 0.3), 0 0 20px rgba(255, 147, 205, 0.2);
}

.content-area-new::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary-color));
}

/* Panel Footer */
.panel-footer {
    padding: 20px 30px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, rgba(15, 15, 15, 0.9) 100%);
    border-top: 1px solid rgba(255, 147, 205, 0.15);
    text-align: center;
    position: relative;
}

.panel-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.panel-footer .footer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.panel-footer .footer-text {
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.7;
}

.panel-footer .footer-credits {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 147, 205, 0.3), 0 0 20px rgba(255, 147, 205, 0.2);
}

.panel-footer .footer-version {
    color: var(--text-secondary);
    font-size: 11px;
    opacity: 0.6;
}

/* Section */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* Option Item */
.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(15, 15, 15, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.option-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 147, 205, 0.1), transparent);
    transition: left 0.5s ease;
}

.option-item:hover::before {
    left: 100%;
}

.option-item:hover {
    border-color: rgba(255, 147, 205, 0.4);
    box-shadow: 
        0 0 20px rgba(255, 147, 205, 0.2),
        0 0 40px rgba(255, 147, 205, 0.1),
        inset 0 0 20px rgba(255, 147, 205, 0.05);
    transform: translateX(5px);
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
}

.option-label {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(255, 255, 255, 0.1);
}

.slider:after {
    position: absolute;
    content: "✓";
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
    z-index: 1;
}

.toggle-switch input:checked + .slider {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    box-shadow: 
        0 0 20px rgba(255, 147, 205, 0.4),
        0 0 40px rgba(255, 147, 205, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 255, 255, 0.3);
}

.toggle-switch input:checked + .slider:after {
    transform: translate(-50%, -50%) scale(1);
}

.toggle-switch:hover .slider {
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 147, 205, 0.2),
        0 0 30px rgba(255, 147, 205, 0.1);
}

.toggle-switch input:checked:hover + .slider {
    box-shadow: 
        0 0 25px rgba(255, 147, 205, 0.5),
        0 0 50px rgba(255, 147, 205, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.15);
}

/* Range Slider */
.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 300px;
}

.range-slider {
    flex: 1;
    height: 8px;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 4px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 15px rgba(255, 147, 205, 0.5),
        0 0 30px rgba(255, 147, 205, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 
        0 0 20px rgba(255, 147, 205, 0.7),
        0 0 40px rgba(255, 147, 205, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.4);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 15px rgba(255, 147, 205, 0.5),
        0 0 30px rgba(255, 147, 205, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 
        0 0 20px rgba(255, 147, 205, 0.7),
        0 0 40px rgba(255, 147, 205, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.4);
}

.slider-value {
    color: var(--primary-color);
    font-weight: 700;
    min-width: 40px;
    text-align: right;
    text-shadow: 0 0 10px rgba(255, 147, 205, 0.5), 0 0 20px rgba(255, 147, 205, 0.3);
    font-size: 16px;
}

/* Injection Section */
.injection-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-inject {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(255, 147, 205, 0.3),
        0 0 30px rgba(255, 147, 205, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-inject::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-inject:hover::before {
    left: 100%;
}

.btn-inject:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 
        0 6px 25px rgba(255, 147, 205, 0.5),
        0 0 50px rgba(255, 147, 205, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-inject:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(255, 147, 205, 0.3),
        0 0 20px rgba(255, 147, 205, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-inject .btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.btn-inject .btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-inject.injected {
    background: linear-gradient(135deg, #44ff44 0%, #33cc33 100%);
    border-color: rgba(68, 255, 68, 0.5);
    color: var(--text-primary);
    box-shadow: 
        0 4px 15px rgba(68, 255, 68, 0.3),
        0 0 30px rgba(68, 255, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.btn-inject.injected:hover {
    transform: none;
    background: linear-gradient(135deg, #44ff44 0%, #33cc33 100%);
    box-shadow: 
        0 4px 15px rgba(68, 255, 68, 0.3),
        0 0 30px rgba(68, 255, 68, 0.2);
}

.injection-status {
    margin-bottom: 15px;
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(15, 15, 15, 0.9) 100%);
    border: 1px solid rgba(255, 147, 205, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 
        0 0 20px rgba(255, 147, 205, 0.1),
        0 0 40px rgba(255, 147, 205, 0.05),
        inset 0 0 20px rgba(255, 147, 205, 0.05);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

#injection-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#injection-icon svg {
    width: 100%;
    height: 100%;
}

.injection-log-container {
    margin-top: 15px;
}

.injection-log {
    width: 100%;
    height: 200px;
    background: #000000;
    border: 1px solid rgba(255, 147, 205, 0.3);
    border-radius: 12px;
    padding: 15px;
    color: #ff3333;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: none;
    line-height: 1.6;
    box-shadow: 
        inset 0 0 30px rgba(255, 0, 0, 0.1),
        0 0 20px rgba(255, 147, 205, 0.1),
        0 0 40px rgba(255, 147, 205, 0.05);
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.injection-log::-webkit-scrollbar {
    width: 8px;
}

.injection-log::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.injection-log::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-panel.v2-panel {
        max-width: 100%;
        min-height: auto;
    }
    
    /* Mantém layout horizontal (sidebar lateral) no mobile */
    .v2-panel-body {
        flex-direction: row;
    }
    
    /* Sidebar lateral mais estreita no mobile, apenas ícones */
    .sidebar-navigation {
        width: 70px;
        min-width: 70px;
        padding: 10px 8px;
        border-right: 2px solid rgba(255, 147, 205, 0.2);
        border-bottom: none;
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    /* Esconde o texto no mobile, mostra apenas ícones */
    .nav-tab-sidebar {
        padding: 12px 8px;
        flex-direction: column;
        gap: 0;
        text-align: center;
        justify-content: center;
    }
    
    .nav-tab-sidebar .nav-text {
        display: none; /* Esconde o texto no mobile */
    }
    
    .nav-tab-sidebar .nav-icon {
        width: 24px;
        height: 24px;
        margin: 0 auto;
    }
    
    .nav-tab-sidebar:not(.active):hover {
        transform: translateX(3px);
    }
    
    .nav-tab-sidebar.active {
        transform: translateX(3px);
    }
    
    .v2-content-wrapper {
        flex: 1;
        min-height: 0;
        min-width: 0;
    }
    
    .panel-header-new {
        padding: 20px 20px;
    }
    
    .header-icon-new {
        width: 40px;
        height: 40px;
    }
    
    .header-text h1 {
        font-size: 20px;
    }
    
    .header-subtitle {
        font-size: 11px;
    }
    
    .content-area-new {
        padding: 20px;
    }
    
    .panel-footer {
        padding: 15px 20px;
    }
    
    .option-item {
        padding: 14px 16px;
        margin-bottom: 10px;
    }
    
    .option-label {
        font-size: 14px;
    }
    
    .toggle-switch {
        width: 48px;
        height: 26px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
    }
    
    .toggle-switch input:checked + .slider:before {
        transform: translateX(22px);
    }
    
    .btn-inject {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .injection-log {
        height: 150px;
        font-size: 11px;
    }
}

/* ========================================
LANDSCAPE MODE (Tela Deitada) - V2
======================================== */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding: 10px;
        align-items: center;
        justify-content: center;
    }

    .container {
        width: 100%;
        max-width: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-panel.v2-panel {
        max-width: 300px;
        width: 300px;
        min-height: auto;
        max-height: 95vh;
        border-radius: 24px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .main-panel.v2-panel::before {
        border-radius: 24px 24px 0 0;
    }

    .v2-panel-body {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: row;
    }

    /* Sidebar mais estreita em landscape */
    .sidebar-navigation {
        width: 60px;
        min-width: 60px;
        padding: 8px 6px;
        flex-shrink: 0;
    }

    .nav-tab-sidebar {
        padding: 10px 6px;
        flex-direction: column;
        gap: 0;
        text-align: center;
        justify-content: center;
    }

    .nav-tab-sidebar .nav-text {
        display: none;
    }

    .nav-tab-sidebar .nav-icon {
        width: 20px;
        height: 20px;
        margin: 0 auto;
    }

    .v2-content-wrapper {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .panel-header-new {
        padding: 12px 18px;
        flex-shrink: 0;
    }

    .header-icon-new {
        width: 32px;
        height: 32px;
    }

    .header-icon-new svg {
        width: 18px;
        height: 18px;
    }

    .header-text h1 {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .header-subtitle {
        font-size: 10px;
        margin-top: 2px;
    }

    .content-area-new {
        padding: 12px 18px;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
    }

    .option-item {
        padding: 10px 14px;
        margin-bottom: 8px;
    }

    .option-label {
        font-size: 13px;
    }

    .toggle-switch {
        width: 44px;
        height: 24px;
    }

    .slider:before {
        height: 18px;
        width: 18px;
    }

    .toggle-switch input:checked + .slider:before {
        transform: translateX(20px);
    }

    .slider-container {
        max-width: 250px;
    }

    .slider-value {
        font-size: 14px;
        min-width: 35px;
    }

    .panel-footer {
        padding: 10px 18px;
        flex-shrink: 0;
    }

    .panel-footer .footer-text {
        font-size: 10px;
    }

    .panel-footer .footer-credits {
        font-size: 11px;
    }

    .panel-footer .footer-version {
        font-size: 9px;
    }

    .btn-inject {
        padding: 10px 14px;
        font-size: 12px;
    }

    .injection-status {
        padding: 10px 14px;
        margin-bottom: 10px;
    }

    .status-indicator {
        font-size: 12px;
    }

    .injection-log {
        height: 100px;
        font-size: 10px;
        padding: 10px;
    }

    .injection-buttons {
        gap: 10px;
        margin-bottom: 12px;
    }
}

/* Landscape para telas muito pequenas - V2 */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        max-width: 300px;
    }

    .main-panel.v2-panel {
        max-width: 300px;
        width: 300px;
        max-height: 98vh;
        border-radius: 24px;
        overflow: hidden;
    }

    .main-panel.v2-panel::before {
        border-radius: 24px 24px 0 0;
    }

    .sidebar-navigation {
        width: 55px;
        min-width: 55px;
        padding: 6px 4px;
    }

    .nav-tab-sidebar {
        padding: 8px 4px;
    }

    .nav-tab-sidebar .nav-icon {
        width: 18px;
        height: 18px;
    }

    .panel-header-new {
        padding: 10px 15px;
    }

    .header-text h1 {
        font-size: 14px;
    }

    .header-subtitle {
        font-size: 9px;
    }

    .content-area-new {
        padding: 10px 15px;
    }

    .option-item {
        padding: 8px 12px;
        margin-bottom: 6px;
    }

    .option-label {
        font-size: 12px;
    }

    .injection-log {
        height: 80px;
        font-size: 9px;
    }
}

