/* ================================================
   NOYA ADMIN PANEL — admin.css
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --sidebar-w: 260px;
    --sidebar-collapsed-w: 64px;
    --topbar-h: 64px;
    --sidebar-bg: #0e1a2b;
    --sidebar-border: rgba(255,255,255,0.06);
    --sidebar-text: #8fa8c4;
    --sidebar-text-hover: #e2eaf4;
    --sidebar-active-bg: rgba(141,198,63,0.12);
    --sidebar-active-border: #8dc63f;
    --accent: #8dc63f;
    --accent-dark: #6ea32e;
    --accent-light: rgba(141,198,63,0.08);
    --bg: #f0f4f8;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --danger: #ef4444;
    --danger-light: rgba(239,68,68,0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245,158,11,0.1);
    --success: #10b981;
    --success-light: rgba(16,185,129,0.1);
    --info: #3b82f6;
    --info-light: rgba(59,130,246,0.1);
    --purple: #8b5cf6;
    --purple-light: rgba(139,92,246,0.1);
    --orange: #f97316;
    --orange-light: rgba(249,115,22,0.1);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 1px 6px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.2s ease;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: var(--font); }

/* ================================================
   LAYOUT
   ================================================ */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.admin-sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width var(--transition);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* MAIN AREA */
.admin-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition);
}

/* TOPBAR */
.admin-topbar {
    height: var(--topbar-h);
    background: var(--card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
}

/* CONTENT */
.admin-content {
    flex: 1;
    padding: 28px 28px 48px;
}

/* ================================================
   SIDEBAR INTERNALS
   ================================================ */

.sidebar-header {
    padding: 0 20px;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sidebar-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.sidebar-logo-text {
    flex: 1;
    overflow: hidden;
}

.sidebar-logo-text img{
    flex: 1;
    overflow: hidden;
    width: 150px;
}

.sidebar-logo-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #e2eaf4;
    white-space: nowrap;
}

.sidebar-logo-text span {
    display: block;
    font-size: 11px;
    color: var(--sidebar-text);
    white-space: nowrap;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 16px 0 16px;
    overflow: hidden;
}

.nav-group {
    margin-bottom: 24px;
}

.nav-group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(143, 168, 196, 0.5);
    padding: 0 20px 8px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--sidebar-text);
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--sidebar-text-hover);
}

.nav-item.active {
    background: var(--sidebar-active-bg);
    color: #fff;
    border-left-color: var(--sidebar-active-border);
}

.nav-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    opacity: 0.75;
    transition: opacity var(--transition);
}

.nav-item:hover .nav-item-icon,
.nav-item.active .nav-item-icon {
    opacity: 1;
}

.nav-item.active .nav-item-icon {
    color: var(--accent);
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 100px;
    flex-shrink: 0;
}

.nav-badge.green {
    background: var(--accent);
}

/* Sidebar footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}

.sidebar-user:hover {
    background: rgba(255,255,255,0.05);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    overflow: hidden;
}

.sidebar-user-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e2eaf4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info span {
    display: block;
    font-size: 11px;
    color: var(--sidebar-text);
    white-space: nowrap;
}

.sidebar-user-exit {
    font-size: 14px;
    color: var(--sidebar-text);
    opacity: 0.6;
    flex-shrink: 0;
}

/* ================================================
   TOPBAR INTERNALS
   ================================================ */

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.sidebar-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 15px;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: var(--bg);
    color: var(--text);
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
}

.topbar-breadcrumb a {
    color: var(--text-muted);
    white-space: nowrap;
    transition: color var(--transition);
}

.topbar-breadcrumb a:hover { color: var(--accent); }

.topbar-breadcrumb .sep {
    font-size: 11px;
    opacity: 0.4;
    flex-shrink: 0;
}

.topbar-breadcrumb .current {
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Search */
.topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 7px 14px;
    width: 220px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.topbar-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(141,198,63,0.15);
}

