* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    overflow: hidden;
    color: #ffffff;
}

/* Panel superior estilo GNOME */
.top-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-left, .panel-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.activities-button {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
}

.activities-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.clock {
    font-size: 14px;
    font-weight: 500;
}

.system-tray {
    display: flex;
    gap: 10px;
}

.tray-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tray-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Botón de cambio de fondo */
.background-toggle {
    position: fixed;
    top: 50px;
    right: 20px;
    z-index: 1001;
}

.toggle-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.toggle-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.toggle-btn:active {
    transform: scale(0.95);
}

/* Dock vertical izquierdo */
.left-dock {
    position: fixed;
    left: 0;
    top: 40px;
    bottom: 0;
    width: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 10px;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-item {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.dock-item.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.dock-item i {
    font-size: 20px;
    color: #ffffff;
}

.dock-item.apps-grid {
    margin-top: auto;
}

/* Área principal */
.main-area {
    position: absolute;
    left: 60px;
    top: 40px;
    right: 0;
    bottom: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Barra de búsqueda */
.search-bar {
    width: 600px;
    max-width: 80%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-bar i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    outline: none;
}

.search-bar input::placeholder {
    color: #000000;
}

/* Grid de aplicaciones */
.apps-grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin-bottom: 40px;
}

.app-icon {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.app-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.app-icon i {
    font-size: 32px;
    margin-bottom: 8px;
    color: #ffffff;
}

.app-icon span {
    font-size: 12px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* Botones de navegación */
.navigation-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.nav-button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-button.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

/* Indicadores de página */
.page-indicators {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 40px;
    right: 40px;
}

.page-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-dot.active {
    background: rgba(255, 255, 255, 0.8);
}

.page-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Ventanas */
.windows-container {
    position: fixed;
    top: 40px;
    left: 60px;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 500;
}

.window {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 300px;
    min-height: 200px;
    pointer-events: all;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
}

.window-header {
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-radius: 8px 8px 0 0;
    cursor: move;
}

.window-title {
    font-size: 12px;
    font-weight: 500;
}

.window-controls {
    display: flex;
    gap: 5px;
}

.window-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.window-control.close {
    background: #ff5f56;
}

.window-control.minimize {
    background: #ffbd2e;
}

.window-control.maximize {
    background: #27c93f;
}

.window-control:hover {
    transform: scale(1.1);
}

.window-content {
    padding: 20px;
    height: calc(100% - 30px);
    overflow: auto;
}

/* Aplicaciones específicas */
.terminal-content {
    background: #1a1a1a;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 10px;
    border-radius: 4px;
    height: 100%;
}

.calculator-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 10px;
}

.calc-button {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calc-display {
    grid-column: span 4;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    text-align: right;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.window.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .left-dock {
        width: 50px;
    }
    
    .main-area {
        left: 50px;
        padding: 20px;
    }
    
    .apps-grid-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .app-icon {
        width: 80px;
        height: 80px;
    }
    
    .app-icon i {
        font-size: 24px;
    }
    
    .app-icon span {
        font-size: 10px;
    }
    
    .search-bar {
        width: 90%;
        padding: 12px 16px;
    }
} 