/* =========================================================
   SERMUDENT ADMIN
   admin.css
   ========================================================= */

:root {
    --green: #153d42;
    --green-dark: #102f33;
    --green-deep: #0a2529;
    --green-hover: #21565b;

    --accent: #456b60;
    --accent-soft: #6f9187;

    --paper: #f8f7f2;
    --paper-2: #f1f2ed;
    --white: #ffffff;

    --text: #243b3b;
    --muted: #6d7a75;

    --line: #dce3dd;
    --line-dark: #c8d4cb;

    --gold: #d9bd87;
    --danger: #b94a48;
    --danger-dark: #913836;
    --success: #257a54;

    --sidebar-width: 270px;

    --font-body: "Inter", Arial, sans-serif;
    --font-heading: "Playfair Display", Georgia, serif;

    --shadow-small:
        0 10px 28px rgba(16, 47, 51, 0.07);

    --shadow:
        0 22px 60px rgba(16, 47, 51, 0.12);

    --ease:
        cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    background:
        linear-gradient(
            180deg,
            #f8f7f2 0%,
            #f2f4ef 100%
        );

    color: var(--text);

    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
video {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

::selection {
    background: #d9e6dc;
    color: var(--green-dark);
}

:focus-visible {
    outline: 3px solid rgba(185, 145, 80, 0.55);
    outline-offset: 3px;
}


/* =========================================================
   SHARED
   ========================================================= */

.eyebrow,
.topbar-kicker {
    color: var(--accent);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button,
.quick-action,
.admin-nav-link,
.admin-menu-button {
    border: 0;
}

.primary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 48px;

    padding: 12px 18px;

    border-radius: 10px;

    background: var(--green);

    color: var(--white);

    font-size: 13px;
    font-weight: 700;

    transition:
        background-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.primary-button:hover {
    background: var(--green-hover);

    box-shadow:
        0 10px 24px rgba(21, 61, 66, 0.18);

    transform: translateY(-1px);
}

.primary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.secondary-button {
    min-height: 46px;

    padding: 11px 17px;

    border: 1px solid var(--line-dark);
    border-radius: 10px;

    background: var(--white);

    color: var(--green);

    font-size: 13px;
    font-weight: 600;

    transition:
        background-color 180ms ease,
        border-color 180ms ease;
}

.secondary-button:hover {
    background: var(--paper-2);
    border-color: var(--accent-soft);
}

.danger-button {
    min-height: 46px;

    padding: 11px 17px;

    border-radius: 10px;

    background: var(--danger);

    color: var(--white);

    font-size: 13px;
    font-weight: 700;
}

.danger-button:hover {
    background: var(--danger-dark);
}

.compact-button {
    min-height: 44px;
    padding-inline: 16px;
}

.icon-button {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: var(--white);

    color: var(--green);

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.icon-button:hover {
    background: var(--paper-2);
    border-color: var(--accent-soft);
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-view {
    position: relative;

    display: grid;

    min-height: 100vh;

    place-items: center;

    padding: 28px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(69, 107, 96, 0.12),
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(217, 189, 135, 0.13),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #f8f7f2 0%,
            #eef2ec 100%
        );
}

.login-view::before,
.login-view::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.login-view::before {
    top: -180px;
    right: -180px;

    width: 420px;
    height: 420px;

    border:
        1px solid rgba(21, 61, 66, 0.08);
}

.login-view::after {
    bottom: -220px;
    left: -200px;

    width: 480px;
    height: 480px;

    border:
        1px solid rgba(21, 61, 66, 0.08);
}

.login-card {
    position: relative;
    z-index: 1;

    width:
        min(
            100%,
            470px
        );

    padding:
        clamp(28px, 5vw, 46px);

    border: 1px solid rgba(21, 61, 66, 0.08);
    border-radius: 24px;

    background:
        rgba(255, 255, 255, 0.94);

    box-shadow:
        0 30px 90px rgba(16, 47, 51, 0.14);

    backdrop-filter: blur(12px);
}

.login-brand {
    display: flex;

    align-items: center;

    gap: 14px;

    padding-bottom: 24px;

    border-bottom: 1px solid var(--line);
}

.login-brand img {
    width: 52px;
    height: 58px;

    object-fit: contain;

    border-radius: 14px;
}

.login-brand h1 {
    color: var(--green);

    font-family: var(--font-heading);

    font-size: 31px;
    font-weight: 600;

    line-height: 1;
}

.login-brand p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.login-heading {
    padding-block: 28px 24px;
}

.login-heading h2 {
    margin-top: 8px;

    color: var(--green);

    font-family: var(--font-heading);

    font-size:
        clamp(34px, 7vw, 44px);

    font-weight: 500;

    letter-spacing: -1px;
    line-height: 1.15;
}

.login-heading p {
    margin-top: 10px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.75;
}

.admin-form {
    display: grid;

    gap: 12px;
}

.admin-form > label {
    margin-top: 6px;

    color: var(--green);

    font-size: 12px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-wrap > i {
    position: absolute;

    top: 50%;
    left: 15px;

    color: var(--accent);

    transform: translateY(-50%);

    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 52px;

    padding:
        0 48px 0 44px;

    border: 1px solid var(--line-dark);
    border-radius: 10px;

    background: #fbfcf9;

    color: var(--text);

    outline: none;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.input-wrap input:focus {
    border-color: var(--accent);

    background: var(--white);

    box-shadow:
        0 0 0 4px rgba(69, 107, 96, 0.08);
}

.input-wrap input::placeholder {
    color: #9aa49f;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: var(--muted);

    transform: translateY(-50%);
}

.password-toggle:hover {
    background: var(--paper-2);
    color: var(--green);
}

.form-message {
    min-height: 22px;

    margin-top: 2px;

    font-size: 12px;
    line-height: 1.6;
}

.form-message.error {
    color: var(--danger);
}

.form-message.success {
    color: var(--success);
}

.admin-form .primary-button {
    width: 100%;

    margin-top: 3px;
}

.back-link {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-top: 24px;

    color: var(--muted);

    font-size: 12px;
    font-weight: 600;

    transition:
        color 180ms ease,
        gap 180ms ease;
}

.back-link:hover {
    gap: 12px;
    color: var(--green);
}


/* =========================================================
   ADMIN SHELL
   ========================================================= */

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

.admin-sidebar {
    position: fixed;

    z-index: 1000;

    top: 0;
    bottom: 0;
    left: 0;

    display: flex;

    flex-direction: column;

    width: var(--sidebar-width);

    padding: 24px 18px;

    background:
        linear-gradient(
            180deg,
            #153d42 0%,
            #102f33 100%
        );

    color: var(--white);

    box-shadow:
        10px 0 32px rgba(16, 47, 51, 0.08);
}

.admin-logo {
    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        8px 8px 24px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.12);
}

.admin-logo img {
    width: 42px;
    height: 46px;

    object-fit: contain;

    border-radius: 12px;
}

.admin-logo div {
    display: grid;

    gap: 3px;
}

.admin-logo strong {
    font-family: var(--font-heading);

    font-size: 23px;
    font-weight: 600;
}

.admin-logo span {
    color: var(--on-dark, #d1dfd8);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.admin-nav {
    display: grid;

    gap: 7px;

    margin-top: 26px;
}

.admin-nav-link {
    display: flex;

    align-items: center;

    gap: 13px;

    width: 100%;

    min-height: 48px;

    padding: 11px 14px;

    border-radius: 10px;

    background: transparent;

    color: #c8d8d1;

    font-size: 13px;
    font-weight: 600;

    text-align: left;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.admin-nav-link i {
    width: 18px;
    text-align: center;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.admin-nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);

    box-shadow:
        inset 3px 0 0 var(--gold);
}

.sidebar-footer {
    display: grid;

    gap: 8px;

    margin-top: auto;

    padding-top: 22px;

    border-top:
        1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-footer a,
.sidebar-footer button {
    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 44px;

    padding: 10px 12px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: #c8d8d1;

    font-size: 12px;
    font-weight: 600;

    text-align: left;
}

.sidebar-footer a:hover,
.sidebar-footer button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.admin-main {
    min-height: 100vh;

    margin-left: var(--sidebar-width);
}

.admin-topbar {
    position: sticky;

    z-index: 900;

    top: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 22px;

    min-height: 82px;

    padding:
        14px
        clamp(20px, 4vw, 48px);

    border-bottom: 1px solid var(--line);

    background:
        rgba(248, 247, 242, 0.94);

    backdrop-filter: blur(12px);
}

.admin-topbar h2 {
    margin-top: 3px;

    color: var(--green);

    font-family: var(--font-heading);

    font-size: 25px;
    font-weight: 600;
}

.admin-menu-button {
    display: none;

    place-items: center;

    width: 42px;
    height: 42px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: var(--white);

    color: var(--green);
}

.admin-user {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}

.admin-user-icon {
    display: grid;
    place-items: center;

    flex-shrink: 0;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: var(--tint, #edf2ed);

    color: var(--accent);
}

.admin-user div {
    display: grid;

    min-width: 0;
}

.admin-user span {
    color: var(--green);

    font-size: 12px;
    font-weight: 700;
}

.admin-user small {
    max-width: 250px;

    overflow: hidden;

    color: var(--muted);

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-content {
    width:
        min(
            100%,
            1450px
        );

    margin-inline: auto;

    padding:
        clamp(26px, 4vw, 48px);
}

.admin-panel {
    display: none;
}

.admin-panel.active-panel {
    display: block;
}

.panel-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 28px;
}

.panel-heading > div {
    min-width: 0;
}

.panel-heading h3 {
    margin-top: 7px;

    color: var(--green);

    font-family: var(--font-heading);

    font-size:
        clamp(30px, 4vw, 42px);

    font-weight: 500;

    letter-spacing: -0.8px;
    line-height: 1.15;
}

.panel-heading p {
    max-width: 590px;

    margin-top: 9px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.7;
}

.panel-heading-actions {
    align-items: center;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.stat-card {
    display: flex;

    align-items: center;

    gap: 16px;

    min-height: 120px;

    padding: 24px;

    border: 1px solid var(--line);
    border-radius: 17px;

    background: var(--white);

    box-shadow: var(--shadow-small);
}

.stat-icon {
    display: grid;
    place-items: center;

    flex-shrink: 0;

    width: 52px;
    height: 52px;

    border-radius: 14px;

    background: var(--paper-2);

    color: var(--accent);

    font-size: 19px;
}

.stat-card div {
    display: grid;
}

.stat-card span:not(.stat-icon) {
    color: var(--muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.stat-card strong {
    margin-top: 3px;

    color: var(--green);

    font-family: var(--font-heading);

    font-size: 34px;
    font-weight: 600;

    line-height: 1;
}

.quick-actions {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin-top: 26px;
}

.quick-action {
    display: flex;

    align-items: center;

    gap: 16px;

    min-height: 110px;

    padding: 22px;

    border: 1px solid var(--line);
    border-radius: 16px;

    background: var(--white);

    color: var(--text);

    text-align: left;

    box-shadow: var(--shadow-small);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.quick-action > i {
    display: grid;
    place-items: center;

    flex-shrink: 0;

    width: 48px;
    height: 48px;

    border-radius: 13px;

    background: var(--green);

    color: var(--white);
}

.quick-action span {
    display: grid;

    gap: 3px;
}

.quick-action strong {
    color: var(--green);

    font-size: 14px;
}

.quick-action small {
    color: var(--muted);

    font-size: 11px;
}

.quick-action:hover {
    border-color: var(--line-dark);

    box-shadow: var(--shadow);

    transform: translateY(-2px);
}


/* =========================================================
   EDITOR CARDS
   ========================================================= */

.editor-card {
    margin-bottom: 26px;

    padding:
        clamp(22px, 3vw, 30px);

    border: 1px solid var(--line);
    border-radius: 18px;

    background: var(--white);

    box-shadow: var(--shadow-small);
}

.editor-card-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--line);
}

.editor-card-heading h4 {
    margin-top: 6px;

    color: var(--green);

    font-family: var(--font-heading);

    font-size: 28px;
    font-weight: 500;
}


/* =========================================================
   FORMS
   ========================================================= */

.content-form {
    display: grid;

    gap: 18px;
}

.form-grid {
    display: grid;

    gap: 18px;
}

.form-grid.two-columns {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.field {
    display: grid;

    gap: 8px;
}

.field label {
    color: var(--green);

    font-size: 11px;
    font-weight: 700;
}

.field input,
.field textarea,
.field select {
    width: 100%;

    border: 1px solid var(--line-dark);
    border-radius: 10px;

    background: #fbfcf9;

    color: var(--text);

    outline: none;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.field input,
.field select {
    min-height: 46px;

    padding:
        0 13px;
}

.field textarea {
    min-height: 100px;

    padding: 12px 13px;

    resize: vertical;
}

.field input[type="file"] {
    display: block;

    height: auto;
    min-height: 48px;

    padding: 8px;

    background: var(--paper-2);
}

.field input[type="file"]::file-selector-button {
    margin-right: 10px;

    padding:
        8px 12px;

    border: 0;
    border-radius: 8px;

    background: var(--green);

    color: var(--white);

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--accent);

    background: var(--white);

    box-shadow:
        0 0 0 4px rgba(69, 107, 96, 0.08);
}

.field small {
    color: var(--muted);

    font-size: 10px;
    line-height: 1.5;
}

.form-divider {
    position: relative;

    margin:
        8px 0 2px;

    text-align: center;
}

.form-divider::before {
    content: "";

    position: absolute;

    top: 50%;
    right: 0;
    left: 0;

    height: 1px;

    background: var(--line);
}

.form-divider span {
    position: relative;
    z-index: 1;

    display: inline-block;

    padding:
        0 12px;

    background: var(--white);

    color: var(--accent);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.switch-row {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    justify-self: start;

    cursor: pointer;

    color: var(--green);

    font-size: 12px;
    font-weight: 600;
}

.switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch {
    position: relative;

    width: 42px;
    height: 24px;

    border-radius: 999px;

    background: #cdd6d0;

    transition: background-color 180ms ease;
}

.switch::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: var(--white);

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.16);

    transition: transform 180ms ease;
}

.switch-row input:checked + .switch {
    background: var(--green);
}

.switch-row input:checked + .switch::after {
    transform: translateX(18px);
}

.form-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 4px;

    padding-top: 18px;

    border-top: 1px solid var(--line);
}

.existing-media {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.existing-media img,
.existing-media video {
    width: 120px;
    height: 90px;

    object-fit: cover;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: var(--paper-2);
}


/* =========================================================
   CONTENT LISTS
   ========================================================= */

.content-list {
    display: grid;

    gap: 14px;
}

.admin-item {
    display: grid;

    grid-template-columns:
        92px minmax(0, 1fr) auto;

    align-items: center;

    gap: 18px;

    padding: 16px;

    border: 1px solid var(--line);
    border-radius: 15px;

    background: var(--white);

    box-shadow: var(--shadow-small);
}

.admin-item-media {
    width: 92px;
    height: 74px;

    overflow: hidden;

    border-radius: 10px;

    background: var(--paper-2);
}

.admin-item-media img,
.admin-item-media video {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.admin-item-content {
    min-width: 0;
}

.admin-item-content h4 {
    overflow: hidden;

    color: var(--green);

    font-family: var(--font-body);

    font-size: 14px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-item-content p {
    display: -webkit-box;

    margin-top: 4px;

    overflow: hidden;

    color: var(--muted);

    font-size: 11px;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.admin-item-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 8px;
}

.admin-badge {
    display: inline-flex;

    align-items: center;

    min-height: 24px;

    padding:
        3px 8px;

    border-radius: 999px;

    background: var(--paper-2);

    color: var(--accent);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-badge.inactive {
    background: #f3e8e7;
    color: var(--danger);
}

.admin-item-actions {
    display: flex;

    align-items: center;

    gap: 7px;
}

.admin-action-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 38px;

    padding:
        8px 11px;

    border: 1px solid var(--line);
    border-radius: 8px;

    background: var(--white);

    color: var(--green);

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.admin-action-button:hover {
    background: var(--paper-2);
    border-color: var(--accent-soft);
}

.admin-action-button.delete {
    color: var(--danger);
}

.admin-action-button.delete:hover {
    background: #fbf0ef;
    border-color: #e4c1bf;
}

.empty-state {
    display: grid;

    place-items: center;

    min-height: 220px;

    padding: 40px;

    border: 1px dashed var(--line-dark);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.55);

    color: var(--muted);

    text-align: center;
}

.empty-state i {
    margin-bottom: 12px;

    color: var(--accent-soft);

    font-size: 34px;
}

.empty-state strong {
    display: block;

    margin-bottom: 4px;

    color: var(--green);

    font-size: 14px;
}

.empty-state p {
    max-width: 400px;

    font-size: 11px;
}


/* =========================================================
   GALLERY ADMIN GRID
   ========================================================= */

.gallery-admin-grid {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.gallery-admin-card {
    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 15px;

    background: var(--white);

    box-shadow: var(--shadow-small);
}

.gallery-admin-media {
    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #111;
}

.gallery-admin-media img,
.gallery-admin-media video {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.gallery-admin-card-body {
    padding: 14px;
}

.gallery-admin-card-body h4 {
    color: var(--green);

    font-family: var(--font-body);

    font-size: 13px;
    font-weight: 700;
}

.gallery-admin-card-body p {
    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;
}

.gallery-admin-card .admin-item-actions {
    margin-top: 12px;
}


/* =========================================================
   CONFIRM DIALOG
   ========================================================= */

.confirm-dialog {
    position: fixed;

    z-index: 99999;

    inset: 0;

    display: grid;

    place-items: center;

    padding: 20px;

    background:
        rgba(5, 20, 22, 0.72);

    backdrop-filter: blur(8px);
}

.confirm-card {
    width:
        min(
            100%,
            420px
        );

    padding: 28px;

    border-radius: 18px;

    background: var(--white);

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.26);

    text-align: center;
}

.confirm-icon {
    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    margin:
        0 auto 16px;

    border-radius: 50%;

    background: #f8e8e7;

    color: var(--danger);

    font-size: 20px;
}

.confirm-card h3 {
    color: var(--green);

    font-family: var(--font-heading);

    font-size: 28px;
    font-weight: 500;
}

.confirm-card p {
    margin-top: 8px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.7;
}

.confirm-actions {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 22px;
}


/* =========================================================
   LOADING / STATUS HELPERS
   ========================================================= */

.is-loading {
    pointer-events: none;
    opacity: 0.65;
}

.loading-spinner {
    width: 18px;
    height: 18px;

    border:
        2px solid rgba(255, 255, 255, 0.35);

    border-top-color: var(--white);
    border-radius: 50%;

    animation:
        adminSpin 0.8s linear infinite;
}

@keyframes adminSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   RESPONSIVE 1100
   ========================================================= */

@media (max-width: 1100px) {

    .gallery-admin-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

    .stat-card:last-child {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   RESPONSIVE 900
   ========================================================= */

@media (max-width: 900px) {

    :root {
        --sidebar-width: 250px;
    }

    .admin-sidebar {
        transform: translateX(-100%);

        transition:
            transform 260ms var(--ease);
    }

    .admin-shell.sidebar-open
    .admin-sidebar {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-menu-button {
        display: grid;
    }

    .admin-topbar {
        justify-content: flex-start;
    }

    .admin-user {
        margin-left: auto;
    }

}


/* =========================================================
   RESPONSIVE 700
   ========================================================= */

@media (max-width: 700px) {

    .login-view {
        padding: 18px;
    }

    .login-card {
        padding: 25px 20px;

        border-radius: 18px;
    }

    .admin-topbar {
        min-height: 72px;

        padding:
            10px 16px;
    }

    .admin-user div {
        display: none;
    }

    .admin-content {
        padding:
            24px 16px 34px;
    }

    .panel-heading,
    .panel-heading-actions {
        align-items: flex-start;

        flex-direction: column;
    }

    .panel-heading-actions
    .primary-button {
        width: 100%;
    }

    .stats-grid,
    .quick-actions,
    .gallery-admin-grid,
    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .stat-card:last-child {
        grid-column: auto;
    }

    .quick-action {
        min-height: 96px;
    }

    .admin-item {
        grid-template-columns:
            72px minmax(0, 1fr);

        gap: 12px;
    }

    .admin-item-media {
        width: 72px;
        height: 64px;
    }

    .admin-item-actions {
        grid-column: 1 / -1;

        justify-content: flex-end;

        padding-top: 9px;

        border-top: 1px solid var(--line);
    }

    .form-actions {
        align-items: stretch;

        flex-direction: column-reverse;
    }

    .form-actions button {
        width: 100%;
    }

}


/* =========================================================
   RESPONSIVE 480
   ========================================================= */

@media (max-width: 480px) {

    .login-brand h1 {
        font-size: 27px;
    }

    .login-heading h2 {
        font-size: 35px;
    }

    .admin-sidebar {
        width:
            min(
                86vw,
                300px
            );
    }

    .admin-topbar h2 {
        font-size: 21px;
    }

    .editor-card {
        padding: 18px 15px;
    }

    .confirm-actions {
        align-items: stretch;

        flex-direction: column-reverse;
    }

    .confirm-actions button {
        width: 100%;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}
