/* ====================================================
   Kemera Wale — Admin Panel CSS
   admin.css
   ==================================================== */

/* --- Fonts & Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body.admin-body {
    font-family: 'Inter', sans-serif;
    background: #0D0D0D;
    color: rgba(255,255,255,0.85);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ====================================================
   ADMIN LAYOUT
   ==================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ====================================================
   SIDEBAR
   ==================================================== */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0D0D0D 0%, #110800 100%);
    border-right: 1px solid rgba(245,166,35,0.12);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(245,166,35,0.1);
    flex-shrink: 0;
}

.sidebar-logo img {
    width: 44px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(245,166,35,0.3));
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #F5A623;
    letter-spacing: 0.05em;
}

.brand-role {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

/* Nav */
.sidebar-nav {
    list-style: none;
    padding: 16px 0;
    flex: 1;
}

.sidebar-nav .nav-item {
    position: relative;
}

.sidebar-nav .nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-item a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav .nav-item a:hover {
    color: rgba(245,166,35,0.9);
    background: rgba(245,166,35,0.06);
    border-left-color: rgba(245,166,35,0.4);
}

.sidebar-nav .nav-item.active a {
    color: #F5A623;
    background: rgba(245,166,35,0.1);
    border-left-color: #F5A623;
    font-weight: 600;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.sidebar-user i { color: #F5A623; font-size: 1.2rem; }

.btn-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 8px;
    background: rgba(230,57,70,0.1);
    border: 1px solid rgba(230,57,70,0.2);
    color: rgba(230,57,70,0.8);
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}
.btn-sidebar-logout:hover {
    background: rgba(230,57,70,0.2);
    color: #E63946;
}

.sidebar-contact {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-contact i { color: #F5A623; }

/* ====================================================
   ADMIN MAIN CONTENT
   ==================================================== */
.admin-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ====================================================
   TOPBAR
   ==================================================== */
.admin-topbar {
    height: 64px;
    background: rgba(13,13,13,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245,166,35,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }

.sidebar-toggle {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
}
.sidebar-toggle:hover {
    background: rgba(245,166,35,0.1);
    color: #F5A623;
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.breadcrumb-home {
    color: rgba(245,166,35,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-home:hover { color: #F5A623; }

.breadcrumb-sep { color: rgba(255,255,255,0.2); font-size: 0.75rem; }

.breadcrumb-current { color: rgba(255,255,255,0.7); font-weight: 500; }

.breadcrumb-link {
    color: rgba(245,166,35,0.6);
    text-decoration: none;
}
.breadcrumb-link:hover { color: #F5A623; }

.topbar-date {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.02em;
}

/* ====================================================
   ADMIN CONTENT AREA
   ==================================================== */
.admin-content {
    flex: 1;
    padding: 32px 28px;
    max-width: 1400px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}

/* ====================================================
   STATS CARDS
   ==================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(245,166,35,0.12);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245,166,35,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    border-color: rgba(245,166,35,0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.stat-card:hover::before { opacity: 1; }

.stat-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
}

.stat-body { flex: 1; min-width: 0; }

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ====================================================
   ALBUMS GRID
   ==================================================== */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.album-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.album-card:hover {
    border-color: rgba(245,166,35,0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,166,35,0.08);
}

.album-cover-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #1a1a1a;
}

.album-cover {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.album-card:hover .album-cover { transform: scale(1.04); }

.album-badges {
    position: absolute;
    top: 10px; left: 10px;
    display: flex;
    gap: 4px;
    flex-direction: column;
    align-items: flex-start;
}

.badge-status, .badge-visibility {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.badge-active    { background: rgba(92,184,92,0.25); color: #7BD87B; border: 1px solid rgba(92,184,92,0.3); }
.badge-inactive  { background: rgba(100,100,100,0.25); color: #888; border: 1px solid rgba(100,100,100,0.3); }
.badge-vis-public   { background: rgba(92,184,92,0.15); color: #7BD87B; }
.badge-vis-private  { background: rgba(41,171,226,0.15); color: #5EC8F0; }
.badge-vis-password { background: rgba(245,166,35,0.15); color: #F5A623; }

.album-page-count {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.8);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
}

.album-card-body { padding: 14px; }

.album-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
}

.album-client, .album-event {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    gap: 5px;
}

.album-client i, .album-event i { color: #F5A623; font-size: 0.65rem; }

.album-stats-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.album-stat-item {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 4px;
}

.album-actions {
    display: flex;
    gap: 6px;
}

.btn-album-action {
    flex: 1;
    height: 34px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view   { background: rgba(41,171,226,0.15); color: #29ABE2; }
.btn-edit   { background: rgba(245,166,35,0.15); color: #F5A623; }
.btn-upload { background: rgba(92,184,92,0.15);  color: #5CB85C; }
.btn-delete { background: rgba(230,57,70,0.12);  color: #E63946; }

.btn-view:hover   { background: rgba(41,171,226,0.3);  color: #29ABE2; }
.btn-edit:hover   { background: rgba(245,166,35,0.3);  color: #F5A623; }
.btn-upload:hover { background: rgba(92,184,92,0.3);   color: #5CB85C; }
.btn-delete:hover { background: rgba(230,57,70,0.25);  color: #E63946; }

/* ====================================================
   SECTION HEADER
   ==================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header-actions { display: flex; align-items: center; gap: 10px; }

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: rgba(255,255,255,0.8);
}

/* ====================================================
   ADMIN FORMS
   ==================================================== */
.form-layout {
    max-width: 860px;
}

.form-section {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.form-section-header i {
    color: #F5A623;
    font-size: 1rem;
}

.form-section-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.admin-form-group {
    margin-bottom: 18px;
}
.admin-form-group:last-child { margin-bottom: 0; }

.admin-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
}

.required { color: #E63946; }
.optional  { color: rgba(255,255,255,0.25); font-weight: 400; }

.admin-input, .admin-select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

.admin-input::placeholder { color: rgba(255,255,255,0.2); }

.admin-input:focus, .admin-select:focus {
    border-color: rgba(245,166,35,0.5);
    background: rgba(245,166,35,0.04);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
}

.admin-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M6 8L0 0h12z' fill='rgba(245,166,35,0.5)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.admin-input[type="date"] { color-scheme: dark; }

.field-hint {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    margin-top: 6px;
}

/* Input with prefix */
.input-with-prefix {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.09);
    transition: border-color 0.2s;
}
.input-with-prefix:focus-within {
    border-color: rgba(245,166,35,0.5);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
}
.input-prefix {
    background: rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 11px 12px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.slug-input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
}
.slug-input:focus { box-shadow: none !important; }

/* URL Preview */
.url-preview-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(245,166,35,0.06);
    border: 1px solid rgba(245,166,35,0.15);
    border-radius: 10px;
    flex-wrap: wrap;
}
.url-preview-label {
    font-size: 0.7rem;
    color: rgba(245,166,35,0.7);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.url-preview-value {
    flex: 1;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    font-family: monospace;
    word-break: break-all;
}
.btn-copy-url {
    background: rgba(245,166,35,0.15);
    border: none;
    color: #F5A623;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-copy-url:hover { background: rgba(245,166,35,0.25); }

/* Visibility Options */
.visibility-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.visibility-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.visibility-option input[type="radio"] { display: none; }
.visibility-option:hover {
    border-color: rgba(245,166,35,0.2);
    background: rgba(245,166,35,0.04);
}
.visibility-option.selected {
    border-color: rgba(245,166,35,0.4);
    background: rgba(245,166,35,0.08);
}
.vis-icon { font-size: 1.3rem; flex-shrink: 0; }
.vis-info { display: flex; flex-direction: column; gap: 2px; }
.vis-info strong { font-size: 0.85rem; font-weight: 600; color: #fff; }
.vis-info span   { font-size: 0.72rem; color: rgba(255,255,255,0.35); }

/* Toggle switch */
.admin-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.admin-toggle-label input[type="checkbox"] { display: none; }

.toggle-track {
    width: 44px; height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    position: relative;
    transition: background 0.25s;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
}
.toggle-track::after {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.25s;
}
input[type="checkbox"]:checked + .toggle-track {
    background: rgba(245,166,35,0.4);
    border-color: rgba(245,166,35,0.3);
}
input[type="checkbox"]:checked + .toggle-track::after {
    left: calc(100% - 19px);
    background: #F5A623;
}
.toggle-label-text { font-size: 0.88rem; color: rgba(255,255,255,0.7); }

/* Watermark row */
.watermark-toggle-row { margin-bottom: 4px; }

/* Cover upload */
.cover-upload-area {
    border: 2px dashed rgba(245,166,35,0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cover-upload-area:hover, .cover-upload-area.drag-over {
    border-color: rgba(245,166,35,0.5);
    background: rgba(245,166,35,0.04);
}
.cover-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.cover-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.cover-upload-placeholder i {
    font-size: 2.5rem;
    color: rgba(245,166,35,0.4);
}
.cover-upload-placeholder p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.cover-upload-placeholder span { color: rgba(255,255,255,0.25); font-size: 0.75rem; }

.cover-preview-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.cover-preview-wrap img {
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.cover-remove-btn {
    position: absolute;
    top: -10px; right: -10px;
    background: #E63946;
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    cursor: pointer;
}

.current-cover-wrap { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.current-cover-thumb { width: 80px; height: 100px; object-fit: cover; border-radius: 8px; border: 2px solid rgba(245,166,35,0.2); }

/* Form actions */
.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}

/* ====================================================
   BUTTONS
   ==================================================== */
.btn-admin-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #F5A623 0%, #D4840A 100%);
    color: #1A1A1A !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(245,166,35,0.3);
    white-space: nowrap;
}
.btn-admin-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(245,166,35,0.45);
    color: #1A1A1A !important;
}

.btn-admin-danger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #E63946 0%, #C1121F 100%);
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.btn-admin-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(230,57,70,0.4);
}

.btn-admin-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.84rem;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-admin-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9) !important;
}

.btn-sm-topbar {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-sm { padding: 7px 12px; font-size: 0.8rem; }

/* ====================================================
   ALERTS
   ==================================================== */
.admin-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 20px;
    position: relative;
}
.admin-alert-success {
    background: rgba(92,184,92,0.12);
    border: 1px solid rgba(92,184,92,0.25);
    color: #7BD87B;
}
.admin-alert-danger {
    background: rgba(230,57,70,0.12);
    border: 1px solid rgba(230,57,70,0.25);
    color: #FF8088;
}
.alert-close {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: inherit; cursor: pointer;
    opacity: 0.6; font-size: 1rem;
}
.alert-close:hover { opacity: 1; }

/* ====================================================
   EMPTY STATE
   ==================================================== */
.empty-state {
    text-align: center;
    padding: 64px 32px;
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-top: 20px;
}
.empty-icon {
    font-size: 3rem;
    color: rgba(245,166,35,0.3);
    margin-bottom: 16px;
}
.empty-state h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}
.empty-state p {
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ====================================================
   UPLOAD ZONE
   ==================================================== */
.upload-zone {
    border: 2px dashed rgba(245,166,35,0.25);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    background: rgba(245,166,35,0.02);
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: rgba(245,166,35,0.5);
    background: rgba(245,166,35,0.05);
}
.upload-zone-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.upload-zone-icon {
    font-size: 3rem;
    color: rgba(245,166,35,0.4);
    margin-bottom: 12px;
    display: block;
}
.upload-zone-content h4 { color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.upload-zone-content p  { color: rgba(255,255,255,0.3); font-size: 0.85rem; margin-bottom: 14px; }
.upload-zone-note { font-size: 0.72rem; color: rgba(255,255,255,0.2); margin: 10px 0 0; }

.upload-zone-formats { display: flex; justify-content: center; gap: 6px; }
.format-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(245,166,35,0.12);
    border: 1px solid rgba(245,166,35,0.2);
    color: rgba(245,166,35,0.8);
}

.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.upload-preview-thumb {
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    position: relative;
    border: 1px solid rgba(255,255,255,0.06);
}
.upload-preview-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.upload-preview-thumb .pdf-icon {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #E63946;
}
.preview-thumb-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.7);
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.preview-thumb-info span {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pages grid (existing) */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 4px;
}
.page-thumb {
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: grab;
    position: relative;
}
.page-thumb:hover { border-color: rgba(245,166,35,0.3); }
.page-thumb-img-wrap { aspect-ratio: 3/4; overflow: hidden; }
.page-thumb-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.page-thumb-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: rgba(0,0,0,0.4);
}
.page-thumb-num { font-size: 0.72rem; color: rgba(245,166,35,0.7); font-weight: 600; }
.page-delete-btn {
    background: none; border: none;
    color: rgba(230,57,70,0.6);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px;
    transition: color 0.15s;
}
.page-delete-btn:hover { color: #E63946; }
.page-drag-handle {
    position: absolute;
    top: 6px; left: 6px;
    color: rgba(255,255,255,0.4);
    font-size: 1rem;
    cursor: grab;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    padding: 2px 4px;
}

/* ====================================================
   DELETE MODAL
   ==================================================== */
.kw-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}
.kw-modal {
    background: rgba(18,10,25,0.97);
    border: 1px solid rgba(245,166,35,0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0,0,0,0.7);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.kw-modal-icon { font-size: 2.5rem; margin-bottom: 16px; }
.kw-modal-icon.danger { color: #E63946; }
.kw-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 12px;
}
.kw-modal-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    margin-bottom: 24px;
    line-height: 1.6;
}
.kw-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.sidebar--open {
        transform: translateX(0);
    }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .visibility-options { grid-template-columns: 1fr; }
    .form-row-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-content { padding: 20px 16px; }
    .albums-grid { grid-template-columns: repeat(2, 1fr); }
    .form-section { padding: 16px; }
    .admin-topbar { padding: 0 16px; }
}