.topbar-search i {
    color: var(--text-light);
    font-size: 13px;
    flex-shrink: 0;
}

.topbar-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--text);
    width: 100%;
}

.topbar-search input::placeholder { color: var(--text-light); }

/* Icon buttons in topbar */
.topbar-icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 15px;
    position: relative;
    transition: background var(--transition), color var(--transition);
}

.topbar-icon-btn:hover {
    background: var(--bg);
    color: var(--text);
}

.topbar-icon-btn .badge-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    border: 2px solid #fff;
}

/* User dropdown button */
.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    transition: background var(--transition);
}

.topbar-user-btn:hover { background: var(--bg); }

.topbar-user-btn .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-user-btn .user-name {
    font-weight: 600;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user-btn i {
    font-size: 11px;
    color: var(--text-muted);
}

/* ================================================
   PAGE HEADER
   ================================================ */

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.page-header-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.page-header-title p {
    font-size: 13px;
    color: var(--text-muted);
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ================================================
   STAT CARDS
   ================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.stat-card-info {}

.stat-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
}

.stat-card-trend.up { color: var(--success); }
.stat-card-trend.down { color: var(--danger); }

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-card-icon.green   { background: var(--accent-light); color: var(--accent); }
.stat-card-icon.blue    { background: var(--info-light); color: var(--info); }
.stat-card-icon.purple  { background: var(--purple-light); color: var(--purple); }
.stat-card-icon.orange  { background: var(--orange-light); color: var(--orange); }
.stat-card-icon.danger  { background: var(--danger-light); color: var(--danger); }

/* ================================================
   CARDS
   ================================================ */

.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    font-size: 14px;
    color: var(--text-muted);
}

.card-body {
    padding: 20px 24px;
}

.card-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* ================================================
   GRID LAYOUTS
   ================================================ */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-3-1 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }
.col-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.col-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }

/* ================================================
   TABLES
   ================================================ */

.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead tr {
    border-bottom: 2px solid var(--border);
}

.data-table thead th {
    padding: 10px 16px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
    background: #fafbfc;
}

.data-table thead th:first-child { border-radius: 6px 0 0 0; }
.data-table thead th:last-child  { border-radius: 0 6px 0 0; }

.data-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.data-table tbody tr:last-child { border-bottom: none; }

.data-table tbody tr:hover { background: #fafbfc; }

.data-table tbody td {
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--text);
    vertical-align: middle;
}

.data-table tbody td.muted { color: var(--text-muted); font-size: 13px; }

/* Table with avatar */
.td-with-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.td-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.td-avatar.blue    { background: var(--info-light);    color: var(--info); }
.td-avatar.purple  { background: var(--purple-light);  color: var(--purple); }
.td-avatar.orange  { background: var(--orange-light);  color: var(--orange); }
.td-avatar.danger  { background: var(--danger-light);  color: var(--danger); }

.td-name { font-weight: 600; font-size: 13.5px; }
.td-sub  { font-size: 12px; color: var(--text-muted); }

/* Row actions */
.row-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

