/* Estilos para el sistema de navegación avanzada */

/* Panel de Navegación Avanzada */
.nav-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 10000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.nav-panel.active {
    display: flex;
}
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border-bottom: 1px solid var(--border-color);
}
.nav-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.close-btn:hover {
    background: rgba(255,255,255,0.2);
}
.nav-tabs {
    display: flex;
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
}
.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-bottom-color: var(--accent-color);
}
.tab-btn:hover {
    background: var(--hover-color);
}
.nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.nav-section {
    margin-bottom: 20px;
}
.nav-section h4 {
    margin: 0 0 12px 0;
    color: var(--primary-color);
    font-size: 1rem;
}
.nav-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.nav-actions button {
    padding: 7px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-actions button:hover {
    background: var(--hover-color);
}
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}
.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 5px;
    background: var(--secondary-bg);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    border-left: 3px solid var(--primary-color);
    font-size: 0.95rem;
}
.nav-item:hover {
    background: var(--hover-color);
}
.delete-btn {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 1rem;
    margin-left: 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}
.delete-btn:hover {
    background: rgba(220,53,69,0.1);
}
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    font-size: 0.97rem;
}
.breadcrumb {
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: text-decoration 0.2s;
}
.breadcrumb:hover {
    text-decoration: underline;
}
.breadcrumb-sep {
    color: var(--text-muted);
}
/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 13px 18px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10002;
    animation: slideIn 0.3s ease-out;
}
.notification.success {
    background: var(--success-color);
}
.notification.error {
    background: var(--error-color);
}
.notification.info {
    background: var(--info-color);
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 600px) {
    .nav-panel {
        width: 98%;
        max-width: 99vw;
        max-height: 98vh;
    }
    .nav-content {
        padding: 10px;
    }
    .nav-header {
        padding: 10px;
    }
}
[data-theme="dark"] .nav-panel {
    background: var(--dark-bg);
    border-color: var(--dark-border);
}
[data-theme="dark"] .nav-header {
    background: var(--dark-primary);
}
[data-theme="dark"] .nav-tabs {
    background: var(--dark-secondary);
}
[data-theme="dark"] .tab-btn {
    color: var(--dark-text);
}
[data-theme="dark"] .tab-btn.active {
    background: var(--dark-primary);
}
[data-theme="dark"] .tab-btn:hover {
    background: var(--dark-hover);
}
[data-theme="dark"] .nav-content {
    background: var(--dark-bg);
}
[data-theme="dark"] .nav-item {
    background: var(--dark-secondary);
}
[data-theme="dark"] .nav-item:hover {
    background: var(--dark-hover);
}
[data-theme="dark"] .nav-actions button {
    background: var(--dark-bg);
    color: var(--dark-text);
    border-color: var(--dark-border);
}
[data-theme="dark"] .nav-actions button:hover {
    background: var(--dark-hover);
}
[data-theme="dark"] .breadcrumb {
    color: var(--dark-primary);
}
[data-theme="dark"] .breadcrumb-sep {
    color: var(--dark-text);
}

/* Panel de navegación */
.navigation-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.navigation-panel.show {
    opacity: 1;
    visibility: visible;
}

.navigation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.navigation-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-navigation {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-navigation:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navigation-content {
    display: flex;
    flex-direction: column;
    height: calc(85vh - 80px);
}

/* Pestañas de navegación */
.navigation-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.nav-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
}

.nav-tab:hover {
    background: #e9ecef;
    color: #333;
}

.nav-tab.active {
    background: white;
    color: #667eea;
    border-bottom-color: #667eea;
}

.nav-tab i {
    font-size: 16px;
}

/* Contenido de pestañas */
.navigation-tab-content {
    flex: 1;
    overflow: hidden;
}

