:root {
    --bg-color: #f5f7fb;
    --panel-bg: #ffffff;
    --accent: #88bc25;
    --accent-dark: #5f8f1c;
    --accent-soft: #e7f4cd;
    --text-color: #1f2937;
    --muted-text: rgba(71, 85, 105, 0.78);
    --border-color: #e2e8f0;
    --border-radius: 14px;
    --transition: 0.2s ease;
    --font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background: var(--bg-color);
    color: var(--text-color);
}

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

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

.admin-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.admin-auth__card {
    width: min(420px, 95vw);
    background: var(--panel-bg);
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-auth__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.admin-auth__logo {
    display: flex;
    justify-content: center;
}

.admin-auth__logo-img {
    height: 48px;
    width: auto;
    border-radius: 0;
}

.admin-auth__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(136, 188, 37, 0.12);
    color: var(--accent-dark);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-auth__badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 50%;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-form--stack {
    gap: 18px;
}

/* Two-column layout for create/edit pages */
.admin-form--two-column {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
}

.admin-form__main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-form__sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 20px;
}

@media (max-width: 1200px) {
    .admin-form--two-column {
        grid-template-columns: 1fr;
    }
    
    .admin-form__sidebar {
        position: static;
    }
}

/* Full-width actions within two-column layout */
.admin-form--two-column .admin-card--actions {
    grid-column: 1 / -1;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(31, 41, 51, 0.9);
    letter-spacing: -0.01em;
}

.form-field input,
.form-field select,
.form-field textarea {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    padding: 9px 12px;
    background: #fff;
    transition: all var(--transition);
    font-size: 0.95rem;
}

.form-field textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(136, 188, 37, 0.15);
    background: #fefffe;
}

.admin-button {
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--accent);
    color: #1a2a15;
    cursor: pointer;
    transition: all var(--transition);
}

.admin-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(136, 188, 37, 0.3);
}

.admin-button--ghost {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #475569;
    padding: 8px 14px;
    font-size: 0.875rem;
}

.admin-button--ghost:hover {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.5);
    box-shadow: none;
}

.admin-uploader {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.admin-uploader__preview {
    min-height: 120px;
    border-radius: 10px;
    background: rgba(241, 245, 249, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-uploader__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-uploader__placeholder {
    color: rgba(71, 85, 105, 0.72);
    font-size: 0.9rem;
}

.admin-uploader__controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-uploader__status {
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.72);
}

.admin-uploader__status.is-error {
    color: #dc2626;
}

.admin-gallery,
.admin-unified-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-gallery__list,
.admin-unified-gallery__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-gallery__actions,
.admin-unified-gallery__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-gallery__item,
.admin-unified-gallery__item {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(203, 213, 225, 0.6);
    position: relative;
    background: rgba(248, 250, 252, 0.8);
    transition: all 0.2s ease;
}

.admin-unified-gallery__item:hover {
    border-color: rgba(148, 163, 184, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-unified-gallery__item.is-cover {
    border-color: #88bc25;
    box-shadow: 0 0 0 2px rgba(136, 188, 37, 0.15);
}

.admin-gallery__item img,
.admin-unified-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-gallery__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}

.admin-gallery__remove:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: translateY(-1px);
}

.admin-gallery__empty,
.admin-unified-gallery__empty {
    font-size: 0.9rem;
    color: rgba(71, 85, 105, 0.7);
}

/* Unified Gallery Overlay ve Butonlar */
.admin-unified-gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.admin-unified-gallery__item:hover .admin-unified-gallery__item-overlay {
    opacity: 1;
}

.admin-unified-gallery__set-cover,
.admin-unified-gallery__remove {
    background: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-unified-gallery__set-cover {
    color: #88bc25;
}

.admin-unified-gallery__set-cover:hover {
    background: #88bc25;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(136, 188, 37, 0.3);
}

.admin-unified-gallery__remove {
    color: #dc2626;
}

.admin-unified-gallery__remove:hover {
    background: #dc2626;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.admin-unified-gallery__cover-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #88bc25;
    color: #fff;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.admin-files {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-files__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-files__empty {
    font-size: 0.9rem;
    color: rgba(71, 85, 105, 0.7);
}

.admin-files__actions {
    display: flex;
    gap: 12px;
}

.admin-files__hint {
    font-size: 0.75rem;
    color: rgba(100, 116, 139, 0.65);
    margin-top: 2px;
}

.admin-file-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    background: rgba(248, 250, 252, 0.9);
}

.admin-file-item__info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.admin-file-item__info input[type="text"] {
    flex: 1 1 220px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

.admin-file-item__link {
    font-size: 0.85rem;
    color: var(--accent-dark);
    text-decoration: none;
}

.admin-file-item__link:hover {
    text-decoration: underline;
}

.admin-file-item__filename {
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.72);
}

.admin-file-item__remove {
    position: static;
    width: 34px;
    height: 34px;
    top: auto;
    right: auto;
}

.admin-layout {
    min-height: 100vh;
    display: flex;
    background: var(--bg-color);
}

.admin-sidebar {
    width: 240px;
    background: #ffffff;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    gap: 28px;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}

.admin-sidebar__brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.admin-sidebar__home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(100, 116, 139, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all var(--transition);
}

.admin-sidebar__home-link:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #0f172a;
}

.admin-sidebar__logo {
    width: 140px;
    height: auto;
    align-self: flex-start;
}

.admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.admin-sidebar__section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-sidebar__section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(100, 116, 139, 0.8);
    font-weight: 600;
}

.admin-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    color: rgba(51, 65, 85, 0.88);
    font-weight: 500;
    transition: color var(--transition);
}

