/* ============================================
   GlamourPRO - PANEL LAYOUT v1.0
   Mobil Öncelikli • Lüks Kuaför Temalı
   ============================================ */

/* ============================================
   ANA WRAPPER
   ============================================ */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--gp-body-bg);
}


/* ============================================
   SIDEBAR - Desktop
   ============================================ */
.app-sidebar {
    width: var(--gp-sidebar-width);
    min-width: var(--gp-sidebar-width);
    height: 100vh;
    height: 100dvh;
    background: var(--gp-sidebar-bg);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

/* Sidebar dekoratif üst çizgi */
.app-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gp-primary), var(--gp-gold-pale), var(--gp-primary));
    z-index: 10;
}


/* ---- Sidebar Header ---- */
.sidebar-header {
    padding: 24px 20px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 72px;
    flex-shrink: 0;
}

.sidebar-logo-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: linear-gradient(135deg, var(--gp-primary), var(--gp-secondary));
    border-radius: var(--gp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(var(--gp-primary-rgb), 0.35);
    position: relative;
}

.sidebar-logo-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--gp-radius-sm) + 2px);
    background: linear-gradient(135deg, var(--gp-primary-light), transparent);
    opacity: 0.3;
    z-index: -1;
}

.sidebar-logo-icon i {
    font-size: 1.3rem;
    color: white;
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.sidebar-logo-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.sidebar-logo-text h1 span {
    color: var(--gp-primary-light);
}

.sidebar-logo-text small {
    font-size: 0.65rem;
    color: var(--gp-text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* ---- Sidebar Navigation ---- */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 12px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

/* Menü Grubu */
.sidebar-menu-group {
    margin-bottom: 6px;
}

.sidebar-menu-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-title {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 16px 14px 8px;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

/* Menü Item */
.sidebar-menu-item {
    list-style: none;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--gp-radius-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8575rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-menu-link i {
    font-size: 1.2rem;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sidebar-menu-link span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

.sidebar-menu-link:hover {
    background: rgba(176, 141, 87, 0.08);
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(2px);
}

/* Aktif menü */
.sidebar-menu-link.active {
    background: linear-gradient(135deg, rgba(176, 141, 87, 0.2), rgba(176, 141, 87, 0.08));
    color: white;
    font-weight: 600;
}

.sidebar-menu-link.active i {
    color: var(--gp-primary-light);
}

.sidebar-menu-link.active::before {
    background: linear-gradient(180deg, var(--gp-gold-pale), var(--gp-primary));
}

/* Badge */
.sidebar-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--gp-radius-full);
    line-height: 1.4;
    flex-shrink: 0;
    min-width: 20px;
    text-align: center;
}

.sidebar-badge:empty {
    display: none;
}

.sidebar-badge-primary {
    background: rgba(var(--gp-primary-rgb), 0.2);
    color: var(--gp-primary-light);
}

.sidebar-badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.sidebar-badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
}


/* ---- Sidebar Footer ---- */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--gp-radius-sm);
    cursor: pointer;
    transition: background 0.2s ease;
    overflow: hidden;
}

.sidebar-user:hover {
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--gp-radius-full);
    background: linear-gradient(135deg, var(--gp-primary), var(--gp-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(var(--gp-primary-rgb), 0.3);
}

.sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-user-info {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.sidebar-user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.68rem;
    color: var(--gp-text-muted);
}


/* ---- Sidebar Collapsed (Desktop) ---- */
.sidebar-collapsed .app-sidebar {
    width: var(--gp-sidebar-collapsed);
    min-width: var(--gp-sidebar-collapsed);
}

.sidebar-collapsed .sidebar-logo-text,
.sidebar-collapsed .sidebar-menu-title,
.sidebar-collapsed .sidebar-menu-link span,
.sidebar-collapsed .sidebar-badge,
.sidebar-collapsed .sidebar-user-info {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.sidebar-collapsed .sidebar-header {
    justify-content: center;
    padding: 24px 10px 20px;
}

.sidebar-collapsed .sidebar-menu-link {
    justify-content: center;
    padding: 10px;
}

.sidebar-collapsed .sidebar-user {
    justify-content: center;
    padding: 10px;
}

.sidebar-collapsed .sidebar-menu-link.active::before {
    display: none;
}

.sidebar-collapsed .app-main {
    margin-left: var(--gp-sidebar-collapsed);
}

/* Collapsed tooltip */
.sidebar-collapsed .sidebar-menu-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--gp-dark);
    color: white;
    padding: 6px 14px;
    border-radius: var(--gp-radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 9999;
    box-shadow: var(--gp-shadow-lg);
}

.sidebar-collapsed .sidebar-menu-link:hover::after {
    opacity: 1;
    visibility: visible;
}


/* ============================================
   MAIN AREA
   ============================================ */
.app-main {
    flex: 1;
    margin-left: var(--gp-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    min-width: 0;
}


/* ============================================
   TOPBAR
   ============================================ */
.app-topbar {
    height: var(--gp-topbar-height);
    min-height: var(--gp-topbar-height);
    background: var(--gp-cream-light);
    border-bottom: 1px solid var(--gp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(12px);
    background: rgba(250, 247, 242, 0.85);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-toggle-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gp-border);
    background: transparent;
    color: var(--gp-text-secondary);
    border-radius: var(--gp-radius-sm);
    cursor: pointer;
    transition: var(--gp-transition);
}

.topbar-toggle-btn:hover {
    background: var(--gp-body-bg);
    color: var(--gp-text-primary);
    border-color: var(--gp-text-muted);
}

.topbar-toggle-btn i {
    font-size: 1.2rem;
}

/* Breadcrumb */
.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--gp-text-muted);
}

.topbar-breadcrumb a {
    color: var(--gp-text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.topbar-breadcrumb a:hover {
    color: var(--gp-primary);
}

.topbar-breadcrumb .current {
    color: var(--gp-text-primary);
    font-weight: 600;
}

.topbar-breadcrumb .separator {
    font-size: 0.7rem;
    color: var(--gp-border);
}

/* Topbar Sağ */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--gp-text-secondary);
    border-radius: var(--gp-radius-sm);
    cursor: pointer;
    transition: var(--gp-transition);
    position: relative;
}

.topbar-icon-btn:hover {
    background: var(--gp-body-bg);
    color: var(--gp-primary);
}

.topbar-icon-btn i {
    font-size: 1.2rem;
}

.topbar-icon-btn .notif-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    background: var(--gp-danger);
    border-radius: 50%;
    border: 2px solid var(--gp-card-bg);
}

