body {
    background-color: color(srgb 0.9489 0.949 0.9491);
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500 !important;
}

h4.section-title {
    font-size: 1.2rem;
}
/* Dashboard Styles */
.greeting-section {
    padding-top: 130px;
}

.greeting-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1746a2;
    margin-bottom: 0;
}

.bold {
    font-weight: bold !important;
}

.user-name-text {
    font-size: 2rem;
    font-weight: 700;
    color: #ff4a00;
    margin-top: 0;
}

.w-100 {
    width: 100%;
}

.f-12 {
    font-size: 12px !important;
}

.f-14 {
    font-size: 14px !important;
}

.profile-image-container {
    width: 100px;
    height: 100px;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.camera-button {
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: #ff4a00;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    padding: 0;
}

.user-info-section {
    padding: 10px 0;
}

.info-item {
    margin-bottom: 10px;
}

.icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-label {
    color: #000;
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    color: color(srgb 0.5533 0.5534 0.5534);
    font-weight: 600;
}

/* Registration Statistics Styles */
.stats-card {
    background-color: #fff;
    border-radius: 15px;
}

.stats-header {
    margin-bottom: 20px;
}

.stats-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.stats-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 30px;
    z-index: 2;
}

.progress-circle-container {
    position: relative;
    width: 220px;
    height: 220px;
    /* margin: 30px auto 0; */
    margin: 35px auto 0;
    margin-left: 15px;
}

.progress-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#e9ecef 0% 56%, #e9ecef 56% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle::before {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background-color: #fff;
}

.progress-percentage {
    position: relative;
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    z-index: 1;
}

.progress-circle-container-top {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 18px auto 0;
    margin-top: 27px;
}

.progress-circle-top {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#ff4a00 0deg, #ff9500 90deg, #ffc400 180deg, #ffe680 270deg, #fefefe00 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle-top::before {
    content: "";
    position: absolute;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background-color: #fff;
}

.progress-percentage-top {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    z-index: 1;
}

.stats-count {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-top: 15px;
}

/* Team Ranking Styles */
.ranking-card {
    background-color: #fff;
    border-radius: 15px;
}

.ranking-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: #000;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 30px;
    z-index: 2;
}

.reward-banner {
    background-color: #f8f9fa;
    border-radius: 10px;
}

.reward-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.reward-text h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #ff4a00;
}

.ranking-header {
    border-bottom: 1px solid color(srgb 0.5533 0.5534 0.5534);
    font-weight: 600;
    font-size: 0.9rem;
    color: #000000;
}
.ranking-row {
    font-size: 0.8rem;
    color: #666;
}

.ranking-legend {
    font-size: 0.85rem;
}

.legend-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 5px;
}

.legend-text {
    color: #666;
    font-weight: 500;
}

.medal {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
}

.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffcc00 100%);
}

.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%);
}

.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #a05a2c 100%);
}

.progress {
    height: 20px;
    border-radius: 5px;
    background-color: #ffffff;
    margin-right: 50px;
}

.progress-bar {
    border-radius: 5px;
}

.progress-text {
    position: absolute;
    right: 15px;
    font-weight: 600;
    color: #333;
    margin-top: -1.4rem;
}

.legend-item {
    text-align: right;
}
.legend-text {
    font-size: 0.8rem;
    text-align: right;
}
.member-distance-count {
    font-size: 45px !important;
    color: #ff4a00;
}
.member-distance-unit {
    font-size: 16px;
    color: #ff4a00;
    font-style: oblique;
    font-weight: normal;
}

.mission-title {
    font-size: 22px !important;
}

#info-page {
    padding-top: 130px !important;
}

@media (max-width: 700px) {
    .greeting-section {
        padding-top: 75px;
    }
}

@media (max-width: 575px) {
    .ranking-header {
        font-size: 0.75rem;
    }
    .profile-image-container {
        width: 80px;
        height: 80px;
    }
    .icon-container {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-right: 10px;
    }
    .info-label {
        color: #000;
        font-size: 14px;
        font-weight: 500;
    }

    .info-value {
        font-size: 15px;
        color: color(srgb 0.5533 0.5534 0.5534);
        font-weight: 600;
    }
    .stats-title {
        font-size: 1.1rem;
    }
    .progress-circle-container {
        width: 180px;
        height: 180px;
    }
    .progress-percentage {
        font-size: 2.8rem;
    }
    .stats-count {
        font-size: 1rem;
    }
    .ranking-badge {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    .reward-text h4 {
        font-size: 0.9rem;
    }
    .reward-text h5 {
        font-size: 0.85rem;
    }
    .ranking-header {
        font-size: 0.8rem;
    }
    .legend-text {
        font-size: 0.6rem;
    }
    .progress {
        margin-right: 40px;
    }
    .member-distance-count {
        font-size: 45px !important;
        color: #fd632a;
    }
}

@media (max-width: 600px) {
    .ranking-header {
        font-size: 0.7rem;
    }
    .legend-text {
        font-size: 0.7rem;
    }
    .info-card h1 {
        font-size: 22px !important;
    }
    .info-card h2 {
        font-size: 18px !important;
    }
    #info-page {
        font-size: 14px !important;
        padding-top: 100px !important;
    }
    .mission-title {
        font-size: 16px !important;
    }
}

