body {
    padding-top: 70px;
    background: linear-gradient(135deg, #edf5f2 0%, #dcebe5 100%);
    font-size: 14px;
}

.app-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(237, 245, 242, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.app-loading .app-loader,
.app-loader.show {
    opacity: 1;
    visibility: visible;
}

.app-loader-box {
    min-width: 100vh;
    height: 100vh;
    padding: 28px 26px;
    text-align: center;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(44, 62, 80, 0.18);
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.app-loader-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    margin-bottom: 16px;
}

.app-loader-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 4px solid rgba(24, 188, 156, 0.18);
    border-top-color: #18bc9c;
    animation: appLoaderSpin 0.9s linear infinite;
}

.app-loader-text {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.3px;
}

@keyframes appLoaderSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-panel {
    max-width: 430px;
    margin: 55px auto 0;
}

.dashboard-box {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(44, 62, 80, 0.12);
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.navbar {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    height: auto;
}

.brand-logo {
    height: 38px;
    width: auto;
    display: inline-block;
}

.panel {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 20px 45px rgba(44, 62, 80, 0.14);
    overflow: hidden;
}

.panel-heading {
    padding: 18px 22px;
}

.panel-title {
    font-size: 20px;
    font-weight: 700;
}

.panel-body {
    padding: 25px 22px 22px;
}

.form-control {
    height: 42px;
    border-radius: 6px;
    box-shadow: none;
}

.btn {
    border-radius: 6px;
}

.login-logo {
    text-align: center;
    margin: 0 auto 18px;
}

.login-logo img {
    max-width: 150px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 26px rgba(44, 62, 80, 0.18));
}

.login-subtitle {
    margin-bottom: 22px;
    color: #7b8a8b;
    text-align: center;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 15px;
}

.dashboard-icon {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(24, 188, 156, 0.18);
    border: 1px solid rgba(24, 188, 156, 0.12);
}

.dashboard-icon img {
    max-width: 62px;
    max-height: 62px;
    width: auto;
    height: auto;
}

.dashboard-box h1 {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 700;
}

.dashboard-muted {
    color: #7b8a8b;
    font-size: 16px;
}

.welcome-card {
    margin-top: 25px;
    padding: 18px 20px;
    border-radius: 8px;
    background: #f8fbfa;
    border-left: 5px solid #18bc9c;
}

.footer-space {
    height: 25px;
}

.page-box {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(44, 62, 80, 0.12);
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.page-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 24px;
}

.page-box-title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
}

.page-box-subtitle {
    margin: 0;
    color: #7b8a8b;
}

.alert {
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(44, 62, 80, 0.08);
}

.text-nowrap {
    white-space: nowrap;
}

.install-prompt {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    max-width: 360px;
    width: calc(100% - 30px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(44, 62, 80, 0.24);
    border: 1px solid rgba(44, 62, 80, 0.08);
    overflow: hidden;
    display: none;
}

.install-prompt.show {
    display: block;
}

.install-prompt-head {
    padding: 14px 18px;
    background: linear-gradient(135deg, #18bc9c 0%, #13987e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.install-prompt-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.install-prompt-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.install-prompt-body {
    padding: 18px;
}

.install-prompt-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.install-prompt-brand img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

.install-prompt-brand strong {
    display: block;
    font-size: 17px;
}

.install-prompt-brand span {
    color: #7b8a8b;
    font-size: 13px;
}

.install-prompt-body p {
    margin-bottom: 16px;
    color: #5d6d74;
}

.install-prompt-actions .btn+.btn {
    margin-left: 8px;
}

.alerta_flotante {
    position: absolute;
    bottom: 0px;
}

@media (max-width: 767px) {
    .dashboard-hero {
        display: block;
    }

    .dashboard-icon {
        margin-bottom: 15px;
    }

    .install-prompt {
        right: 15px;
        bottom: 15px;
        width: calc(100% - 30px);
    }
}