/* Topbar User */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px 5px 5px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--gp-transition);
    margin-left: 6px;
    border: 1.5px solid transparent;
    position: relative;
}

.topbar-user:hover {
    background: var(--gp-body-bg);
    border-color: var(--gp-border);
}

.topbar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--gp-radius-full);
    background: linear-gradient(135deg, var(--gp-primary), var(--gp-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
}

.topbar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topbar-user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gp-text-primary);
}

/* Topbar Dropdown */
.topbar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--gp-card-bg);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow-xl);
    min-width: 210px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.topbar-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.topbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--gp-radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gp-text-secondary);
    cursor: pointer;
    transition: var(--gp-transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    text-decoration: none;
}

.topbar-dropdown-item:hover {
    background: var(--gp-body-bg);
    color: var(--gp-text-primary);
}

.topbar-dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.topbar-dropdown-item.danger {
    color: var(--gp-danger);
}

.topbar-dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.06);
}

.topbar-dropdown-divider {
    height: 1px;
    background: var(--gp-border);
    margin: 4px 0;
}


/* ============================================
   CONTENT AREA
   ============================================ */
.app-content {
    flex: 1;
    padding: 24px;
    overflow-x: hidden;
    min-width: 0;
}

/* Sayfa başlığı */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header-left h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gp-text-primary);
    letter-spacing: -0.3px;
}

.page-header-left p {
    font-size: 0.8125rem;
    color: var(--gp-text-secondary);
    margin-top: 2px;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Kart */
.gp-card {
    background: var(--gp-card-bg);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow-sm);
    overflow: hidden;
    transition: var(--gp-transition);
}

.gp-card:hover {
    box-shadow: var(--gp-shadow);
}

.gp-card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--gp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gp-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gp-text-primary);
    display: flex;
    align-items: center;
}

.gp-card-body {
    padding: 20px;
}


/* ============================================
   SIDEBAR OVERLAY
   ============================================ */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    z-index: 999;
    cursor: pointer;
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
    pointer-events: none;
    visibility: hidden;
}

.sidebar-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    pointer-events: auto;
    visibility: visible;
}

