/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
/* Tipografia */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}
/* Fundo animado fixo */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.area {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
/* Círculos animados */
.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    list-style: none;
}
.circles li {
    position: absolute;
    display: block;
    list-style: none;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
    border-radius: 2px;
}
/* Conteúdo das páginas */
.desktop-area {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 6rem 0 4rem;
}
/* Variações dos círculos */
.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}
.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}
.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}
.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}
.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}
.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}
.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}
.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}
.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}
.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}
/* Animação dos círculos */
@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}
/* ===========================================
   SISTEMA DE JANELAS DE APLICATIVOS
   =========================================== */
/* Janelas de Apps */
.app-window {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    min-height: 300px;
    z-index: 100;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-window.minimized {
    transform: scale(0.1);
    opacity: 0;
    pointer-events: none;
}
/* Header das janelas */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: move;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}
.app-title {
    font-weight: 600;
    display: flex;
    align-items: center;
}
.app-controls {
    display: flex;
    gap: 8px;
}
.control-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s ease;
}
.control-btn.close {
    background: #ff5f57;
    color: white;
}
.control-btn.minimize {
    background: #ffbd2e;
    color: white;
}
.control-btn.maximize {
    background: #28ca42;
    color: white;
}
.control-btn:hover {
    transform: scale(1.1);
}
/* Conteúdo das janelas */
.app-content {
    padding: 20px;
    height: calc(100% - 60px);
    overflow-y: auto;
}
/* ===========================================
   DOCK (BARRA INFERIOR)
   =========================================== */
.dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px 16px;
    z-index: 1000;
    transition: all 0.3s ease;
}
.dock-items {
    display: flex;
    gap: 12px;
    align-items: center;
}
.dock-item {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}
.dock-item:hover {
    transform: translateY(-8px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}
.dock-item i {
    font-size: 20px;
    color: #64ffda;
}
/* ===========================================
   APP POMODORO
   =========================================== */
.pomodoro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}
.timer-circle {
    position: relative;
    width: 200px;
    height: 200px;
}
.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: bold;
    color: #374151;
    font-family: 'Courier New', monospace;
}
.timer-controls {
    display: flex;
    gap: 15px;
}
.timer-modes {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.mode-btn {
    padding: 8px 16px;
    border: 2px solid #64ffda;
    background: transparent;
    color: #047857; /* Mudança: verde mais escuro para melhor legibilidade */
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}
.mode-btn:hover,
.mode-btn.active {
    background: #64ffda;
    color: #1a1a1a; /* Mudança: texto escuro para melhor contraste */
}
/* ===========================================
   APP TAREFAS
   =========================================== */
.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}
.task-input-container {
    display: flex;
    gap: 10px;
}
.task-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}
.task-input:focus {
    border-color: #64ffda;
}
.tasks-filter {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.filter-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}
.filter-btn:hover,
.filter-btn.active {
    background: #64ffda;
    color: #1a1a1a; /* Mudança: texto escuro para melhor contraste */
    border-color: #64ffda;
}
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}
.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.task-item:hover {
    background: #f3f4f6;
    border-color: #64ffda;
}
.task-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}
.task-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.task-text {
    flex: 1;
    font-size: 16px;
    color: #374151;
}
.task-delete {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.task-delete:hover {
    background: #fee2e2;
}
/* ===========================================
   APP MÚSICA
   =========================================== */
.music-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}
.album-art {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #64ffda 0%, #4ade80 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}
.music-info {
    text-align: center;
}
.music-info h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 4px;
}
.music-info p {
    color: #6b7280;
    font-size: 1rem;
}
.music-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.progress-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}
.progress-bar:hover {
    background: rgba(255, 255, 255, 0.3);
}
.progress-fill {
    height: 100%;
    background: #64ffda;
    transition: width 0.1s ease;
    width: 0%;
}
.music-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}
.music-controls .control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}
.music-controls .main-control {
    width: 64px;
    height: 64px;
    background: #64ffda;
    color: #1a1a1a; /* Mudança: texto escuro para melhor contraste */
    font-size: 20px;
}
.music-controls .control-btn:hover {
    transform: scale(1.1);
}
.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.volume-slider {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.playlist {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}
.playlist h4 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.playlist-item:hover {
    background: #f3f4f6;
}
.playlist-item.active {
    background: #dbeafe;
    color: #1d4ed8;
}
/* ===========================================
   APP NOTAS (STICKY NOTES)
   =========================================== */
.note-window {
    position: absolute;
    width: 250px;
    height: 250px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 100;
    overflow: hidden;
    transition: all 0.3s ease;
}
.note-window.minimized {
    transform: scale(0.1);
    opacity: 0;
    pointer-events: none;
}
.note-header {
    background: #f59e0b;
    padding: 8px 12px;
    cursor: move;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    height: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.note-controls {
    display: flex;
    gap: 6px;
}
.note-control {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    transition: all 0.2s ease;
}
.note-control.close {
    background: #ef4444;
    color: white;
}
.note-control.minimize {
    background: #f59e0b;
    color: white;
}
.note-control:hover {
    transform: scale(1.1);
}
.note-content {
    height: calc(100% - 30px);
    padding: 12px;
}
.note-textarea {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    font-family: 'Kalam', cursive;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}
.note-textarea::-moz-placeholder {
    color: #d97706;
    opacity: 0.7;
}
.note-textarea::placeholder {
    color: #d97706;
    opacity: 0.7;
}
/* ===========================================
   BOTÕES E UTILITÁRIOS
   =========================================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-primary {
    background: #64ffda;
    color: #065f46;
}
.btn-primary:hover {
    background: #4ade80;
}
.btn-secondary {
    background: #6b7280;
    color: white;
}
.btn-secondary:hover {
    background: #4b5563;
}
.btn-danger {
    background: #ef4444;
    color: white;
}
.btn-danger:hover {
    background: #dc2626;
}
/* ===========================================
   RESPONSIVIDADE
   =========================================== */
@media (max-width: 768px) {
    .app-window {
        min-width: 300px;
        width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px !important;
    }
    
    .pomodoro-container {
        padding: 10px;
    }
    
    .timer-circle {
        width: 150px;
        height: 150px;
    }
    
    .timer-display {
        font-size: 2rem;
    }
    
    .music-container {
        padding: 10px;
    }
    
    .album-art {
        width: 150px;
        height: 150px;
        font-size: 2rem;
    }
    
    .dock {
        bottom: 10px;
        padding: 6px 12px;
    }
    
    .dock-item {
        width: 40px;
        height: 40px;
    }
    
    .dock-item i {
        font-size: 16px;
    }
}
/* ===========================================
   ANIMAÇÕES ADICIONAIS
   =========================================== */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}
.app-window {
    animation: slideIn 0.3s ease-out;
}
.task-item {
    animation: slideIn 0.2s ease-out;
}
/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
/* ===========================================
   MENU MOBILE (HAMBURGER)
   =========================================== */
/* Menu mobile toggle (hamburger) */
#nav-toggle {
    z-index: 60;
}
#nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
#nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
/* Menu mobile expandido */
#mobile-menu {
    z-index: 55;
}
#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
/* Overlay para mobile */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* ===========================================
   CONTROLE DE VIEWPORT - APPS DENTRO DA TELA
   =========================================== */