.tab-content {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* Controles de historial */
.history-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.history-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.history-btn:last-child {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

/* Lista de historial */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.history-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.history-content {
    flex: 1;
}

.history-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.history-time {
    font-size: 12px;
    color: #666;
}

.history-actions {
    display: flex;
    gap: 5px;
}

.history-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.history-remove:hover {
    background: #fdf2f2;
}

/* Estado vacío */
.history-empty,
.bookmarks-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.history-empty i,
.bookmarks-empty i {
    font-size: 48px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.history-empty p,
.bookmarks-empty p {
    margin: 5px 0;
    font-size: 16px;
}

/* Controles de marcadores */
.bookmarks-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.bookmark-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bookmark-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.bookmark-btn:last-child {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

/* Lista de marcadores */
.bookmarks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bookmark-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bookmark-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.bookmark-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.bookmark-content {
    flex: 1;
}

.bookmark-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.bookmark-path {
    font-size: 12px;
    color: #666;
}

.bookmark-actions {
    display: flex;
    gap: 5px;
}

.bookmark-edit,
.bookmark-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.bookmark-edit {
    color: #3498db;
}

.bookmark-delete {
    color: #e74c3c;
}

.bookmark-edit:hover {
    background: #ebf8ff;
}

.bookmark-delete:hover {
    background: #fdf2f2;
}

/* Controles de acceso rápido */
.quick-access-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.quick-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.quick-btn:last-child {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* Grid de acceso rápido */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-access-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.quick-access-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.quick-access-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
}

/* Información de breadcrumbs */
.breadcrumbs-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumbs-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.current-path {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    font-family: monospace;
    color: #666;
}

/* Controles de breadcrumbs */
.breadcrumbs-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Breadcrumbs en la página */
.breadcrumbs-container {
    background: #f8f9fa;
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-item i {
    color: #666;
    font-size: 12px;
}

.breadcrumb-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Acceso rápido en la página */
.quick-access-container {
    background: white;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.quick-access-empty {
    text-align: center;
    padding: 20px;
    color: #666;
}

.quick-access-empty i {
    font-size: 32px;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.add-quick-access-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.add-quick-access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Marcadores en la barra lateral */
.bookmarks-container {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.bookmarks-header h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* Botón de navegación */
#navigationBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

#navigationBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#navigationBtn i {
    font-size: 16px;
}

/* Notificaciones de navegación */
.navigation-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    border-left: 4px solid #667eea;
}

.navigation-notification.show {
    transform: translateX(0);
}

.navigation-notification.success {
    border-left-color: #27ae60;
}

.navigation-notification.error {
    border-left-color: #e74c3c;
}

.navigation-notification.warning {
    border-left-color: #f39c12;
}

.navigation-notification.info {
    border-left-color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .navigation-panel {
        width: 95%;
        margin: 20px;
    }
    
    .navigation-tabs {
        flex-direction: column;
    }
    
    .nav-tab {
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    .nav-tab.active {
        border-bottom: none;
        border-right-color: #667eea;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .history-controls,
    .bookmarks-controls,
    .quick-access-controls {
        flex-direction: column;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .breadcrumbs-controls {
        flex-direction: column;
    }
    
    .breadcrumbs {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Tema oscuro */
[data-theme="dark"] .navigation-panel {
    background: #2d3748;
    color: white;
}

[data-theme="dark"] .navigation-tabs {
    background: #4a5568;
    border-bottom-color: #718096;
}

[data-theme="dark"] .nav-tab {
    color: #a0aec0;
}

[data-theme="dark"] .nav-tab:hover {
    background: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .nav-tab.active {
    background: #2d3748;
    color: #4299e1;
    border-bottom-color: #4299e1;
}

[data-theme="dark"] .history-item,
[data-theme="dark"] .bookmark-item,
[data-theme="dark"] .quick-access-item {
    background: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .history-item:hover,
[data-theme="dark"] .bookmark-item:hover,
[data-theme="dark"] .quick-access-item:hover {
    border-color: #4299e1;
}

[data-theme="dark"] .history-title,
[data-theme="dark"] .bookmark-title,
[data-theme="dark"] .quick-access-title {
    color: #e2e8f0;
}

[data-theme="dark"] .history-time,
[data-theme="dark"] .bookmark-path {
    color: #a0aec0;
}

[data-theme="dark"] .breadcrumbs-container {
    background: #4a5568;
    border-bottom-color: #718096;
}

[data-theme="dark"] .quick-access-container {
    background: #4a5568;
    border-bottom-color: #718096;
}

[data-theme="dark"] .current-path {
    background: #4a5568;
    color: #a0aec0;
}

[data-theme="dark"] .navigation-notification {
    background: #2d3748;
    color: white;
}

/* Animaciones */
@keyframes navigationSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.navigation-panel.show {
    animation: navigationSlideIn 0.3s ease;
}

/* Scrollbar personalizado */
.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

[data-theme="dark"] .tab-content::-webkit-scrollbar-track {
    background: #4a5568;
}

[data-theme="dark"] .tab-content::-webkit-scrollbar-thumb {
    background: #718096;
}

[data-theme="dark"] .tab-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
} 