.admin-sidebar__link:hover {
    color: #0f172a;
}

.admin-sidebar__link.is-active {
    color: var(--accent-dark);
    font-weight: 600;
}

.admin-sidebar__link--disabled {
    opacity: 0.55;
    pointer-events: none;
}

.admin-sidebar__pill {
    background: #e2e8f0;
    color: #475569;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-sidebar__footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.admin-sidebar__logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(100, 116, 139, 0.9);
    font-weight: 500;
    padding: 8px 0;
}

.admin-sidebar__logout:hover {
    color: #0f172a;
}

.admin-main {
    flex: 1;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    background: #f8fafc;
}

.admin-main__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.5);
}

.admin-header__title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-header__title h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.admin-header__title span {
    color: var(--muted-text);
    font-size: 0.875rem;
}

.admin-card {
    background: var(--panel-bg);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(203, 213, 225, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-card--table {
    gap: 16px;
}

.admin-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-table-meta {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(71, 85, 105, 0.85);
}

.admin-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.admin-table-toolbar__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-table-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.85);
}

.admin-table-field input,
.admin-table-field select {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 160px;
    font: inherit;
    color: inherit;
    background: #fff;
}

.admin-table-field input:focus,
.admin-table-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(136, 188, 37, 0.2);
    outline: none;
}

.admin-helps-table,
.admin-projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-helps-table thead th,
.admin-projects-table thead th {
    text-align: left;
    color: #475569;
    font-weight: 600;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.admin-table-sort {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
}

.admin-table-sort::after {
    content: '\2195';
    font-size: 0.75em;
    color: rgba(100, 116, 139, 0.7);
}

.admin-table-sort[data-sort-direction="asc"]::after {
    content: '\25B2';
}

.admin-table-sort[data-sort-direction="desc"]::after {
    content: '\25BC';
}

.admin-table-sort--active {
    color: var(--accent-dark);
}

.admin-helps-table tbody td,
.admin-projects-table tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    color: #1f2937;
}

.admin-helps-table tbody tr:hover,
.admin-projects-table tbody tr:hover {
    background: rgba(148, 163, 184, 0.12);
}

.admin-helps-table tbody tr:last-child td,
.admin-projects-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-helps-table .align-right,
.admin-projects-table .align-right {
    text-align: right;
}