/* ============================================
   MOBİL BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gp-card-bg);
    border-top: 1px solid var(--gp-border);
    z-index: 950;
    padding: 6px 8px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    flex: 1;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: var(--gp-radius-sm);
    text-decoration: none;
    color: var(--gp-text-muted);
    font-size: 0.625rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-nav-link i {
    font-size: 1.35rem;
    transition: all 0.2s ease;
}

.mobile-nav-link.active {
    color: var(--gp-primary);
}

.mobile-nav-link.active i {
    transform: scale(1.1);
}

.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gp-primary);
    border-radius: 0 0 3px 3px;
}

/* Mobil ortadaki FAB butonu */
.mobile-nav-fab {
    position: relative;
    top: -18px;
}

.mobile-nav-fab .mobile-nav-link {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gp-primary), var(--gp-secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(var(--gp-primary-rgb), 0.4);
    padding: 0;
    justify-content: center;
    margin: 0 auto;
}

.mobile-nav-fab .mobile-nav-link i {
    font-size: 1.5rem;
    color: white;
}

.mobile-nav-fab .mobile-nav-link.active::before {
    display: none;
}

.mobile-nav-fab span {
    display: none;
}

/* Mobil nav badge */
.mobile-nav-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(calc(50% + 10px));
    width: 16px;
    height: 16px;
    background: var(--gp-danger);
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gp-card-bg);
}

.mobile-nav-badge:empty {
    display: none;
}


/* ============================================
   GENEL FORM ELEMANLARI
   ============================================ */
.gp-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gp-border);
    border-radius: var(--gp-radius-sm);
    font-size: 0.85rem;
    font-family: var(--gp-font);
    color: var(--gp-text-primary);
    background: var(--gp-card-bg);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.gp-input:focus {
    border-color: var(--gp-primary);
    box-shadow: 0 0 0 3px rgba(var(--gp-primary-rgb), 0.08);
}

.gp-input.error {
    border-color: var(--gp-danger);
}

.gp-input::placeholder {
    color: var(--gp-text-light);
}

.gp-textarea {
    resize: vertical;
    min-height: 48px;
    line-height: 1.5;
}

.gp-select {
    display: block;
    width: 100%;
    padding: 11px 36px 11px 14px;
    border: 1.5px solid var(--gp-border);
    border-radius: var(--gp-radius-sm);
    font-size: 0.85rem;
    font-family: var(--gp-font);
    color: var(--gp-text-primary);
    background: var(--gp-card-bg);
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    background-image: 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.gp-select:focus {
    border-color: var(--gp-primary);
    box-shadow: 0 0 0 3px rgba(var(--gp-primary-rgb), 0.08);
}

.gp-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gp-text-secondary);
    margin-bottom: 6px;
}

.gp-label .req {
    color: var(--gp-danger);
}

.gp-field {
    margin-bottom: 14px;
}

.gp-field:last-child {
    margin-bottom: 0;
}

.gp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gp-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}


/* ============================================
   TABLO
   ============================================ */
.gp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.gp-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--gp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gp-border);
    white-space: nowrap;
    background: var(--gp-body-bg);
}

.gp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--gp-text-primary);
    vertical-align: middle;
}

.gp-table tbody tr {
    transition: background 0.15s ease;
}

.gp-table tbody tr:hover {
    background: rgba(var(--gp-primary-rgb), 0.02);
}

.gp-table tbody tr:last-child td {
    border-bottom: none;
}


/* ============================================
   BADGE / ETİKET
   ============================================ */
.gp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--gp-radius-full);
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}

.gp-badge-success {
    background: rgba(122, 154, 109, 0.12);
    color: #6B8B5E;
}

.gp-badge-warning {
    background: rgba(176, 141, 87, 0.12);
    color: #8B6F3A;
}

.gp-badge-danger {
    background: rgba(184, 92, 92, 0.12);
    color: #B85C5C;
}

.gp-badge-info {
    background: rgba(122, 143, 166, 0.12);
    color: #7A8FA6;
}

.gp-badge-purple {
    background: rgba(176, 141, 87, 0.12);
    color: #B08D57;
}

.gp-badge-pink {
    background: rgba(196, 165, 154, 0.12);
    color: #C4A59A;
}

.gp-badge-gray {
    background: rgba(136, 136, 136, 0.1);
    color: #888888;
}


