body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.counter-display {
    font-size: 3em;
    color: #008080;
    margin-bottom: 20px;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #008080;
    color: #fff;
    padding: 15px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.menu-button {
    position: absolute;
    left: 20px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.menu-button svg {
    width: 24px;
    height: 24px;
}


.drawer {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 250px;
    height: 100%;
    background-color: #20b2aa;
    color: #fff;
    transition: transform 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    will-change: transform;
    backface-visibility: hidden;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #2e8b57;
}

.drawer-header h2 {
    margin: 0;
}

.drawer-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
}

.drawer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.drawer-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.drawer-list li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.drawer-list li a:hover {
    background-color: #3cb371;
}

.drawer-list li a svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.overlay.active {
    display: block;
}

.main-content {
    margin-top: 40px;
    margin-bottom: 60px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
 
}

.section {
    width: 100%;
    max-width: 500px;
    display: none;
    flex-direction: column;
    align-items: center;
}

.section.active {
    display: flex;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #2e8b57;
}

.add-button {
    background-color: #2e8b57;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.add-button svg {
    width: 16px;
    height: 16px;
}

.add-button:hover {
    background-color: #256b46;
}

.tasbeh-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    width: 100%;
}

.tasbeh-list li {
    background-color: #fff;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.3s ease;
}

.tasbeh-list li:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.tasbeh-list li .tasbeh-info {
    display: flex;
    flex-direction: column;
}

.tasbeh-list li .tasbeh-info .name {
    font-size: 1.2em;
    color: #333;
}

.tasbeh-list li .tasbeh-info .phrase {
    font-size: 1em;
    color: #666;
}

.tasbeh-list li .delete-button {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.tasbeh-list li .delete-button svg {
    width: 16px;
    height: 16px;
}

.tasbeh-list li .delete-button:hover {
    color: #cc0000;
}

.counter-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.counter-container h2 {
    margin: 0;
    font-size: 1.8em;
    color: #2e8b57;
}

.counter-container p {
    font-size: 1.2em;
    color: #555;
    margin: 10px 0 20px 0;
}

.counter-display {
    font-size: 3em;
    color: #008080;
    margin-bottom: 20px;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.counter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.counter-buttons .btn {
    background-color: #2e8b57;
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.5em;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-buttons .btn svg {
    width: 16px;
    height: 16px;
}

.counter-buttons .btn:hover {
    background-color: #256b46;
}

.back-button {
    margin-top: 20px;
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.back-button svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.back-button:hover {
    background-color: #cc0000;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 1.5em;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
}

.modal-content h2 {
    margin-top: 0;
    color: #2e8b57;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content form label {
    margin: 10px 0 5px 0;
    color: #333;
}

.modal-content form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.submit-button {
    margin-top: 20px;
    padding: 10px;
    background-color: #2e8b57;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background-color: #256b46;
}

.bottom-navbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #008080;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
}

.nav-item {
    background: none;
    border: none;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s ease;
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    margin-top: 5px;
    font-size: 0.9em;
}

.nav-item.active {
    color: #ffeb3b;
}

.nav-item:hover {
    color: #ffeb3b;
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .navbar-brand {
        font-size: 1.3em;
    }

    .add-button {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .header h1 {
        font-size: 1.6em;
    }

    .tasbeh-list li {
        padding: 12px 15px;
    }

    .counter-container {
        padding: 25px;
    }

    .counter-display {
        font-size: 2.5em;
    }

    .counter-buttons .btn {
        padding: 12px 16px;
        font-size: 1.3em;
    }

    .back-button {
        padding: 8px 12px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.2em;
    }

    .header h1 {
        font-size: 1.4em;
    }

    .add-button {
        padding: 6px 10px;
        font-size: 0.8em;
    }

    .tasbeh-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .tasbeh-list li .delete-button {
        align-self: flex-end;
        margin-top: 10px;
    }

    .counter-container {
        padding: 20px;
    }

    .counter-display {
        font-size: 6em;
        /* Kattaroq hisob raqam */
    }

    .counter-buttons .btn {
        padding: 10px 14px;
        font-size: 1.2em;
    }

    .back-button {
        padding: 6px 10px;
        font-size: 0.8em;
    }

    .bottom-navbar {
        padding: 8px 0;
    }

    .nav-item svg {
        width: 20px;
        height: 20px;
    }

    .nav-item span {
        font-size: 0.7em;
    }

        @media (max-width: 480px) {
            .counter-display {
                font-size: 6em;
              
            }
}