.admin-helps-table th.align-right .admin-table-sort,
.admin-projects-table th.align-right .admin-table-sort {
    justify-content: flex-end;
}

.admin-table-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.admin-helps-table [data-help-empty],
.admin-projects-table [data-project-empty] {
    text-align: center;
    font-style: italic;
    color: rgba(71, 85, 105, 0.85);
}

.admin-table-icon-button {
    border: none;
    background: transparent;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    color: rgba(71, 85, 105, 0.85);
    padding: 6px 8px;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.admin-table-icon-button:hover {
    background: rgba(148, 163, 184, 0.15);
    color: #0f172a;
    transform: translateY(-1px);
}

.admin-table-icon-button--delete:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.admin-table-icon-button:focus-visible {
    outline: 2px solid rgba(136, 188, 37, 0.5);
    outline-offset: 2px;
}

.admin-card--intro {
    gap: 12px;
}

.admin-card__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.admin-card__subtitle {
    margin: 0;
    color: var(--muted-text);
    font-size: 0.95rem;
}

.admin-card--group {
    gap: 16px;
}

.admin-card--compact {
    padding: 16px 18px;
    gap: 14px;
}

.admin-card--compact .admin-card__section h3 {
    font-size: 0.95rem;
}

.admin-card--compact .admin-card__section p {
    font-size: 0.8rem;
}

.admin-card--compact .admin-card__content {
    gap: 14px;
}

.admin-card--empty {
    gap: 18px;
    align-items: flex-start;
}

.admin-card__section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.admin-card__section h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

/* Dil Toggle */
.lang-toggle {
    display: flex;
    background: var(--bg-color);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.lang-toggle__btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--muted-text);
    transition: var(--transition);
}

.lang-toggle__btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-toggle__btn.active {
    background: white;
    color: var(--accent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-label {
    font-size: 0.75rem;
    color: var(--muted-text);
    font-weight: 400;
    margin-left: 4px;
}

.admin-card__section p {
    margin: 0;
    color: var(--muted-text);
    font-size: 0.85rem;
    line-height: 1.4;
}

.admin-card__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.form-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section + .form-section {
    padding-top: 24px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.form-section__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-field--title input {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 16px 18px;
}

.field-hint {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: rgba(100, 116, 139, 0.65);
    line-height: 1.35;
}

.field-hint__label {
    font-weight: 500;
}

.field-hint__value {
    font-weight: 400;
    color: rgba(100, 116, 139, 0.65);
    word-break: break-all;
}

.form-grid--three {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-field--locations .admin-multiselect__trigger {
    min-height: 48px;
}

.impact-combo {
    display: flex;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: all var(--transition);
}

.impact-combo:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(136, 188, 37, 0.15);
}

.impact-combo input {
    border: none;
    padding: 9px 12px;
    font-size: 0.95rem;
    font: inherit;
    color: inherit;
    background: transparent;
    flex: 1;
}

.impact-combo select {
    border: none;
    border-left: 1px solid rgba(226, 232, 240, 0.8);
    padding: 9px 12px;
    font-size: 0.95rem;
    font: inherit;
    color: inherit;
    background: transparent;
    min-width: 120px;
    cursor: pointer;
}

.impact-combo select:focus,
.impact-combo input:focus {
    outline: none;
}

.impact-combo select::-ms-expand {
    display: none;
}

.admin-card--actions {
    padding: 16px 24px;
}

.admin-card--actions .admin-actions {
    margin: 0;
}

.admin-card--empty .admin-actions {
    justify-content: flex-start;
}

.admin-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    z-index: 1200;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(2px);
}

.admin-modal__dialog {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 18px;
    width: min(680px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 32px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-modal__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(71, 85, 105, 0.8);
    transition: color var(--transition);
}

.admin-modal__close:hover {
    color: #0f172a;
}

.admin-form--stack .form-field {
    margin-bottom: 0;
}

.admin-alert {
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(136, 188, 37, 0.12);
    color: var(--accent-dark);
    font-weight: 500;
}

.admin-alert a {
    color: var(--accent-dark);
    font-weight: 600;
    margin-left: 8px;
}

.admin-alert--error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.admin-alert ul {
    margin: 0;
    padding-left: 20px;
}

.admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.readonly-card {
    border: 1px dashed var(--border-color);
    border-radius: 14px;
    padding: 18px;
    background: rgba(17, 24, 39, 0.02);
    color: var(--muted-text);
    font-size: 0.95rem;
}

/* Multiselect */
.admin-multiselect {
    position: relative;
}

.admin-multiselect__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #fff;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.95rem;
}

.admin-multiselect__trigger:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(136, 188, 37, 0.15);
}

.admin-multiselect__placeholder {
    color: var(--muted-text);
}

.admin-multiselect__summary {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.92rem;
}

.admin-multiselect__chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(31, 41, 55, 0.6);
    border-bottom: 2px solid rgba(31, 41, 55, 0.6);
    transform: rotate(45deg);
    margin-left: 12px;
    transition: transform var(--transition);
}