/* ================================================
   BADGES / STATUS PILLS
   ================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-success { background: var(--success-light); color: #059669; }
.badge-success::before { background: var(--success); }

.badge-warning { background: var(--warning-light); color: #b45309; }
.badge-warning::before { background: var(--warning); }

.badge-danger  { background: var(--danger-light);  color: #dc2626; }
.badge-danger::before  { background: var(--danger); }

.badge-info    { background: var(--info-light);    color: #2563eb; }
.badge-info::before    { background: var(--info); }

.badge-purple  { background: var(--purple-light);  color: #7c3aed; }
.badge-purple::before  { background: var(--purple); }

.badge-gray    { background: var(--bg); color: var(--text-muted); }
.badge-gray::before    { background: var(--text-light); }

.badge-green   { background: var(--accent-light);  color: var(--accent-dark); }
.badge-green::before   { background: var(--accent); }

.badge-no-dot::before { display: none; }

/* ================================================
   BUTTONS
   ================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    text-decoration: none;
}

.btn:active { transform: translateY(1px); }

.btn i { font-size: 13px; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(141,198,63,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--text-light);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}
.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239,68,68,0.25);
}

.btn-danger-outline {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
}
.btn-danger-outline:hover {
    background: var(--danger-light);
}

.btn-sm {
    padding: 6px 13px;
    font-size: 12px;
}

.btn-sm i { font-size: 12px; }

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.btn-icon.view   { color: var(--info); border-color: var(--info-light); background: var(--info-light); }
.btn-icon.view:hover { background: var(--info); color: #fff; border-color: var(--info); }

.btn-icon.edit   { color: var(--warning); border-color: var(--warning-light); background: var(--warning-light); }
.btn-icon.edit:hover { background: var(--warning); color: #fff; border-color: var(--warning); }

.btn-icon.delete { color: var(--danger); border-color: var(--danger-light); background: var(--danger-light); }
.btn-icon.delete:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-icon.success { color: var(--success); border-color: var(--success-light); background: var(--success-light); }
.btn-icon.success:hover { background: var(--success); color: #fff; border-color: var(--success); }

/* ================================================
   FILTERS / TOOLBAR
   ================================================ */

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    min-width: 220px;
    transition: border-color var(--transition);
}
.search-input-wrap:focus-within { border-color: var(--accent); }
.search-input-wrap i { color: var(--text-light); font-size: 13px; }
.search-input-wrap input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--text);
    width: 100%;
}
.search-input-wrap input::placeholder { color: var(--text-light); }

.select-filter {
    padding: 7px 30px 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    font-size: 13px;
    color: var(--text);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    transition: border-color var(--transition);
}
.select-filter:focus { border-color: var(--accent); }

/* ================================================
   FORMS
   ================================================ */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: var(--font);
    color: var(--text);
    background: var(--card);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(141,198,63,0.15);
}

.form-control::placeholder { color: var(--text-light); }

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    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='M1 1l5 5 5-5' stroke='%238DC63F' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
}

/* Toggle / Switch */
.form-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text);
    cursor: pointer;
}

.toggle-switch {
    width: 40px;
    height: 22px;
    background: var(--border);
    border-radius: 100px;
    position: relative;
    transition: background var(--transition);
    flex-shrink: 0;
}

.toggle-switch.on { background: var(--accent); }

.toggle-switch::after {
    content: "";
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch.on::after { left: 21px; }

/* ================================================
   ACTIVITY FEED
   ================================================ */

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-icon.green   { background: var(--accent-light);   color: var(--accent); }
.activity-icon.blue    { background: var(--info-light);     color: var(--info); }
.activity-icon.orange  { background: var(--orange-light);   color: var(--orange); }
.activity-icon.purple  { background: var(--purple-light);   color: var(--purple); }
.activity-icon.danger  { background: var(--danger-light);   color: var(--danger); }

.activity-body {
    flex: 1;
    min-width: 0;
}

.activity-body p {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.5;
}

.activity-body p span { font-weight: 600; }

.activity-body time {
    font-size: 11.5px;
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}

/* ================================================
   GALLERY GRID
   ================================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition), transform var(--transition);
}

.gallery-item:hover { transform: scale(1.02); border-color: var(--accent); }

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 28px;
    color: rgba(255,255,255,0.8);
    font-weight: 700;
    text-align: center;
}

.gallery-placeholder span {
    font-size: 11px;
    font-weight: 500;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-admin-grid {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-admin-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-admin-link {
    display: block;
    background: #e5e7eb;
}

.gallery-admin-link.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(141,198,63,.15);
}

.gallery-admin-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-admin-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gallery-admin-meta strong {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.gallery-admin-preview {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #f8fafc;
}

.gallery-admin-preview-image {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: #fff;
}

/* ================================================
   EMPTY STATE
   ================================================ */

.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================
   DASHBOARD SPECIFIC
   ================================================ */

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 4px 0;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition), border-color var(--transition);
    text-decoration: none;
    color: var(--text);
}

