@font-face {
    font-family: "Ubuntu";
    src: url("/assets/fonts/Ubuntu-R.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Ubuntu";
    src: url("/assets/fonts/Ubuntu-B.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

body {
    background: radial-gradient(circle at top right, #1a2333 0%, #0f141b 55%, #0b0f14 100%);
    min-height: 100vh;
    color: #e8edf3;
    padding-bottom: 150px;
    font-family: "Ubuntu", sans-serif;
}

.app-shell {
    max-width: 1500px;
}

#modalProfile .modal-body {
    padding: 1.5rem;
}

.profile-tabs {
    --bs-nav-tabs-border-color: #435166;
    --bs-nav-tabs-link-hover-border-color: #435166 #435166 transparent;
    --bs-nav-tabs-link-active-color: #e8edf3;
    --bs-nav-tabs-link-active-bg: var(--bs-modal-bg);
    --bs-nav-tabs-link-active-border-color: #435166 #435166 var(--bs-modal-bg);
    gap: 0.25rem;
    flex-wrap: wrap;
}

.profile-tabs .nav-link {
    color: #aab8c9;
    white-space: nowrap;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.profile-tabs .nav-link.active {
    color: #74d1ff;
    font-weight: 700;
}

.profile-tab-content {
    padding-top: 1.5rem;
    min-height: 23rem;
}

@media (max-width: 575.98px) {
    #modalProfile .modal-body {
        padding: 1rem;
    }

    .profile-tabs .nav-link {
        padding: 0.65rem 0.75rem;
    }
}

.app-header,
.panel {
    background: rgba(20, 26, 34, 0.92);
    border: 1px solid #2a3443;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.logo-icon {
    color: #40c6ff;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}

.welcome {
    font-weight: 600;
    font-size: 1.05rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #273241;
    padding: 0.35rem 0;
}

.stat-row.total {
    border-bottom: 0;
    font-weight: 700;
    color: #74d1ff;
}

.log-list {
    list-style: none;
    padding-left: 0;
    overflow-y: auto;
}

.log-list li {
    padding: 0.35rem 0;
    border-bottom: 1px dashed #2d3a4b;
}

.process-btn.active-process {
    box-shadow: 0 0 0 2px rgba(95, 188, 255, 0.35);
    border-color: #5fbcff;
}

.process-extension-options {
    border: 1px solid #b88622;
    border-radius: 8px;
    background: #2b2416;
    padding: 1rem;
}

.process-extension-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffdc86;
}

.process-extension-heading > i {
    font-size: 1.45rem;
}

.process-extension-heading h3,
.process-extension-heading p {
    margin: 0;
}

.process-extension-heading h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.process-extension-heading p {
    margin-top: 0.2rem;
    color: #d4c9a3;
    font-size: 0.9rem;
}

.process-extension-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.process-extension-btn {
    min-height: 4rem;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
}

.process-extension-btn span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 400;
}

.current-process-timer {
    background: #161f2a;
    border: 1px solid #34465b;
    border-radius: 8px;
    overflow: hidden;
}

.current-process-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #34465b;
}

.current-process-kicker,
.timer-metric-label,
.timer-metric-detail {
    color: #aab8c9;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.current-process-heading h3 {
    margin: 0;
    color: #e40a0a;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 1px 8px rgba(228, 10, 10, 0.35);
}

.timer-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timer-metric {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem;
}

.timer-metric + .timer-metric {
    border-left: 1px solid #34465b;
}

.timer-metric-elapsed {
    background: #172937;
}

.timer-metric-remaining {
    background: #30291c;
}

.timer-metric-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.timer-metric-elapsed .timer-metric-label {
    color: #8fdbff;
}

.timer-metric-remaining .timer-metric-label {
    color: #ffdc86;
}

.timer-metric-value {
    display: block;
    margin-top: 0.4rem;
    color: #f7fbff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: 0;
}

.timer-metric-detail {
    margin-top: 0.6rem;
    color: #c4b98f;
    font-size: 0.72rem;
}

.current-process-timer.is-expired {
    border-color: #e15353;
}

.current-process-timer.is-expired .timer-metric-remaining {
    background: #3a1e24;
}

.current-process-timer.is-expired .timer-metric-remaining .timer-metric-label,
.current-process-timer.is-expired .timer-metric-remaining .timer-metric-value {
    color: #ff8787;
}

.current-process-timer.is-inactive {
    opacity: 0.62;
}

.alert-ring {
    animation: alertPulse 1s infinite;
}

.site-footer {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 24px));
    background: rgba(20, 26, 34, 0.92);
    border: 1px solid #2a3443;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 120px;
    height: 96px;
    object-fit: contain;
}

.footer-meta {
    text-align: center;
    width: 100%;
}

.footer-title {
    font-size: 1.22rem;
    color: #e5ebf1;
}

.footer-line {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.15rem;
    font-size: 1.04rem;
}

.footer-line a,
.footer-copy a {
    color: #d6e7ff;
}

.footer-copy {
    margin-top: 0.2rem;
    font-size: 1.02rem;
    color: #e5ebf1;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 0;
    }

    .site-footer {
        position: static;
        transform: none;
        width: calc(100% - 24px);
        margin: 1rem auto;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-logo {
        width: 90px;
        height: 74px;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-line,
    .footer-copy {
        font-size: 0.88rem;
    }

    .timer-metric-value {
        font-size: 2.4rem;
    }
}

@media (max-width: 575.98px) {
    .process-extension-actions {
        gap: 0.45rem;
    }

    .process-extension-btn {
        font-size: 1.4rem;
    }

    .current-process-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.15rem;
    }

    .timer-metrics {
        grid-template-columns: 1fr;
    }

    .timer-metric + .timer-metric {
        border-top: 1px solid #34465b;
        border-left: 0;
    }
}

@media (min-width: 992px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    body {
        padding-bottom: 160px;
    }

    .app-shell {
        height: calc(100vh - 160px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .app-shell > main {
        flex: 1;
        min-height: 0;
    }

    .app-shell > main > section {
        height: 100%;
    }

    .panel-log {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .panel-log .log-list {
        flex: 1;
        min-height: 0;
    }
}

@keyframes alertPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(255, 82, 82, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
    }
}