.admin-multiselect.is-open .admin-multiselect__chevron {
    transform: rotate(-135deg);
}

.admin-multiselect__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
    padding: 12px;
    display: none;
    z-index: 20;
}

.admin-multiselect.is-open .admin-multiselect__dropdown {
    display: block;
}

.admin-multiselect__options {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-multiselect__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    transition: background var(--transition);
}

.admin-multiselect__option:hover {
    background: rgba(136, 188, 37, 0.08);
}

.admin-multiselect__option input {
    accent-color: var(--accent);
}

.admin-multiselect__footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted-text);
}

.admin-multiselect__clear {
    border: none;
    background: transparent;
    color: var(--accent-dark);
    font-weight: 600;
    cursor: pointer;
}

/* WYSIWYG */
.wysiwyg {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: #fff;
    overflow: hidden;
}

.wysiwyg__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: rgba(17, 24, 39, 0.04);
    border-bottom: 1px solid var(--border-color);
}

.wysiwyg__button,
.wysiwyg__select {
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.wysiwyg__button:hover,
.wysiwyg__select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(136, 188, 37, 0.2);
}

.wysiwyg__button.is-active {
    background: rgba(136, 188, 37, 0.12);
    border-color: rgba(136, 188, 37, 0.6);
}

.wysiwyg__button i {
    font-style: italic;
    font-family: Georgia, serif;
}

.wysiwyg__editor {
    min-height: 240px;
    padding: 22px 24px;
    outline: none;
}

/* Editör içerik stili */
.wysiwyg__editor > * {
    margin: 0 0 1em 0;
}

.wysiwyg__editor > *:last-child {
    margin-bottom: 0;
}

.wysiwyg__editor > h3,
.wysiwyg__editor > h4 {
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    font-weight: 600;
}

.wysiwyg__editor > h3:first-child,
.wysiwyg__editor > h4:first-child {
    margin-top: 0;
}

.wysiwyg__editor ul,
.wysiwyg__editor ol {
    padding-left: 1.6em;
    margin-bottom: 1em;
}

.wysiwyg__editor li {
    margin-bottom: 0.35em;
}

.wysiwyg__editor li:last-child {
    margin-bottom: 0;
}

.wysiwyg__editor p + ul,
.wysiwyg__editor p + ol,
.wysiwyg__editor h3 + ul,
.wysiwyg__editor h3 + ol,
.wysiwyg__editor h4 + ul,
.wysiwyg__editor h4 + ol {
    margin-top: 0.5em;
}

.wysiwyg__editor blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    font-style: italic;
    color: rgba(31, 41, 55, 0.7);
}

.wysiwyg__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-top: 1px solid var(--border-color);
    color: var(--muted-text);
    font-size: 0.85rem;
}

.wysiwyg__meta a {
    color: var(--accent-dark);
    font-weight: 600;
}

.detail-story__content {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(41, 41, 41, 0.75);
}