.quick-action-btn:hover {
    background: var(--accent-light);
    border-color: rgba(141,198,63,0.3);
}

.quick-action-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.quick-action-btn:hover .quick-action-icon {
    background: rgba(141,198,63,0.15);
    color: var(--accent);
}

.quick-action-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.quick-action-text span {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Message preview */
.message-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.message-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
}

.message-preview-item:last-child { border-bottom: none; }

.message-preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-preview-content {
    flex: 1;
    min-width: 0;
}

.message-preview-content strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-preview-content p {
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.message-preview-time {
    font-size: 11.5px;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ================================================
   MESAJLAR
   ================================================ */

/* ================================================
   MESAJLAR
   ================================================ */

.message-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    min-height: 560px;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ---- Sol panel ---- */
.message-list-panel {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.msg-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--card);
    flex-shrink: 0;
}

.msg-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.msg-panel-count {
    font-size: 11.5px;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-muted);
    padding: 2px 9px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.msg-list-scroll {
    overflow-y: auto;
    flex: 1;
}

/* ---- Liste öğesi ---- */
.msg-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background var(--transition), border-left-color var(--transition);
    text-decoration: none;
    position: relative;
}

.msg-item:last-child { border-bottom: none; }

.msg-item:hover {
    background: var(--bg);
    border-left-color: var(--border);
}

.msg-item.active {
    background: var(--accent-light);
    border-left-color: var(--accent);
}

.msg-item-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--info-light);
    color: var(--info);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.msg-item.active .msg-item-avatar {
    background: rgba(141,198,63,0.18);
    color: var(--accent-dark);
}

.msg-item-body {
    flex: 1;
    min-width: 0;
}

.msg-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.msg-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-item.unread .msg-item-name {
    font-weight: 700;
}

.msg-item-time {
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.msg-item.unread .msg-item-time {
    color: var(--accent-dark);
    font-weight: 600;
}

.msg-item-preview {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.msg-item.unread .msg-item-preview {
    color: var(--text);
}

/* Okunmamış yeşil nokta */
.msg-item.unread::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    top: 14px;
    right: 13px;
    border: 1.5px solid var(--card);
}

.msg-item.active::after {
    border-color: var(--accent-light);
}

/* ---- Sağ panel ---- */
.msg-detail-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.msg-detail-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.msg-detail-sender {
    display: flex;
    align-items: center;
    gap: 12px;
}

.msg-detail-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--info-light);
    color: var(--info);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.msg-detail-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.msg-detail-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.msg-detail-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.msg-subject {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.msg-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 24px;
}

.msg-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 24px;
}

.msg-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.msg-info-item i {
    font-size: 13px;
    color: var(--text-light);
    width: 14px;
    flex-shrink: 0;
}

.msg-replies {
    margin-bottom: 24px;
}

.msg-replies-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.msg-reply-item {
    background: var(--bg);
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    border-left: 3px solid var(--accent);
}

.msg-reply-meta {
    font-size: 11.5px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.msg-reply-text {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.6;
}

.msg-reply-form-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.msg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-light);
    gap: 12px;
    flex: 1;
}

.msg-empty i {
    font-size: 40px;
    opacity: 0.4;
}

.msg-empty p {
    font-size: 13.5px;
}

/* ================================================
   SETTINGS PAGE
   ================================================ */

.settings-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