/* ============================================
   MODAL (Genel)
   ============================================ */
.gp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gp-modal-overlay.active {
    display: flex;
}

.gp-modal {
    background: var(--gp-card-bg);
    border-radius: var(--gp-radius-lg);
    box-shadow: var(--gp-shadow-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: gpModalIn 0.25s ease;
    overflow: hidden;
}

@keyframes gpModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.gp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gp-border);
    flex-shrink: 0;
}

.gp-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gp-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gp-modal-title i {
    color: var(--gp-primary);
}

.gp-modal-close {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--gp-body-bg);
    border-radius: var(--gp-radius-sm);
    color: var(--gp-text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gp-transition);
}

.gp-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--gp-danger);
}

.gp-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.gp-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--gp-border);
    flex-shrink: 0;
}


/* ============================================
   BOTTOM SHEET (Mobil Modal)
   ============================================ */
.gp-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.gp-sheet-overlay.active {
    display: block;
}

.gp-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gp-card-bg);
    border-radius: var(--gp-radius-lg) var(--gp-radius-lg) 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12);
    z-index: 2001;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.gp-sheet.active {
    transform: translateY(0);
}

.gp-sheet-handle {
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: var(--gp-border);
    margin: 10px auto 0;
    flex-shrink: 0;
}

.gp-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 10px;
    flex-shrink: 0;
}

.gp-sheet-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gp-text-primary);
}

.gp-sheet-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gp-body-bg);
    border-radius: 50%;
    color: var(--gp-text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-sheet-body {
    padding: 0 18px 18px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
}


/* ============================================
   BOŞ DURUM
   ============================================ */
.gp-empty {
    text-align: center;
    padding: 48px 24px;
}

.gp-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--gp-radius-lg);
    background: rgba(var(--gp-primary-rgb), 0.06);
    color: var(--gp-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 16px;
}

.gp-empty h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gp-text-primary);
    margin-bottom: 6px;
}

.gp-empty p {
    font-size: 0.82rem;
    color: var(--gp-text-muted);
    margin-bottom: 20px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================
   SAYFALAMA
   ============================================ */
.gp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 0;
}

.gp-page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gp-border);
    background: var(--gp-card-bg);
    color: var(--gp-text-secondary);
    border-radius: var(--gp-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gp-transition);
    font-family: var(--gp-font);
}

.gp-page-btn:hover {
    background: var(--gp-body-bg);
    border-color: var(--gp-primary);
    color: var(--gp-primary);
}

.gp-page-btn.active {
    background: var(--gp-primary);
    border-color: var(--gp-primary);
    color: white;
}

.gp-page-btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}


/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar-mobile-open .app-sidebar {
        transform: translateX(0);
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.3);
    }

    .app-main {
        margin-left: 0;
    }

    .sidebar-collapsed .app-main {
        margin-left: 0;
    }
}


/* ============================================
   RESPONSIVE - MOBİL
   ============================================ */
@media (max-width: 768px) {
    :root {
        --gp-topbar-height: 56px;
    }

    .app-topbar {
        padding: 0 12px;
        background: rgba(255, 255, 255, 0.92);
    }

    .topbar-breadcrumb {
        display: none;
    }

    .topbar-user-name {
        display: none;
    }

    .topbar-icon-btn {
        width: 36px;
        height: 36px;
    }

    .app-content {
        padding: 16px 12px;
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
        overflow-x: hidden;
        min-width: 0;
        width: 100%;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-header-left h2 {
        font-size: 1.25rem;
    }

    .page-header-actions {
        width: 100%;
    }

    .page-header-actions .gp-btn {
        flex: 1;
        justify-content: center;
    }

    /* Mobil bottom nav göster */
    .mobile-bottom-nav {
        display: block;
    }

    /* Topbar logo (mobilde göster) */
    .topbar-mobile-logo {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .topbar-mobile-logo .logo-sm {
        width: 30px;
        height: 30px;
        background: linear-gradient(135deg, var(--gp-primary), var(--gp-secondary));
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .topbar-mobile-logo .logo-sm i {
        font-size: 0.95rem;
        color: white;
    }

    .topbar-mobile-logo span {
        font-size: 1rem;
        font-weight: 700;
        color: var(--gp-text-primary);
    }

    .topbar-mobile-logo span b {
        color: var(--gp-primary);
        font-weight: 800;
    }

    /* Grid responsive */
    .gp-grid-2 {
        grid-template-columns: 1fr;
    }

    .gp-grid-3 {
        grid-template-columns: 1fr;
    }

    /* Modal mobil */
    .gp-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        height: 100%;
    }
}

@media (min-width: 769px) {
    .topbar-mobile-logo {
        display: none;
    }

    .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .gp-grid-2 {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   ANİMASYONLAR
   ============================================ */
@keyframes gpFadeIn {
    from {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0);
    }
    to {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
    }
}

@keyframes gpSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes gpPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Shake animasyonu (hatalı giriş vs.) */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 50%, 90% {
        transform: translateX(-4px);
    }
    30%, 70% {
        transform: translateX(4px);
    }
}

.shake {
    animation: shake 0.4s ease;
}

/* ============================================
   TOAST BİLDİRİM SİSTEMİ
   ============================================ */
#gp-toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100% - 32px);
}

.gp-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--gp-card-bg);
    border: 1px solid var(--gp-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.gp-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.gp-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.gp-toast-hide {
    opacity: 0;
    transform: translateX(20px) scale(0.95);
}

.gp-toast-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.gp-toast-text {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gp-text-primary);
    line-height: 1.4;
}

