@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
::-webkit-scrollbar {
    width: 10px;
    border-radius: 10px;
    background-color: #EBEBEB;
}

::-webkit-scrollbar:hover {
    background-color: #EBEBEB;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #BA4949, #C86D6D);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #C86D6D, #BA4949);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    text-align: center;
    background-color: #BA4949;
}

.promodoro-container {
    max-width: 400px;
    margin: 7rem auto;
    background: #C15C5C;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.promodoro-container:hover{
    transform: scale(1.05);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
}

.promodoro-container h2 {
    color: #fff;
    font-size: 2rem;
    text-shadow: 8px 8px 4px #BA4949;
}

.timer {
    font-size: 5rem;
    color: #FFFFFF;
    margin: 20px 0;
    text-shadow: 8px 8px 4px #BA4949;
}

.promodoro-container button {
    padding: 1rem 2rem;
    margin: 5px;
    border: none;
    border-radius: 5px;
    background: #FFFFFF;
    color: #BA4949;
    box-shadow: 0px 4px 0px #EBEBEB;
    font-size: 1.2rem;
    font-weight: 800;
    width: 80%;
    cursor: pointer;
}

.promodoro-container button:hover {
    background: #BA4949;
    color: #FFFFFF;
    border-top: 2px solid #fff;
}

.promodoro-container button:active {
    transform: translateY(4px);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.4);
    border: none;
}

/* Navbar */
.navbar {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    display: flex;
    justify-content: flex-start;
}

/* Back Button */
.back-button {
    background: #2867f0;
    color: white;
    border: none;
    padding: 0.8rem 20px;
    width: 4rem;
    height: 2.5rem;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #0190f6;
    transform: scale(1.05);
}

.toggle-btn {
    position: fixed;
    top: 0;
    right: 20px;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 30px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toggle theme style */
#toggleTheme {
    background: transparent;
    box-shadow: none;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Click animation (subtle scaling effect) */
#toggleTheme:active {
    transform: scale(0.9);
    opacity: 0.7;
}

/* Dark mode effect */
.dark-mode #toggleTheme {
    background: transparent;
    box-shadow: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Click animation in dark mode */
.dark-mode #toggleTheme:active {
    transform: scale(0.9);
    opacity: 0.7;
}

.toggle-btn:hover {
    background: #0056b3;
}

body.dark-mode {
    background: #121212;
    color: #fff;
}

/* Dark mode for header */
.dark-mode nav {
    background: linear-gradient(135deg, #1e1e1e, #333);
}

.dark-mode .promodoro-container{
    background: #2A2A2A;
}
.dark-mode .promodoro-container h2,
.dark-mode .timer{
    text-shadow: none;
}
.dark-mode .promodoro-container button{
    color: #1e1e1e;
}
.dark-mode .promodoro-container button:hover{
    background-color: #121212;
    color: #fff;
}