:root {
    --main-bg-color: rgb(70, 158, 230);
    --sec-bg-color: #e6e9fa;
    --accent-color: #ff6b81;
    --text-color: #333;
    --light-text: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    background-color: #f4f6f8;
    color: var(--text-color);
    line-height: 1.6;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
}

.header {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    z-index: 1;
}

.site-title {
    font-size: 1.8rem;
    color: var(--main-bg-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.denominator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.denominator label {
    font-weight: 500;
}

.denominator select {
    appearance: none;
    font-size: 1rem;
    padding: 8px 30px 8px 12px;
    background-color: #fff;
    border: 1px solid #caced1;
    border-radius: 10px;
    color: var(--text-color);
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 10px auto;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.denominator select:hover {
    border-color: var(--main-bg-color);
}

.appa-container {
    position: absolute;
    height: 30%;
    top: -65px;
    z-index: 2;
    display: flex;
    pointer-events: none;
}

.stitch-container {
    position: absolute;
    height: 40%;
    top: -80px;
    right:0;
    z-index: 2;
    display: flex;
    pointer-events: none;
}

.bg-image {
    max-height: 20em;
    object-fit: contain;
}

.container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin: auto;
    z-index: 1;
    border: none;
    backdrop-filter: blur(5px);
}

.tabs {
    display: flex;
    cursor: pointer;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: var(--sec-bg-color);
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab:hover {
    background: #d1d7f0;
}

.tab.active {
    background: var(--main-bg-color);
    color: var(--light-text);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
    display: block;
}

.progress-container {
    text-align: center;
    padding: 15px 0;
}

.date-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--main-bg-color);
}

.date-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.count-display {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--main-bg-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.progress-bar {
    width: 100%;
    background: var(--sec-bg-color);
    border-radius: 30px;
    overflow: hidden;
    margin: 25px 0;
    height: 12px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--main-bg-color), #3bb4ff);
    width: 0;
    border-radius: 30px;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 5px rgba(59, 180, 255, 0.5);
}

.progress-percent {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
}

footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

footer .fa-heart {
    color: var(--accent-color);
}

@media (max-width: 650px) {
    .container {
        width: 95%;
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .count-display {
        font-size: 2rem;
    }

    .appa-container {
        position: absolute;
        width: 40%;
        top: -75px;
        z-index: 2;
        display: flex;
        pointer-events: none;
    }
    .stitch-container {
        position: absolute;
        width: 30%;
        top: -85px;
        right: 0;
        z-index: 2;
        display: flex;
        pointer-events: none;
    }
    .bg-image {
        max-height: 100%;
        object-fit: contain;
    }
    
}