/* Garantir que apps nunca saiam da tela */
.app-window,
.note-window {
    max-width: calc(100vw - 40px) !important;
    max-height: calc(100vh - 120px) !important;
    overflow: hidden;
}
/* Redimensionamento responsivo para diferentes telas */
@media (max-width: 768px) {
    .app-window,
    .note-window {
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 100px) !important;
        width: 95vw !important;
    }
    
    /* Reposicionar apps no mobile */
    .app-window,
    .note-window {
        left: 10px !important;
        top: 80px !important;
    }
}
@media (max-width: 480px) {
    .app-window,
    .note-window {
        max-width: calc(100vw - 10px) !important;
        max-height: calc(100vh - 80px) !important;
        width: 98vw !important;
        left: 5px !important;
        top: 70px !important;
    }
}
/* Conteúdo dos apps com scroll quando necessário */
.app-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}
/* Ajustes específicos para o player de música */
#app-music .app-content {
    max-height: calc(100vh - 180px);
}
.music-container {
    max-width: 100%;
    overflow: hidden;
}
.playlist {
    max-height: 200px;
    overflow-y: auto;
}
/* Ajustes para o app de tarefas */
#app-tasks .app-content {
    max-height: calc(100vh - 180px);
}
.tasks-list {
    max-height: 300px;
    overflow-y: auto;
}
/* Ajustes para sticky notes */
.note-window {
    min-width: 250px;
    min-height: 200px;
    resize: both;
    max-width: 400px !important;
    max-height: 500px !important;
}
.note-textarea {
    height: calc(100% - 20px);
    max-height: 450px;
    resize: none;
}
/* Scrollbar customizada para melhor UX */
.app-content::-webkit-scrollbar,
.tasks-list::-webkit-scrollbar,
.playlist::-webkit-scrollbar {
    width: 6px;
}
.app-content::-webkit-scrollbar-track,
.tasks-list::-webkit-scrollbar-track,
.playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.app-content::-webkit-scrollbar-thumb,
.tasks-list::-webkit-scrollbar-thumb,
.playlist::-webkit-scrollbar-thumb {
    background: rgba(100, 255, 218, 0.5);
    border-radius: 3px;
}
.app-content::-webkit-scrollbar-thumb:hover,
.tasks-list::-webkit-scrollbar-thumb:hover,
.playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 255, 218, 0.7);
}