@media (max-width: 455px) {
    #info-page .h1,
    h1 {
        font-size: 1.5rem;
    }
    #info-page .h2,
    h2 {
        font-size: 1.2rem;
    }
    #info-page .h3,
    h3 {
        font-size: 1.1rem;
    }
    #info-page .date-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 425px) {
    .ranking-header {
        font-size: 0.6rem;
    }
    .legend-text {
        font-size: 0.6rem;
    }
    .info-card h1 {
        font-size: 20px !important;
    }
    .info-card h2 {
        font-size: 16px !important;
    }
    #info-page {
        font-size: 12px !important;
    }
    .mission-title {
        font-size: 16px !important;
    }
    h4.section-title {
        font-size: 18px !important;
    }
}

@media (max-width: 400px) {
    #info-page .h1,
    h1 {
        font-size: 1.2rem;
    }
    #info-page .h2,
    h2 {
        font-size: 1rem;
    }
    #info-page .h3,
    h3 {
        font-size: 0.9rem;
    }
    #info-page .date-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 375px) {
    .ranking-header {
        font-size: 0.55rem;
    }
    .legend-text {
        font-size: 0.55rem;
    }
    .greeting-section h2 {
        font-size: 20px !important;
    }
    .greeting-section h1 {
        font-size: 30px !important;
    }
    .info-label {
        font-size: 12px !important;
    }
    .info-value {
        font-size: 13px !important;
    }
    .stats-header h2 {
        font-size: 18px !important;
    }
    .info-card h1 {
        font-size: 18px !important;
    }
    .info-card h2 {
        font-size: 14px !important;
    }
    .mission-title {
        font-size: 12px !important;
    }
    #info-page {
        font-size: 10px !important;
    }
    .member-distance-count {
        font-size: 40px !important;
        color: #fd632a;
    }
}

/* Two-layer Progress Ring */
.progress-circle-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 30px auto 0;
}
.progress-ring {
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--color) calc(var(--value) * 1%), #e9ecef 0 100%);
}
.outer-ring {
    /* thickness 20px */
    mask: radial-gradient(farthest-side, #000 79%, transparent 80%);
}
.inner-ring {
    inset: 20px; /* smaller inner ring */
    mask: radial-gradient(farthest-side, #000 79%, transparent 80%);
}
.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    z-index: 1;
}

/* Progress Bar Animation */
.progress-bar.progress-animate {
    width: 0;
    animation: fillProgress 1.5s ease-in-out forwards;
    transition: background-color 0.3s ease;
}

@keyframes fillProgress {
    to {
        width: var(--target);
    }
}

/* Back Button Styles */
.back-button {
    background-color: #ff5a00;
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    padding: 10px 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.back-button:hover,
.back-button:focus {
    background-color: #e65000;
    color: white;
    box-shadow: 0 4px 8px rgba(255, 90, 0, 0.3);
}

.distance-button {
    background-color: #000;
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    padding: 6px 15px;
    width: 70%;
    font-size: 14px;
    transition: all 0.3s ease;
}

.distance-button:hover,
.distance-button:focus {
    background-color: #000;
    color: white;
    box-shadow: 0 4px 8px rgba(255, 90, 0, 0.3);
}

.distance-link {
    display: block;
    color: #9b9b9b;
    text-decoration: underline;
    font-weight: 500;
}

.ranking-distance-link {
    text-decoration: none !important;
}

/* Info Page Styles */
.info-card {
    border-radius: 15px;
}

.info-card h1 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.info-card h2 {
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 500;
}

.mission-card {
    background-color: #f8f9fa;
}

.mission-badge {
    background-color: #000;
    font-weight: 500;
}

.text-orange {
    color: #ff6f22;
}

.border-orange {
    border-color: #ff6f22 !important;
}

.date-badge {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.btn-orange {
    background-color: #ff6f22;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-orange:hover,
.btn-orange:focus {
    background-color: #e65000;
    color: white;
    box-shadow: 0 4px 8px rgba(255, 90, 0, 0.3);
}

.rounded-4 {
    border-radius: 1rem;
}

.btn-upload-dashboard {
    position: absolute;
    bottom: 0%;
    right: 0%;
    border-radius: 100%;
}

.img-profile {
    border: 2px solid #000;
    border-radius: 100%;
    width: 40%;
}

.btn-dark {
    background-color: #fc4c02 !important;
    border-color: #fc4c02 !important;
}

.btn-upload-dashboard {
    padding: 5px 5px;
    display: flex;
    align-items: center;
}
.img-dashboard {
    border-radius: 100%;
    width: 100%;
}

.distance-text h4 {
    font-size: 12px !important;
}
.distance-text h5 {
    font-size: 14px !important;
}

.btn-orange-outline {
    border: 2px solid #ff4a00;
    background-color: #fff;
    color: #ff4a00;
    font-weight: 600;
    font-size: 1.14rem;
    border-radius: 2em;
    height: 3em;
    margin-top: 0.6em;
}

.btn-orange-outline:hover,
.btn-orange-outline:focus {
    background-color: #fff !important;
    color: #ff4a00 !important;
}