.detail-story__content > * {
    margin: 0;
}

.detail-story__content ul,
.detail-story__content ol {
    padding-left: 1.6em;
}

.detail-story__content ul {
    list-style: disc;
}

.detail-story__content ol {
    list-style: decimal;
}

.detail-story__content li {
    margin-bottom: 0.4em;
}

.detail-story__content li:last-child {
    margin-bottom: 0;
}

.detail-story__content blockquote {
    border-left: 4px solid rgba(136, 188, 37, 0.4);
    padding-left: 18px;
    color: rgba(41, 41, 41, 0.7);
    font-style: italic;
}

.detail-story__content h3,
.detail-story__content h4,
.detail-story__content h5,
.detail-story__content h6 {
    color: var(--text-color);
    font-weight: 600;
}

.detail-story__content h3 {
    font-size: 1.18rem;
}

.detail-story__content h4 {
    font-size: 1.08rem;
}

.detail-story__content a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-decoration-color: rgba(136, 188, 37, 0.6);
}

.detail-story__content a:hover {
    color: var(--accent);
}

.detail-story__content hr {
    border: 0;
    border-top: 1px solid rgba(41, 41, 41, 0.12);
}

.wysiwyg__editor:empty::before {
    content: attr(data-placeholder);
    color: rgba(31, 41, 55, 0.4);
    pointer-events: none;
}

/* Responsive tweaks */
@media (max-width: 1080px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.25);
    }
    .admin-sidebar__brand {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    .admin-sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    .admin-sidebar__footer {
        margin-top: 0;
        border-top: none;
    }
    .admin-sidebar__logout {
        padding: 6px 12px;
        border: 1px solid rgba(226, 232, 240, 0.3);
        border-radius: 10px;
    }
    .admin-main {
        padding: 20px 24px;
    }
}

