.auth-shell {
    min-height: 100vh;
}

.admin-header .menu_one {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(33, 40, 51, 0.08);
}

.admin-header .menu > .nav-item.active > .nav-link,
.admin-header .menu > .nav-item > .nav-link:hover {
    color: #4285f4;
}

.admin-header .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.admin-shell-main > .admin-page-section:first-child {
    margin-top: 80px;
}

.admin-page-section {
    min-height: calc(100vh - 210px);
}

.admin-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-section-heading h1 {
    margin-bottom: 10px;
    font-size: 42px;
}

.admin-section-heading p {
    max-width: 720px;
    margin-bottom: 0;
}

.admin-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(66, 133, 244, 0.12);
    color: #4285f4;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-metric-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.admin-metric-pill {
    
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(33, 40, 51, 0.06);
    color: #202124;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.admin-metric-pill span {
    display: block;
    margin-bottom: 4px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.admin-metric-pill--muted {
    background: rgba(255, 255, 255, 0.72);
    color: #4d4e50;
}

.admin-search-form {
    margin-bottom: 24px;
}

.admin-search-form .form-control {
    min-height: 58px;
    border-radius: 14px 0 0 14px !important;
}

.admin-search-form button {
    min-width: 64px;
    border-radius: 0 !important;
    transition: all 0.2s linear;
}

.admin-search-form button:last-of-type {
    border-radius: 0 14px 14px 0 !important;
}

.admin-search-form .admin-inline-select {
    flex: 0 0 180px;
}

.admin-search-form .admin-select {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid #d2d2d3;
    border-left: 0;
    background: #fff;
    color: #202124;
    font-size: 14px;
}

.admin-search-form .admin-select:focus {
    outline: none;
    box-shadow: none;
    border-color: #4285f4;
}

.admin-search-form--engine button:last-of-type {
    border-radius: 0 14px 14px 0 !important;
}

.admin-alert {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 600;
}

.admin-alert--success {
    color: #0f5132;
    background: #d1e7dd;
    border-color: #badbcc;
}

.admin-alert--danger {
    color: #842029;
    background: #f8d7da;
    border-color: #f5c2c7;
}

.admin-panel {
    padding: 42px 28px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(33, 40, 51, 0.06);
}

.admin-loading-state,
.admin-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    min-height: 320px;
}

.admin-empty-state h2 {
    margin-bottom: 0;
    font-size: 28px;
}

.admin-empty-state p {
    max-width: 420px;
    margin-bottom: 0;
}

.admin-shop-top {
    margin-bottom: 12px;
}

.admin-media-card {
    height: calc(100% - 30px);
}

.admin-book-cover {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.admin-book-cover--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background: linear-gradient(135deg, #eef3f8 0%, #dfe8f3 100%);
    color: #636466;
    font-weight: 700;
}

.admin-card-header {
    margin-bottom: 14px;
}

.admin-card-title {
    margin-bottom: 14px;
    min-height: 3.4em;
    line-height: 1.4;
}

.admin-card-subtitle {
    margin-bottom: 14px;
    color: #4285f4;
    font-size: 14px;
    font-weight: 700;
}

.admin-card-description {
    margin-bottom: 16px;
    color: #636466;
    font-size: 14px;
    line-height: 1.7;
}

.admin-card-meta {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef1f4;
}

.admin-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #636466;
    font-size: 13px;
}

.admin-card-meta-row strong {
    color: #202124;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.admin-monospace {
    font-family: "Courier New", Courier, monospace;
    word-break: break-all;
}

.admin-action-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-danger-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.admin-danger-button:hover,
.admin-danger-button:focus {
    color: #fff;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.admin-status-pill--primary {
    background: rgba(66, 133, 244, 0.12);
    color: #4285f4;
}

.admin-status-pill--success {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.admin-status-pill--neutral {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.admin-status-pill--danger {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.admin-inline-message {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
}

.admin-inline-message--success {
    color: #15803d;
}

.admin-inline-message--danger {
    color: #b91c1c;
}

.admin-inline-message--muted {
    color: #636466;
}

.admin-worker-sidebar {
    top: 120px;
}

.admin-sidebar-text {
    margin-bottom: 18px;
    color: #636466;
    line-height: 1.7;
}

.admin-worker-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.admin-log-empty {
    margin-bottom: 0;
    color: #636466;
}

.admin-log-entry {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.admin-log-entry--success {
    color: #0f5132;
    background: rgba(25, 135, 84, 0.12);
}

.admin-log-entry--danger {
    color: #842029;
    background: rgba(220, 53, 69, 0.12);
}

.admin-login-alert {
    margin-top: 26px;
    margin-bottom: 20px;
}

.admin-login-form {
    margin-top: 28px;
}

.admin-login-form .input-field {
    margin-bottom: 18px;
}

.admin-login-form .form-control {
    height: 56px;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    padding: 0 18px;
}

.admin-login-label {
    display: block;
    margin-bottom: 8px;
    color: #36383a;
    font-size: 14px;
    font-weight: 700;
}

.admin-password-toggle {
    position: absolute;
    right: 16px;
    bottom: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7e8695;
}

.admin-login-submit {
    margin-top: 8px;
}

.admin-validation-summary {
    margin-bottom: 14px;
}

.admin-login-note {
    margin-top: 20px;
    color: #636466;
    font-size: 14px;
    line-height: 1.7;
}

.admin-footer-links {
    gap: 8px;
}

@media (max-width: 991.98px) {
    .admin-shell-main > .admin-page-section:first-child {
        margin-top: 64px;
    }

    .admin-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-metric-stack {
        justify-content: flex-start;
    }

    .admin-search-form {
        display: grid;
        gap: 10px;
    }

    .admin-search-form .form-control,
    .admin-search-form button,
    .admin-search-form .admin-inline-select,
    .admin-search-form .admin-select {
        width: 100%;
        border-radius: 12px !important;
        border-left: 1px solid #d2d2d3;
    }

    .admin-worker-sidebar {
        position: relative;
        top: 0;
    }

    .login-wrapper {
        flex-direction: column;
        max-width: 680px;
        min-height: auto;
    }

    .login-wrapper .login-left,
    .login-wrapper .login-right {
        width: 100%;
    }

    .login-wrapper .login-right {
        background: rgba(255, 255, 255, 0.68);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px;
    }
}

@media (max-width: 767.98px) {
    .admin-section-heading h1 {
        font-size: 34px;
    }

    .admin-page-section {
        min-height: auto;
    }

    .admin-book-cover--placeholder {
        min-height: 260px;
    }

    .footer_bottom {
        justify-content: center !important;
        text-align: center;
    }
}
