.admin-login-body { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: #f1f3f8; }
.login-shell { width: min(100%, 920px); display: grid; grid-template-columns: .85fr 1.15fr; min-height: 610px; overflow: hidden; background: #fff; border-radius: 8px; box-shadow: 0 30px 80px rgba(23,29,91,.18); }
.login-brand { display: flex; align-items: flex-end; gap: 14px; padding: 44px; color: #fff; background: #171d5b url('../assets/img/hero-campus.png') 38% center / cover no-repeat; position: relative; }
.login-brand::before { content: ""; position: absolute; inset: 0; background: rgba(14,19,63,.78); }
.login-brand > * { position: relative; z-index: 1; }
.login-brand img { width: 70px; height: 70px; object-fit: cover; object-position: top; border-radius: 5px; }
.login-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.login-brand strong { font-family: "Libre Franklin", Arial, sans-serif; text-transform: uppercase; }
.login-brand small { margin-top: 5px; color: #ffc928; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 60px; }
.login-panel h1 { margin-bottom: 10px; font-size: 2.65rem; }
.login-panel > p { margin-bottom: 32px; color: #647086; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: #647086; font-size: .88rem; font-weight: 700; }
.back-link svg { width: 17px; }

.admin-body { min-height: 100vh; background: #f4f6f9; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 120; width: 252px; display: flex; flex-direction: column; padding: 25px 18px; background: #101541; color: rgba(255,255,255,.76); }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.admin-brand img { width: 48px; height: 48px; object-fit: cover; object-position: top; border-radius: 4px; }
.admin-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.admin-brand strong { color: #fff; font-family: "Libre Franklin", Arial, sans-serif; font-size: 1.05rem; }
.admin-brand small { margin-top: 4px; color: #ffc928; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-sidebar nav { display: grid; gap: 5px; margin-top: 24px; }
.admin-sidebar nav a, .sidebar-bottom a, .sidebar-bottom button { min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 0; border-radius: 5px; background: transparent; color: inherit; font-size: .88rem; font-weight: 700; text-align: left; cursor: pointer; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,.11); color: #fff; }
.admin-sidebar nav a.active { box-shadow: inset 3px 0 #ffc928; }
.admin-sidebar svg { width: 19px; height: 19px; }
.admin-sidebar nav b { min-width: 22px; margin-left: auto; padding: 2px 6px; border-radius: 12px; background: #d71920; color: #fff; font-size: .68rem; text-align: center; }
.sidebar-bottom { display: grid; gap: 4px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-bottom form, .sidebar-bottom button { width: 100%; }
.sidebar-bottom button:hover, .sidebar-bottom a:hover { color: #ffc928; }
.admin-main { min-height: 100vh; margin-left: 252px; }
.admin-topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: #fff; border-bottom: 1px solid #dfe3ea; }
.admin-topbar > div:first-of-type { display: flex; flex-direction: column; }
.admin-topbar > div:first-of-type span { color: #7c8698; font-size: .72rem; }
.admin-topbar > div:first-of-type strong { font-size: .95rem; }
.admin-menu { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid #dfe3ea; border-radius: 5px; background: #fff; }
.admin-menu svg { width: 20px; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.admin-user > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #171d5b; color: #fff; font-weight: 800; }
.admin-user p { margin: 0; font-size: .84rem; font-weight: 800; line-height: 1.2; }
.admin-user small { display: block; color: #7c8698; font-size: .66rem; font-weight: 500; }
.admin-content { padding: 38px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.admin-heading span { color: #d71920; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-heading h1 { margin: 5px 0 0; font-size: 2.2rem; }
.admin-alert { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; padding: 13px 15px; border-radius: 5px; font-weight: 700; }
.admin-alert.success { background: #dff4eb; color: #0f644b; }
.admin-alert.error { background: #fee8e8; color: #a50d13; }
.admin-alert svg { width: 20px; height: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-grid article { min-height: 120px; display: flex; align-items: center; gap: 16px; padding: 22px; background: #fff; border: 1px solid #dfe3ea; border-radius: 7px; }
.stat-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 46px; border-radius: 6px; }
.stat-icon svg { width: 23px; }
.stat-icon.red { background: #fee8e8; color: #d71920; }
.stat-icon.navy { background: #e9eaf6; color: #171d5b; }
.stat-icon.green { background: #def3ea; color: #18785c; }
.stat-icon.gold { background: #fff4c8; color: #8b6800; }
.stat-grid small { display: block; color: #738096; font-size: .75rem; }
.stat-grid strong { display: block; font-family: "Libre Franklin", Arial, sans-serif; font-size: 1.8rem; line-height: 1.2; }
.admin-section { overflow: hidden; padding: 25px; background: #fff; border: 1px solid #dfe3ea; border-radius: 7px; }
.section-title { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-title h2 { margin: 0; font-size: 1.2rem; }
.section-title a { display: inline-flex; align-items: center; gap: 7px; color: #171d5b; font-size: .82rem; font-weight: 800; }
.section-title svg { width: 16px; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.admin-table th { padding: 11px 12px; background: #f4f6f9; color: #738096; font-size: .69rem; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td { min-width: 130px; padding: 14px 12px; border-bottom: 1px solid #e7eaf0; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { max-width: 380px; margin-top: 3px; color: #7c8698; font-size: .75rem; line-height: 1.45; }
.status-form select { min-height: 35px; padding: 5px 28px 5px 9px; border: 1px solid #cfd5df; border-radius: 4px; background: #fff; color: #182135; font-size: .76rem; text-transform: capitalize; }
.filter-tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; }
.filter-tabs a { padding: 8px 13px; border: 1px solid #dfe3ea; border-radius: 5px; background: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.filter-tabs a.active { border-color: #171d5b; background: #171d5b; color: #fff; }
.empty-state { min-height: 240px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #7c8698; text-align: center; }
.empty-state svg { width: 38px; height: 38px; margin-bottom: 12px; }
.empty-state strong { color: #182135; }
.empty-state span { font-size: .82rem; }
.admin-two-col { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; align-items: start; }
.admin-form { display: grid; gap: 16px; }
.admin-form label { display: grid; gap: 7px; }
.admin-form label > span { font-size: .78rem; font-weight: 800; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd5df; border-radius: 5px; background: #fff; color: #182135; outline: none; }
.admin-form textarea { resize: vertical; }
.admin-form input:focus, .admin-form textarea:focus { border-color: #171d5b; box-shadow: 0 0 0 3px rgba(23,29,91,.1); }
.admin-form .button { justify-self: start; }
.admin-form-row { display: grid; grid-template-columns: 1fr 110px; gap: 12px; }
.check-field { display: flex !important; align-items: center; grid-template-columns: auto 1fr; gap: 9px !important; }
.check-field input { width: 18px; min-height: 18px; }
.manage-list { display: grid; }
.manage-list article { min-height: 76px; display: grid; grid-template-columns: 44px 1fr 40px 40px; gap: 12px; align-items: center; border-bottom: 1px solid #e7eaf0; }
.manage-list article:last-child { border-bottom: 0; }
.list-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 5px; background: #eff1f6; color: #171d5b; }
.list-icon svg { width: 20px; }
.manage-list strong, .manage-list small { display: block; }
.manage-list small { color: #7c8698; font-size: .75rem; }
.manage-list form { margin: 0; }
.danger { color: #d71920; }
.notice-list { display: grid; gap: 14px; }
.notice-list article { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid #e7eaf0; }
.notice-list article:last-child { border-bottom: 0; }
.notice-list span { display: block; color: #d71920; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.notice-list strong { display: block; margin: 3px 0; }
.notice-list p { margin: 0; color: #647086; font-size: .84rem; }
.gallery-admin-grid { display: grid; gap: 12px; }
.gallery-admin-grid article { min-height: 76px; display: grid; grid-template-columns: 86px 1fr 40px; gap: 13px; align-items: center; }
.gallery-admin-grid img { width: 86px; height: 68px; object-fit: cover; border-radius: 5px; }
.gallery-admin-grid span, .gallery-admin-grid strong { display: block; }
.gallery-admin-grid span { color: #d71920; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.gallery-admin-grid form { margin: 0; }
.settings-section { max-width: 1040px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.settings-grid .wide { grid-column: 1 / -1; }
.narrow-section { max-width: 570px; }
.event-admin-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: start; }
.event-admin-tools { display: grid; gap: 20px; }
.event-manage-list { display: grid; gap: 12px; }
.event-manage-list article { min-height: 94px; display: grid; grid-template-columns: 112px 1fr 40px 40px; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #e7eaf0; }
.event-manage-list article:last-child { border-bottom: 0; }
.event-manage-list img { width: 112px; height: 82px; object-fit: cover; border-radius: 5px; }
.event-manage-list time, .event-manage-list strong, .event-manage-list small { display: block; }
.event-manage-list time { color: #d71920; font-size: .69rem; font-weight: 800; text-transform: uppercase; }
.event-manage-list small { margin-top: 3px; color: #7c8698; font-size: .73rem; }
.current-cover { position: relative; height: 180px; overflow: hidden; border-radius: 5px; }
.current-cover img { width: 100%; height: 100%; object-fit: cover; }
.current-cover span { position: absolute; left: 10px; bottom: 10px; padding: 5px 8px; border-radius: 3px; background: #171d5b; color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.photo-count { color: #7c8698; font-size: .75rem; font-weight: 700; }
.event-photo-admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.event-photo-admin-grid article { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
.event-photo-admin-grid img { width: 100%; height: 100%; object-fit: cover; }
.event-photo-admin-grid form { position: absolute; right: 5px; top: 5px; }
.event-photo-admin-grid .icon-button { width: 32px; height: 32px; border-color: transparent; background: rgba(255,255,255,.94); }

@media (max-width: 1120px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .admin-two-col { grid-template-columns: 1fr; }
    .event-admin-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .login-shell { grid-template-columns: 1fr; min-height: 0; }
    .login-brand { min-height: 190px; align-items: flex-end; }
    .login-panel { padding: 38px 28px; }
    .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .admin-sidebar.open { transform: translateX(0); box-shadow: 20px 0 50px rgba(0,0,0,.25); }
    .admin-main { margin-left: 0; }
    .admin-menu { display: grid; }
    .admin-topbar { padding: 0 18px; }
    .admin-topbar > div:first-of-type { display: none; }
    .admin-content { padding: 25px 16px; }
}

@media (max-width: 560px) {
    .admin-login-body { padding: 12px; }
    .login-brand { min-height: 155px; padding: 25px; }
    .login-panel { padding: 30px 22px; }
    .login-panel h1 { font-size: 2.1rem; }
    .admin-heading { align-items: flex-start; flex-direction: column; }
    .admin-heading .button { width: 100%; }
    .stat-grid { grid-template-columns: 1fr; }
    .admin-section { padding: 18px 14px; }
    .settings-grid, .admin-form-row { grid-template-columns: 1fr; }
    .settings-grid .wide { grid-column: auto; }
    .manage-list article { grid-template-columns: 40px 1fr 38px 38px; gap: 7px; }
    .event-manage-list article { grid-template-columns: 84px 1fr 36px 36px; gap: 8px; }
    .event-manage-list img { width: 84px; height: 72px; }
    .event-photo-admin-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-user p { display: none; }
}
