
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff6b35;
}

        /* Desktop: lateral esquerda */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    z-index: 100;
}

/* Posição padrão do conteúdo */
.main-content {
    margin-left: 80px;
}

        .timer-display {
            font-family: 'Courier New', monospace;
            font-size: 10rem;
            font-weight: bold;
            color: #ff6b35;
            text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
            margin-bottom: 2rem;
            background: rgba(0, 0, 0, 0.3);
            padding: 2rem 3rem;
            border-radius: 20px;
            border: 2px solid rgba(255, 107, 53, 0.3);
            backdrop-filter: blur(10px);
        }

        .controls {
            display: flex;
            gap: 2rem !important;
            margin-bottom: 10rem !important;
        }

        .btn {
            padding: 0.8rem 2rem;
            border: none;
            border-radius: 25px;
            font-size: 1.5rem !important;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .btn-primary {
            background: #4CAF50;
            color: white;
        }

        .btn-primary:hover {
            background: #45a049;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
        }

        .btn-secondary {
            background: #f39c12;
            color: white;
        }

        .btn-secondary:hover {
            background: #e67e22;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
        }

        .btn-danger {
            background: #e74c3c;
            color: white;
        }

        .btn-danger:hover {
            background: #c0392b;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
        }

        .ad-container {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 90px;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 50;
        }

        .ad-placeholder {
            width: 728px;
            height: 90px;
            background: linear-gradient(45deg, #ff6b35, #f39c12);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.1rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .time-inputs {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .time-input {
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 107, 53, 0.3);
            border-radius: 10px;
            padding: 0.8rem;
            color: white;
            font-size: 1.2rem;
            text-align: center;
            width: 80px;
        }

        .time-input:focus {
            outline: none;
            border-color: #ff6b35;
            box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
        }

        .hidden {
            display: none;
        }

        .current-time {
            font-size: 2rem;
            color: #ff6b35;
            margin-bottom: 1rem;
        }

        @media (max-width: 768px) {
            /* Desktop: lateral esquerda */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    z-index: 100;
}

/* Posição padrão do conteúdo */
.main-content {
    margin-left: 80px;
}
            
            .timer-display {
                font-size: 2.5rem;
                padding: 1.5rem 2rem;
            }
            
            .ad-placeholder {
                width: 320px;
                height: 50px;
                font-size: 0.9rem;
            }
            
            .ad-container {
                height: 60px;
            }
        }
    
body.light {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000;
}
body.light .timer-display {
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.1);
    text-shadow: none;
}
body.light /* Desktop: lateral esquerda */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    z-index: 100;
}

/* Posição padrão do conteúdo */
.main-content {
    margin-left: 80px;
}

    

    .sidebar-item {
        flex: 1;
        padding: 0.5rem;
    }

    .sidebar-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 0.2rem;
    }

    .sidebar-text {
        font-size: 0.6rem;
    }

    .ad-container {
        position: fixed;
        top: 0;
        bottom: auto;
        width: 100%;
        padding: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
    }

    #theme-toggle {
        top: 3.2rem !important;
        right: 1rem;
    }



    .main-content {
        margin-top: 70px; /* espaço para a propaganda */
        margin-bottom: 60px; /* espaço para a barra lateral agora embaixo */
    }



    .controls {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 90%;
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }

    .time-inputs {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: center;
    }

    .time-input {
        width: 60%;
    }

    .main-content {
        padding: 1rem;
    }

    

    .sidebar-item {
        flex: 1;
        border-bottom: none;
        border-right: none;
        border-top: none;
        border-left: none;
    }

    .sidebar-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 0.2rem;
    }

    .sidebar-text {
        font-size: 0.6rem;
    }

    .main-content {
        margin-left: 0;
        margin-bottom: 60px; /* espaço para a barra lateral no rodapé */
    }

    .ad-container {
        height: auto;
        padding: 0.5rem;
    }

    .ad-placeholder {
        width: 90%;
        height: auto;
        font-size: 0.9rem;
        text-align: center;
        padding: 0.5rem;
    }



/* Desktop: lateral esquerda */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    z-index: 100;
}

/* Posição padrão do conteúdo */
.main-content {
    margin-left: 80px;
}


.main-content {
    margin-left: 80px;
}


/* Desktop */
@media (min-width: 481px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 80px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        padding: 1rem 0;
        z-index: 100;
    }

    .main-content {
        margin-left: 80px;
        margin-top: 80px;
        margin-bottom: 0;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        height: 60px;
        width: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-right: none;
        padding: 0.5rem 0;
        z-index: 100;
    }

    .sidebar-item {
        flex: 1;
        align-items: center;
        padding: 0.2rem;
        border: none;
    }

    .sidebar-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 0.1rem;
    }

    .sidebar-text {
        font-size: 0.6rem;
    }

    .main-content {
        margin-left: 0;
        margin-bottom: 60px;
        margin-top: 100px;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .timer-display {
        font-size: 2.4rem;
        padding: 1rem;
        text-align: center;
    }

    .controls {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 70%;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .time-inputs {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: center;
    }

    .time-input {
        width: 60%;
    }

    #theme-toggle {
        top: 4.5rem !important;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    body.light .sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        height: 60px;
        width: 100%;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-right: none;
        padding: 0.5rem 0;
        z-index: 100;
    }

    body.light .main-content {
        margin-left: 0;
        margin-bottom: 60px;
        margin-top: 100px;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    body.light .sidebar-icon {
        fill: black;
    }

    body.light .sidebar-text {
        color: black;
    }
}