/* Sticky nav card */
.settings-nav-card {
    position: sticky;
    top: calc(var(--topbar-h) + 20px);
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.settings-nav-item i {
    font-size: 13px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.settings-nav-item:hover {
    background: var(--bg);
    color: var(--text);
    border-left-color: var(--border);
}

.settings-nav-item.active {
    background: var(--accent-light);
    color: var(--accent-dark);
    font-weight: 600;
    border-left-color: var(--accent);
}

/* ================================================
   SIDEBAR MOBILE OVERLAY
   ================================================ */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ================================================
   BULK ACTION BAR
   ================================================ */

.bulk-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--accent-light);
    border: 1px solid rgba(141,198,63,0.3);
    border-radius: var(--radius);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.bulk-bar.visible { display: flex; }

.bulk-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================================================
   TOPBAR DROPDOWN PANEL
   ================================================ */

.dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 6px 0;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.dropdown-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a,
.dropdown-panel button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--text);
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    transition: background var(--transition);
    cursor: pointer;
}

.dropdown-panel a:hover,
.dropdown-panel button:hover {
    background: var(--bg);
    color: var(--accent);
}

.dropdown-panel a i,
.dropdown-panel button i {
    font-size: 13px;
    width: 16px;
    color: var(--text-muted);
}

.topbar-user-btn { position: relative; }

/* ================================================
   SIDEBAR COLLAPSED STATE
   ================================================ */

.sidebar-collapsed .admin-sidebar {
    width: var(--sidebar-collapsed-w);
}

.sidebar-collapsed .admin-main {
    margin-left: var(--sidebar-collapsed-w);
}

.sidebar-collapsed .sidebar-logo-text,
.sidebar-collapsed .nav-group-label,
.sidebar-collapsed .nav-badge,
.sidebar-collapsed .sidebar-user-info,
.sidebar-collapsed .sidebar-user-exit,
.sidebar-collapsed .nav-item span:not(.nav-item-icon) {
    display: none;
}

.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 12px;
    border-left-color: transparent;
}

.sidebar-collapsed .nav-item.active {
    border-left-color: var(--sidebar-active-border);
}

.sidebar-collapsed .nav-item-icon {
    width: 24px;
    height: 24px;
    font-size: 17px;
}

.sidebar-collapsed .sidebar-user {
    justify-content: center;
}

.sidebar-collapsed .sidebar-logo-mark {
    margin: 0 auto;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1280px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .topbar-search { width: 160px; }
}

@media (max-width: 1024px) {
    .grid-2, .col-2-1, .col-1-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-3-1 { grid-template-columns: repeat(2, 1fr); }
    .message-detail { grid-template-columns: 1fr; min-height: auto; }
    .message-list-panel { max-height: 300px; border-right: none; border-bottom: 1px solid var(--border); }
    .msg-list-scroll { max-height: 240px; }
    .msg-detail-panel { min-height: 300px; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .settings-nav-item { flex-shrink: 0; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    /* Sidebar */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), width var(--transition);
        width: var(--sidebar-w) !important;
        z-index: 300;
    }
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    .admin-main { margin-left: 0 !important; }
    .sidebar-collapsed .admin-sidebar { transform: translateX(-100%); }

    /* Content */
    .admin-content { padding: 16px 14px 32px; }

    /* Topbar */
    .topbar-search { display: none; }
    .topbar-breadcrumb .sep,
    .topbar-breadcrumb a:not(:last-child) { display: none; }
    .topbar-user-btn .user-name { display: none; }
    .topbar-icon-btn.globe-hide { display: none; }

    /* Grids */
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-3-1 { grid-template-columns: repeat(2, 1fr); }

    /* Page header */
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header-actions { width: 100%; }

    /* Table toolbar */
    .table-toolbar { flex-direction: column; align-items: flex-start; padding: 12px 16px; }
    .toolbar-left, .toolbar-right { width: 100%; flex-wrap: wrap; }
    .search-input-wrap { min-width: 0; flex: 1; }

    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .admin-content { padding: 12px 12px 24px; }
    .stats-grid { grid-template-columns: 1fr; }
    .grid-3, .grid-3-1 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }

    /* Modal on small screens */
    .modal-overlay { padding: 10px; align-items: flex-end; }
    .modal { max-height: 92vh; border-radius: var(--radius-xl) var(--radius-xl) var(--radius) var(--radius); }
    .modal-header { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }

    /* Topbar */
    .admin-topbar { padding: 0 14px; }
    .topbar-right { gap: 4px; }
}