.gp-toast-close {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: var(--gp-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.gp-toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--gp-text-primary);
}

/* Tip renkleri */
.gp-toast-success {
    border-color: rgba(16, 185, 129, 0.2);
}

.gp-toast-success::before {
    background: #10b981;
}

.gp-toast-success .gp-toast-icon {
    color: #10b981;
}

.gp-toast-error {
    border-color: rgba(239, 68, 68, 0.2);
}

.gp-toast-error::before {
    background: #ef4444;
}

.gp-toast-error .gp-toast-icon {
    color: #ef4444;
}

.gp-toast-warning {
    border-color: rgba(245, 158, 11, 0.2);
}

.gp-toast-warning::before {
    background: #f59e0b;
}

.gp-toast-warning .gp-toast-icon {
    color: #f59e0b;
}

.gp-toast-info {
    border-color: rgba(59, 130, 246, 0.2);
}

.gp-toast-info::before {
    background: #3b82f6;
}

.gp-toast-info .gp-toast-icon {
    color: #3b82f6;
}

/* Mobil toast */
@media (max-width: 768px) {
    #gp-toast-container {
        top: auto;
        bottom: calc(80px + env(safe-area-inset-bottom));
        right: 12px;
        left: 12px;
        max-width: 100%;
        width: auto;
    }

    .gp-toast {
        transform: translateY(10px);
    }

    .gp-toast-show {
        transform: translateY(0);
    }

    .gp-toast-hide {
        transform: translateY(10px) scale(0.95);
    }
}


/* ============================================
   GLOBAL LOADER
   ============================================ */
#gp-global-loader {
    display: none;
}

#gp-global-loader.active {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

.gp-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-loader-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gp-spinner-ring {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gp-border);
    border-top-color: var(--gp-primary);
    border-radius: 50%;
    animation: gpSpinnerSpin 0.7s linear infinite;
}

@keyframes gpSpinnerSpin {
    to {
        transform: rotate(360deg);
    }
}

.gp-loader-spinner span {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gp-text-muted);
}

/* ============================================
   SweetAlert2 — GlamourPRO Tema Uyumu
   ============================================ */
.gp-swal-popup {
    border-radius: var(--gp-radius-lg) !important;
    padding: 28px 24px 20px !important;
    font-family: var(--gp-font) !important;
    background: var(--gp-card-bg) !important;
    border: 1px solid var(--gp-border) !important;
}

.gp-swal-popup .swal2-title {
    font-family: var(--gp-font) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--gp-text-primary) !important;
    padding: 0 0 8px !important;
}

.gp-swal-popup .swal2-html-container {
    font-family: var(--gp-font) !important;
    font-size: 0.85rem !important;
    color: var(--gp-text-secondary) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gp-swal-popup .swal2-icon {
    margin: 0 auto 14px !important;
    border-color: var(--gp-border) !important;
}

.gp-swal-popup .swal2-icon.swal2-success {
    border-color: var(--gp-success) !important;
    color: var(--gp-success) !important;
}

.gp-swal-popup .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(122, 154, 109, 0.3) !important;
}

