:root {
    --progress-bar-width: 60px;
    --progress-bar-height: 60px;
    --font-size: 1.2rem;
    --circle-bg: #fba304;
    --circle-progress: #045cfb;
}

/* Stats */
.stat {
    height: 100%;
    background-size: cover;
}
.stat .stat-content {
    padding-left: 25px;
    display: flex;
    flex-direction: column;
}

.stat p {
    margin: 0;
}


.stat .stat-content .stat-header {
    font-size: 1.2rem;
    font-weight: 900;
}

.stat .stat-content .stat-value {
    font-size: 3rem;
    font-family: monospace;
    font-weight: 900;
    margin-top: auto;
}
.stat.author .stat-content .stat-value {
    font-size: 2rem;
}

.stat .stat-content .stat-description {
    font-size: 0.9rem;
}



/* Circular  Progress  */

.round-progress-wrapper {
    position: relative;
}

.circular-progress-wrapper {
    position: absolute;
    top: 1px;
    right: 1px;
    z-index: 2;
    width: var(--progress-bar-width);
    height: var(--progress-bar-height);
}

.circular-progress {
    position: relative;
    width: var(--progress-bar-width);
    height: var(--progress-bar-height);
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__background {
    fill: none;
    stroke: var(--circle-bg);
    stroke-width: 8;
}

.progress-ring__circle {
    fill: none;
    stroke: var(--circle-progress);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 163.36;
    stroke-dashoffset: calc(163.36 - (var(--value, 0) * 163.36 / 100));
    transition: stroke-dashoffset 0.3s ease;
}
.progress-ring__inner {
    fill: #ffffff;
}

.percentage-text {
    position: absolute;
    font-size: var(--font-size);
    font-weight: bold;
    color: rgba(0, 0, 0, 0.8);
    font-family: monospace;
}

/* Journal Tabs */


@media screen and (min-width: 800px) {
    .stat * {
        height: 100%;
    }
}


@media screen and (min-width: 700px) {
    .stat * {
        height: 100%;
    }

    .journal_tabs .nav-link {
        font-size: 18px !important;
    }
}


@media screen and (max-width: 700px) {
    .stat .stat-content .stat-header {
           font-size: 1.2rem;
    }

    .stat.author .card-body {
        padding: 1rem;
    }

   .stat.author .row .col-12:last-child {
       padding-left: 0; 
   }

   .stat.author .row .col-12:last-child .stat-value {
       font-size: 2rem;
   }

    .stat.author .row .col-12:last-child .stat-content {
        height: 100%;
    }
}

/* Error Display */
.is-invalid {
    border-color: #dc3545 !important;
}