@media (max-width: 720px) {
    .admin-main {
        padding: 18px 16px 28px;
    }
    .admin-card {
        padding: 16px 18px;
    }
    .admin-header__title h1 {
        font-size: 1.35rem;
    }
    .admin-modal__dialog {
        width: 100%;
        padding: 24px;
    }
    .wysiwyg__editor {
        padding: 18px;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .admin-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Alert Messages */
.admin-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.admin-alert--success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.admin-alert--error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Settings Page */
.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    padding-bottom: 0;
}

.settings-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted-text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-tab:hover {
    color: var(--text-color);
    background: rgba(136, 188, 37, 0.05);
}

.settings-tab.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.settings-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(136, 188, 37, 0.1);
    color: var(--accent-dark);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.settings-tab.is-active .settings-tab__count {
    background: var(--accent);
    color: white;
}

.settings-content {
    position: relative;
}

.settings-panel {
    display: none;
}

.settings-panel.is-active {
    display: block;
}

.settings-panel .admin-card__section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.settings-panel .admin-card__section h3 {
    margin: 0;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.settings-item:hover {
    background: rgba(248, 250, 252, 1);
    border-color: rgba(148, 163, 184, 0.25);
}

.settings-item__name {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-color);
}

.settings-item__actions {
    display: flex;
    gap: 6px;
}

.settings-item__btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(136, 188, 37, 0.08);
    color: var(--accent-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.settings-item__btn:hover {
    background: var(--accent);
    color: white;
}

.settings-item__btn--danger {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.settings-item__btn--danger:hover {
    background: #dc2626;
    color: white;
}

/* Modal */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.admin-modal__content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-modal__header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-modal__header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.admin-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--muted-text);
    font-size: 24px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.admin-modal__close:hover {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-color);
}

.admin-modal__body {
    padding: 24px;
    overflow-y: auto;
}

.admin-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Settings Table */
.settings-table {
    width: 100%;
    border-collapse: collapse;
}

.settings-table thead {
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 2px solid var(--border-color);
}

.settings-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.settings-table th:first-child {
    width: 80px;
}

.settings-table th:last-child {
    width: 120px;
    text-align: right;
}

.settings-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.settings-table tbody tr:hover {
    background: rgba(248, 250, 252, 0.5);
}

.settings-table tbody tr:last-child {
    border-bottom: none;
}

.settings-table td {
    padding: 14px 16px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.settings-table td:first-child {
    color: var(--muted-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.settings-table td:last-child {
    text-align: right;
}

.settings-table__actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

/* Partner Logo */
.settings-table--partners th:nth-child(2),
.settings-table--partners td:nth-child(2) {
    width: 80px;
    text-align: center;
}

.partner-logo-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 4px;
    background: white;
}

.partner-logo-empty {
    color: var(--muted-text);
    font-size: 1.2rem;
}

.logo-upload-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logo-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(248, 250, 252, 0.5);
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.logo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.logo-remove:hover {
    background: #dc2626;
}

/* Nested Table (Help Settings) */
.settings-table--nested .category-row {
    background: rgba(136, 188, 37, 0.04);
}

.settings-table--nested .category-row td:first-child {
    font-weight: 600;
}

.settings-table--nested .subcategory-row {
    background: transparent;
}

.settings-table--nested .subcategory-row td:first-child {
    padding-left: 32px;
    color: var(--text-color);
}

.subcategory-indent {
    color: var(--muted-text);
    margin-right: 8px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .settings-tabs {
        gap: 4px;
    }
    
    .settings-tab {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .settings-tab__count {
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        font-size: 0.75rem;
    }
    
    .settings-table th,
    .settings-table td {
        padding: 10px 12px;
    }
    
    .settings-table th:first-child,
    .settings-table td:first-child {
        width: 60px;
    }
    
    .settings-table th:last-child,
    .settings-table td:last-child {
        width: 100px;
    }
    
    .settings-table--nested .subcategory-row td:first-child {
        padding-left: 24px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--panel-bg);
    border-radius: var(--border-radius);
    width: min(700px, 90vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--muted-text);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-color);
    color: var(--text-color);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-field input,
.form-field select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: var(--transition);
    background: var(--panel-bg);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(136, 188, 37, 0.1);
}

.admin-button--secondary {
    background: var(--bg-color);
    color: var(--text-color);
}

.admin-button--secondary:hover {
    background: var(--border-color);
}

/* Scholar Table Specific Styles */
.scholar-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: help;
}

.scholar-status-dot--active {
    background-color: #22c55e; /* Green */
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.scholar-status-dot--completed {
    background-color: #f97316; /* Orange */
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.scholar-gender-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.scholar-gender-badge--female {
    background-color: rgba(236, 72, 153, 0.15); /* Soft Pink Background */
    color: #ec4899; /* Opaque Pink Text */
}

.scholar-gender-badge--male {
    background-color: rgba(59, 130, 246, 0.15); /* Soft Blue Background */
    color: #3b82f6; /* Opaque Blue Text */
}


/* Wider Modal for Scholar Settings */
.admin-modal__content--wide {
    max-width: 700px;
}

/* Lang Fields */
.lang-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.required {
    color: #dc2626;
}

/* Form Textarea */
.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(136, 188, 37, 0.1);
}

/* Radio Button Group - Minimal Modern Style */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* ============================================
   Upload Progress Bar
   ============================================ */

.admin-upload-progress {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.admin-upload-progress__bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.admin-upload-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #4f46e5);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.admin-upload-progress__text {
    display: block;
    font-size: 0.875rem;
    color: var(--text-color);
    text-align: center;
}

/* ============================================
   Admin Helper Classes
   ============================================ */

.admin-text-muted {
    color: #9ca3af;
}

.admin-text-success {
    color: #10b981;
    font-weight: 600;
}

.admin-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.admin-link:hover {
    text-decoration: underline;
}

.admin-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.admin-badge--primary {
    background: #e0e7ff;
    color: #4f46e5;
}

.admin-badge--info {
    background: #dbeafe;
    color: #1e40af;
}

.admin-required {
    color: #ef4444;
}

.admin-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: #6b7280;
}
