@charset "utf-8";
/* FS Karavanke Admin Console Stylesheet */

:root {
    --fsk-navy: #000050;
    --fsk-navy-hover: #0a147a;
    --fsk-accent: #1d4ed8;
    --fsk-bg: #f4f6fb;
    --fsk-card-border: #e3e8f2;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--fsk-bg);
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
nav,
.navbar {
    font-family: 'Raleway', sans-serif;
}

/* Top Admin Navbar */
.admin-navbar {
    background: linear-gradient(90deg, #000046 0%, #0b1668 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 40, 0.16);
    padding: 0.55rem 0;
}

.admin-navbar .navbar-brand img {
    width: 66px;
    height: auto;
}

.admin-navbar .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    padding: 0.48rem 0.9rem !important;
    border-radius: 8px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.admin-navbar .nav-link:hover,
.admin-navbar .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-navbar .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.18);
}

.admin-user-pill {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.84rem;
}

/* Main Admin Container */
.admin-main {
    padding: 116px 0 56px;
}

.admin-main h1,
.admin-main h2,
.admin-main h3,
.admin-main h4,
.admin-main h5,
.admin-main h6 {
    padding-top: 0.65rem;
}

.admin-card {
    background: #ffffff;
    border: 1px solid var(--fsk-card-border);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid var(--fsk-card-border);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.admin-quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--fsk-card-border);
    border-radius: 12px;
    background: #ffffff;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.18s ease;
}

.admin-quick-action:hover {
    border-color: #93c5fd;
    background: #f8faff;
    color: var(--fsk-navy);
    transform: translateY(-1px);
}

.btn-fsk {
    background-color: var(--fsk-navy);
    border-color: var(--fsk-navy);
    color: #ffffff;
    font-weight: 500;
}

.btn-fsk:hover,
.btn-fsk:focus {
    background-color: var(--fsk-navy-hover);
    border-color: var(--fsk-navy-hover);
    color: #ffffff;
}

/* Tables & Thumbnails */
.admin-thumb {
    width: 64px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #eef2f7;
    border: 1px solid #dde3ee;
}

.admin-thumb-placeholder {
    width: 64px;
    height: 46px;
    border-radius: 6px;
    background-color: #eef2f7;
    border: 1px dashed #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.admin-excerpt-cell {
    max-width: 340px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #64748b;
    font-size: 0.85rem;
}

/* Rich Visual Article Editor */
.rich-editor-shell {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    overflow: visible;
}

.rich-editor-toolbar {
    position: sticky;
    top: 72px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.75rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.rich-editor-toolbar .toolbar-divider {
    width: 1px;
    height: 24px;
    background: #cbd5e1;
    margin: 0 0.25rem;
}

.rich-editor-toolbar button {
    border: 1px solid transparent;
    background: #ffffff;
    color: #334155;
    border-radius: 7px;
    padding: 0.34rem 0.6rem;
    font-size: 0.86rem;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: all 0.15s ease;
}

.rich-editor-toolbar button:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--fsk-navy);
}

.rich-editor-toolbar button.active,
.rich-editor-toolbar button[aria-pressed="true"] {
    background: var(--fsk-navy);
    border-color: var(--fsk-navy);
    color: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.rich-editor-toolbar button.active:hover,
.rich-editor-toolbar button[aria-pressed="true"]:hover {
    background: var(--fsk-navy-hover);
    border-color: var(--fsk-navy-hover);
    color: #ffffff;
}

.rich-editor-toolbar button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rich-editor-toolbar button.btn-toolbar-media {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: var(--fsk-navy);
    font-weight: 500;
}

.rich-editor-toolbar button.btn-toolbar-media:hover {
    background: #e0e7ff;
    border-color: #818cf8;
}

.editor-upload-progress-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.75rem;
    color: var(--fsk-navy);
}

.editor-upload-progress-card .progress {
    height: 7px;
    border-radius: 999px;
    background-color: #dbeafe;
}

.editor-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1.6rem 1.25rem;
    margin: 1.25rem auto;
    border: 2px dashed #93c5fd;
    border-radius: 10px;
    background: #f0f7ff;
    color: var(--fsk-navy);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    user-select: none;
}

.editor-upload-placeholder .progress {
    width: 100%;
    max-width: 300px;
    height: 7px;
    border-radius: 999px;
    background-color: #dbeafe;
}

.rich-editor-surface {
    min-height: 440px;
    padding: 1.35rem 1.5rem;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #1e293b;
}

.rich-editor-surface.is-dragover {
    background-color: #eff6ff;
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.rich-editor-surface p {
    margin-bottom: 1rem;
}

.rich-editor-surface h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    padding-top: 1.15rem;
    margin: 1.35rem 0 0.75rem;
}

.rich-editor-surface h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    padding-top: 0.95rem;
    margin: 1.1rem 0 0.6rem;
}

.rich-editor-surface blockquote {
    border-left: 4px solid var(--fsk-navy);
    background: #f8fafc;
    padding: 0.8rem 1.15rem;
    margin: 1.2rem 0;
    font-style: italic;
    color: #334155;
}

.rich-editor-surface a:not(.lightbox) {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Inline Image & Gallery Blocks inside Rich Editor */
.rich-editor-surface figure.article-inline-image,
.rich-editor-surface .article-inline-gallery {
    position: relative;
    border: 1px solid #dbe3f0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.65rem;
    margin: 1.35rem auto;
}

.rich-editor-surface figure.article-inline-image.size-medium {
    max-width: 72%;
}

.rich-editor-surface figure.article-inline-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.rich-editor-surface figure.article-inline-image figcaption {
    margin-top: 0.5rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.86rem;
    color: #475569;
    font-style: italic;
    text-align: center;
    border-radius: 6px;
    outline: none;
}

.rich-editor-surface figure.article-inline-image figcaption:focus {
    background: #ffffff;
    box-shadow: 0 0 0 2px #bfdbfe;
}

.rich-editor-surface figure.article-inline-image figcaption:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
}

.rich-editor-surface .article-inline-gallery .row > div {
    position: relative;
}

.rich-editor-surface .article-inline-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.editor-media-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.editor-media-toolbar button {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 6px;
    padding: 0.18rem 0.55rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #334155;
}

.editor-media-toolbar button.active {
    background: var(--fsk-navy);
    border-color: var(--fsk-navy);
    color: #ffffff;
}

.editor-photo-remove,
.editor-col-remove {
    position: absolute;
    top: 6px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.editor-photo-remove:hover,
.editor-col-remove:hover {
    background: #dc2626;
}

/* Cover preview & existing gallery management */
.cover-preview-box img {
    width: 100%;
    max-height: 210px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dbe3f0;
}

.existing-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.existing-gallery-tile {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.existing-gallery-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.existing-gallery-tile label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.74rem;
    padding: 0.22rem;
    background: #fff;
    cursor: pointer;
    margin: 0;
}

.existing-gallery-tile input:checked + span {
    color: #dc2626;
    font-weight: 600;
}

/* Auth Login Card */
.auth-wrapper {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 430px;
}

@media (max-width: 767px) {
    .admin-main {
        padding-top: 82px;
    }
    .rich-editor-surface figure.article-inline-image.size-medium {
        max-width: 100%;
    }
}
