﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #101114;
    color: #f6f7fb;
    font-family: Arial, 'Noto Sans KR', sans-serif;
}

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

.manager-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 28px;
    background: rgba(16, 17, 20, 0.94);
    border-bottom: 1px solid #252832;
    backdrop-filter: blur(10px);
}

.brand {
    color: #e50914;
    font-size: 26px;
    font-weight: 900;
}

.manager-header nav {
    display: flex;
    gap: 10px;
}

.manager-header nav a {
    padding: 9px 12px;
    border-radius: 8px;
    background: #1b1e26;
    color: #d7dbe7;
    font-size: 14px;
}

.manager-wrap {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 28px;
}

.summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.summary div,
.panel {
    background: #181b22;
    border: 1px solid #282c36;
    border-radius: 8px;
}

.summary div {
    padding: 18px;
}

.summary span {
    display: block;
    color: #9ca3b4;
    font-size: 13px;
    margin-bottom: 8px;
}

.summary strong {
    font-size: 26px;
}

.manager-grid {
    display: grid;
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.panel {
    padding: 20px;
}

.panel h1 {
    margin: 0 0 18px;
    font-size: 22px;
}

label {
    display: block;
    color: #b7bdca;
    font-size: 13px;
    margin-bottom: 13px;
}

input,
select,
textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    border: 1px solid #303541;
    border-radius: 8px;
    background: #0f1117;
    color: #fff;
    padding: 11px 12px;
    outline: none;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check input {
    width: auto;
    margin: 0;
}

button {
    border: 0;
    border-radius: 8px;
    background: #e50914;
    color: #fff;
    padding: 11px 15px;
    font-weight: 700;
    cursor: pointer;
}

.danger {
    background: #343946;
    color: #f5b8bc;
    padding: 8px 10px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel-head h1 {
    margin: 0;
}

.panel-head input {
    max-width: 260px;
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    border-bottom: 1px solid #282c36;
    padding: 13px 10px;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

th {
    color: #9ca3b4;
    font-weight: 700;
}

td:first-child {
    font-weight: 700;
}

@media (max-width: 980px) {
    .summary,
    .manager-grid {
        grid-template-columns: 1fr;
    }

    .manager-wrap {
        padding: 18px;
    }

    .panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .panel-head input {
        max-width: none;
    }
}

.narrow {
    max-width: 780px;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #2b303b;
    color: #dce2ef;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
}

.preview-image {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    color: #9ca3b4;
    font-size: 12px;
    word-break: break-all;
}

.preview-image img {
    width: 58px;
    height: 82px;
    object-fit: cover;
    border-radius: 6px;
    background: #0f1117;
}
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-panel {
    width: min(420px, 100%);
}

.login-error {
    margin-bottom: 14px;
    border: 1px solid #6d2c35;
    border-radius: 8px;
    background: #2a1419;
    color: #ffb7c0;
    padding: 11px 12px;
    font-size: 14px;
}

.login-back {
    display: block;
    margin-top: 14px;
    color: #9ca3b4;
    text-align: center;
    font-size: 14px;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.quick-card {
    display: block;
    background: #181b22;
    border: 1px solid #282c36;
    border-radius: 8px;
    padding: 18px;
}

.quick-card span {
    display: block;
    color: #9ca3b4;
    font-size: 13px;
    margin-bottom: 8px;
}

.quick-card strong {
    font-size: 20px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px 130px auto auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
}

.filter-bar input,
.filter-bar select {
    margin-top: 0;
}

.list-meta {
    margin-bottom: 12px;
    color: #9ca3b4;
    font-size: 13px;
}

.empty-cell {
    color: #9ca3b4;
    text-align: center;
    padding: 32px 10px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pagination a {
    min-width: 38px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #252a34;
    color: #dce2ef;
    text-align: center;
    font-size: 14px;
}

.pagination a.active {
    background: #e50914;
    color: #fff;
}

.pagination a.disabled {
    pointer-events: none;
    opacity: 0.4;
}

@media (max-width: 980px) {
    .quick-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }
}
.manager-header nav a.active {
    background: #e50914;
    color: #fff;
}

.table-wrap th:last-child,
.table-wrap td:last-child {
    width: 150px;
    text-align: right;
}

.row-actions {
    justify-content: flex-end;
    min-width: 132px;
}

.row-actions form {
    margin: 0;
}

.row-actions .secondary,
.row-actions .danger {
    height: 34px;
    min-width: 58px;
    padding: 0 10px;
    line-height: 34px;
    white-space: nowrap;
}

.row-actions .danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-bar button,
.filter-bar .secondary {
    height: 42px;
    padding-top: 0;
    padding-bottom: 0;
}