.gp-swal-popup .swal2-icon.swal2-success .swal2-success-line-long,
.gp-swal-popup .swal2-icon.swal2-success .swal2-success-line-tip {
    background-color: var(--gp-success) !important;
}

.gp-swal-popup .swal2-icon.swal2-warning {
    border-color: var(--gp-warning) !important;
    color: var(--gp-warning) !important;
}

.gp-swal-popup .swal2-icon.swal2-error {
    border-color: var(--gp-danger) !important;
    color: var(--gp-danger) !important;
}

.gp-swal-popup .swal2-icon.swal2-question {
    border-color: var(--gp-primary) !important;
    color: var(--gp-primary) !important;
}

.gp-swal-popup .swal2-actions {
    gap: 8px !important;
    margin-top: 20px !important;
    padding: 0 !important;
}

/* Swal buton stilleri — gp-btn ile uyumlu */
.gp-swal-popup .gp-btn {
    margin: 0 !important;
}

/* Danger butonu (silme) */
.gp-swal-danger-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 11px 24px !important;
    border: none !important;
    border-radius: var(--gp-radius-sm) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    font-family: var(--gp-font) !important;
    cursor: pointer !important;
    background: linear-gradient(135deg, var(--gp-danger), #A04848) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(184, 92, 92, 0.3) !important;
    transition: all 0.2s !important;
}

.gp-swal-danger-btn:hover {
    box-shadow: 0 4px 16px rgba(184, 92, 92, 0.4) !important;
    transform: translateY(-1px) !important;
}

.gp-swal-danger-btn:active {
    transform: translateY(0) !important;
}

/* Cancel butonu */
.gp-swal-cancel-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 11px 24px !important;
    border: 1.5px solid var(--gp-border) !important;
    border-radius: var(--gp-radius-sm) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    font-family: var(--gp-font) !important;
    cursor: pointer !important;
    background: transparent !important;
    color: var(--gp-text-secondary) !important;
    transition: all 0.2s !important;
}

.gp-swal-cancel-btn:hover {
    background: var(--gp-cream-warm) !important;
    border-color: var(--gp-gold-pale) !important;
    color: var(--gp-text-primary) !important;
}

/* Swal timer progress bar */
.gp-swal-popup .swal2-timer-progress-bar {
    background: var(--gp-primary) !important;
}

/* ============================================
   GlamourPRO - BİLDİRİM SİSTEMİ CSS v1.2
   Fix: Scroll + Yenile butonu
   ============================================ */

/* Bildirim açıkken body scroll kapatma */
body.notif-open {
    /* Mobilde arka plan scroll'unu engelle */
}

@media (max-width: 768px) {
    body.notif-open {
        overflow: hidden;
    }
}

/* Wrapper */
.topbar-notif-wrap {
    position: relative;
}

.topbar-notif-btn {
    position: relative;
}

/* Badge */
.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 0 0 2px var(--gp-card-bg);
    animation: notifBadgePulse 2s ease infinite;
}

@keyframes notifBadgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ─── Dropdown Panel ─── */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -40px;
    width: 380px;
    max-height: 520px;
    background: var(--gp-card-bg);
    border: 1px solid var(--gp-border);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
    display: none;
    flex-direction: column;
    z-index: 1100;
    overflow: hidden;
    animation: notifDdIn 0.2s ease;
}

.notif-dropdown.active {
    display: flex;
}

@keyframes notifDdIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notif-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 52px;
    width: 12px;
    height: 12px;
    background: var(--gp-card-bg);
    border-left: 1px solid var(--gp-border);
    border-top: 1px solid var(--gp-border);
    transform: rotate(45deg);
    z-index: 1;
}

/* ─── Header ─── */
.notif-dd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gp-border);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.notif-dd-header h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gp-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-dd-header h4 i {
    color: var(--gp-primary);
    font-size: 1.1rem;
}