/* ================================================
   MODAL SYSTEM
   ================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 28, 43, 0.55);
    backdrop-filter: blur(2px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.22s ease;
    scrollbar-width: thin;
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-lg { max-width: 700px; }
.modal-sm { max-width: 400px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--card);
    z-index: 1;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    font-size: 15px;
    color: var(--text-muted);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger-light);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: var(--card);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Section divider inside modal */
.modal-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.modal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.modal-section-title {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

/* Prevent body scroll when modal open */
body.modal-open { overflow: hidden; }

/* ---- File upload area ---- */
.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 22px 16px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
}
.upload-area:hover { border-color: var(--accent); background: rgba(141,198,63,.05); }
.upload-area.has-file { border-color: var(--accent); background: rgba(141,198,63,.07); }
.upload-area i { font-size: 28px; color: var(--text-light); }
.upload-area:hover i { color: var(--accent); }
.upload-area .upload-label { font-size: 13px; color: var(--text-muted); }
.upload-area .upload-filename {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    display: none;
    word-break: break-all;
    text-align: center;
}
.upload-area.has-file .upload-label { display: none; }
.upload-area.has-file .upload-filename { display: block; }

/* ================================================
   LOGIN PAGE
   ================================================ */
.login-page {
    min-height: 100vh;
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #0f172a;
}

.login-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* --- Sol panel: Marka --- */
.login-panel {
    position: relative;
    background: linear-gradient(145deg, #5a9e1f 0%, #3d7a0e 40%, #2d5c0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    overflow: hidden;
}

.login-panel-inner {
    position: relative;
    z-index: 2;
    max-width: 380px;
}

.login-panel-logo {
    margin-bottom: 36px;
}

.login-panel-logo img {
    height: 48px;
    width: auto;
}

.login-panel h2 {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 16px;
}

.login-panel > .login-panel-inner > p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0 0 40px;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
}

.login-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* Dekoratif daireler */
.login-deco-1 {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -120px;
    right: -100px;
    pointer-events: none;
}

.login-deco-2 {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    top: -60px;
    left: -60px;
    pointer-events: none;
}

/* --- Sağ panel: Form --- */
.login-form-panel {
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-brand {
    text-align: center;
    margin-bottom: 36px;
}

.login-brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(141,198,63,0.12);
    border: 1px solid rgba(141,198,63,0.25);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 20px;
}

.login-brand h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    color: #f8fafc;
}

.login-brand p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Form alanları */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.login-field label {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-field label i {
    font-size: 12px;
    color: var(--accent);
}

.login-field input {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 14px;
    padding: 13px 16px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    outline: none;
}

.login-field input::placeholder {
    color: #475569;
}

.login-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.12);
}

/* Şifre göster/gizle */
.login-password-wrap {
    position: relative;
}

.login-password-wrap input {
    padding-right: 46px;
}

.login-eye-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    transition: color 0.2s;
}

.login-eye-btn:hover {
    color: #94a3b8;
}

/* Hata mesajları */
.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 13px;
    padding: 12px 16px;
}

.login-error:empty {
    display: none;
}

.field-error {
    font-size: 12px;
    color: #f87171;
}

/* Giriş butonu */
.login-submit-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    padding: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    font-family: inherit;
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(141,198,63,0.3);
}

.login-submit-btn:hover {
    background: #7ab534;
    box-shadow: 0 6px 20px rgba(141,198,63,0.4);
}

.login-submit-btn:active {
    transform: scale(0.98);
}

/* Alt footer metni */
.login-footer {
    margin: 28px 0 0;
    text-align: center;
    font-size: 12px;
    color: #334155;
}

/* Responsive */
@media (max-width: 768px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-panel {
        display: none;
    }

    .login-form-panel {
        padding: 40px 24px;
    }
}