/* ─── Yenile Butonu ─── */
.notif-dd-refresh {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--gp-border);
    background: var(--gp-body-bg);
    border-radius: 8px;
    color: var(--gp-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.15s;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.notif-dd-refresh:hover {
    border-color: var(--gp-primary);
    color: var(--gp-primary);
    background: rgba(var(--gp-primary-rgb), 0.04);
}

.notif-dd-refresh:active {
    transform: scale(0.92);
    background: rgba(var(--gp-primary-rgb), 0.08);
}

.notif-dd-refresh.spinning i {
    animation: notifRefreshSpin 0.6s linear;
}

@keyframes notifRefreshSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ─── Body — SCROLL FIX ─── */
.notif-dd-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 6px;
    min-height: 100px;
    max-height: 400px;
    /* Scroll'un her zaman çalışmasını garanti et */
    touch-action: pan-y;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

/* Scrollbar stili */
.notif-dd-body::-webkit-scrollbar {
    width: 5px;
}

.notif-dd-body::-webkit-scrollbar-track {
    background: transparent;
}

.notif-dd-body::-webkit-scrollbar-thumb {
    background: var(--gp-border);
    border-radius: 3px;
}

.notif-dd-body::-webkit-scrollbar-thumb:hover {
    background: var(--gp-text-muted);
}

/* ─── Bildirim Kartları ─── */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
    color: inherit;
}

.notif-item:hover {
    background: rgba(var(--gp-primary-rgb), 0.04);
}

.notif-item:active {
    background: rgba(var(--gp-primary-rgb), 0.08);
}

.notif-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gp-text-primary);
    line-height: 1.3;
    margin-bottom: 2px;
}

.notif-detail {
    font-size: 0.72rem;
    color: var(--gp-text-muted);
    line-height: 1.4;
}

.notif-arrow {
    flex-shrink: 0;
    color: var(--gp-text-muted);
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.15s;
    align-self: center;
}

.notif-item:hover .notif-arrow {
    opacity: 1;
}

/* Kategori ayracı */
.notif-category {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--gp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-category::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gp-border);
}

/* Boş & Loading */
.notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gp-text-muted);
}

.notif-empty i {
    font-size: 2.2rem;
    opacity: 0.25;
    display: block;
    margin-bottom: 10px;
}

.notif-empty span {
    font-size: 0.82rem;
    display: block;
}

.notif-empty small {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
    margin-top: 4px;
}

.notif-loading {
    text-align: center;
    padding: 30px 20px;
    color: var(--gp-text-muted);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notif-spin {
    animation: notifSpinLoader 0.8s linear infinite;
}

@keyframes notifSpinLoader {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.notif-dd-footer {
    padding: 10px 18px;
    border-top: 1px solid var(--gp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-dd-footer-text {
    font-size: 0.65rem;
    color: var(--gp-text-muted);
}

/* ─── MOBİL ─── */
@media (max-width: 768px) {
    .notif-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 75vh;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
        animation: notifSheetIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .notif-dropdown::before {
        display: none;
    }

    @keyframes notifSheetIn {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .notif-dd-header {
        padding: 20px 18px 14px;
    }

    /* Mobil handle çizgisi */
    .notif-dd-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        border-radius: 4px;
        background: var(--gp-border);
    }

    .notif-dd-body {
        max-height: calc(75vh - 120px);
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        /* Mobilde scroll'u garanti et */
        -webkit-overflow-scrolling: touch;
        overflow-y: scroll;
        touch-action: pan-y;
    }

    .notif-item {
        padding: 14px 16px;
    }

    .notif-arrow {
        opacity: 1;
    }

    /* Yenile butonu mobilde daha büyük touch area */
    .notif-dd-refresh {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }
}

/* ============================================
   SIDEBAR BADGE - Multi Badge Group
   ============================================ */

/* Badge group — yan yana badge'ler */
.sidebar-badge-group {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Base badge */
.sidebar-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Tek badge (group dışında) margin-left auto */
.sidebar-menu-link > .sidebar-badge {
    margin-left: auto;
}

.sidebar-badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.sidebar-badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.sidebar-badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.sidebar-badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.sidebar-badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

/* Collapsed sidebar */
.sidebar-collapsed .sidebar-badge-group {
    position: absolute;
    top: 2px;
    right: 2px;
    gap: 1px;
}

.sidebar-collapsed .sidebar-badge {
    min-width: 8px;
    height: 8px;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
    line-height: 0;
}

.sidebar-collapsed .sidebar-badge-warning {
    background: #f59e0b;
}

.sidebar-collapsed .sidebar-badge-danger {
    background: #ef4444;
}

.sidebar-collapsed .sidebar-badge-info {
    background: #3b82f6;
}

.sidebar-collapsed .sidebar-badge-purple {
    background: #8b5cf6;
}

.sidebar-collapsed .sidebar-badge-success {
    background: #10b981;
}