

/* ═══════════════════════════════════════════════════════════
   OtelYönet Channel Manager — Premium Theme v2.0
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
    --oy-sidebar-bg: #fafbfc;
    --oy-sidebar-border: #f0f1f3;
    --oy-sidebar-header-bg: linear-gradient(135deg, #667eea 0%, #4f46e5 100%);
    --oy-accent-glow: rgba(99, 102, 241, 0.12);
    --oy-surface: #ffffff;
    --oy-surface-hover: #f8fafc;
    --oy-text-primary: #1e293b;
    --oy-text-secondary: #64748b;
    --oy-text-muted: #94a3b8;
    --oy-border-subtle: #e2e8f0;
    --oy-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
    --oy-sidebar-bg: #0f172a;
    --oy-sidebar-border: #1e293b;
    --oy-sidebar-header-bg: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
    --oy-accent-glow: rgba(129, 140, 248, 0.1);
    --oy-surface: #1e293b;
    --oy-surface-hover: #1e293b;
    --oy-text-primary: #f1f5f9;
    --oy-text-secondary: #94a3b8;
    --oy-text-muted: #64748b;
    --oy-border-subtle: #334155;
}

/* ── Sidebar Container ─────────────────────────────────── */
.oy-sidebar {
    background: var(--oy-sidebar-bg) !important;
    border-right: 1px solid var(--oy-sidebar-border);
}

.dark .oy-sidebar {
    background: var(--oy-sidebar-bg) !important;
    border-right-color: var(--oy-sidebar-border);
}

/* ── Sidebar Header ────────────────────────────────────── */
.oy-sidebar-header {
    background: transparent !important;
    border-bottom: 1px solid var(--oy-sidebar-border);
    box-shadow: none !important;
    height: 3.5rem !important;
}

.fi-sidebar-header {
    background: transparent !important;
    box-shadow: none !important;
    --tw-ring-shadow: none !important;
    height: 3.5rem !important;
}

/* Collapse/Expand button sizing */
.oy-collapse-btn,
.oy-expand-btn {
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    padding: 0 !important;
}

.oy-collapse-btn svg,
.oy-expand-btn svg {
    width: 0.875rem !important;
    height: 0.875rem !important;
}

/* ── Logo Styling ──────────────────────────────────────── */
.oy-logo-icon {
    transition: transform 0.3s var(--oy-transition), box-shadow 0.3s var(--oy-transition);
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
}

.oy-logo-icon svg {
    width: 0.875rem !important;
    height: 0.875rem !important;
}

.oy-logo-icon:hover,
a:hover .oy-logo-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

/* Logo brand name */
.oy-logo .text-sm,
.fi-logo .text-sm {
    font-size: 0.8125rem !important;
    line-height: 1.1 !important;
}

/* Logo subtitle "Channel Manager" */
.oy-logo .tracking-wide {
    font-size: 0.5rem !important;
    line-height: 1 !important;
    letter-spacing: 0.06em !important;
}

/* ── Tenant Menu ───────────────────────────────────────── */
.oy-tenant-trigger {
    background: var(--oy-surface) !important;
    transition: all 0.2s var(--oy-transition);
    padding: 0.375rem 0.5rem !important;
    border-radius: 0.5rem !important;
}

.oy-tenant-trigger:hover {
    background: var(--oy-surface-hover) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.oy-tenant-avatar {
    transition: transform 0.2s var(--oy-transition);
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    border-radius: 0.375rem !important;
}

.oy-tenant-avatar svg {
    width: 0.75rem !important;
    height: 0.75rem !important;
}

.oy-tenant-trigger:hover .oy-tenant-avatar {
    transform: scale(1.05);
}

/* "Aktif Otel" label */
.oy-tenant-trigger .tracking-wider {
    font-size: 0.5rem !important;
    line-height: 0.875rem !important;
    letter-spacing: 0.06em !important;
}

/* Tenant name */
.oy-tenant-trigger .truncate {
    font-size: 0.6875rem !important;
    line-height: 1.125rem !important;
}

/* Chevron */
.oy-tenant-trigger .ms-auto {
    width: 0.75rem !important;
    height: 0.75rem !important;
}

/* ── Navigation Groups ─────────────────────────────────── */
.oy-sidebar-group-btn {
    transition: all 0.15s var(--oy-transition);
}

/* GROUP LABEL — force small uppercase style */
.oy-sidebar-group-label {
    font-size: 0.625rem !important;
    line-height: 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #94a3b8 !important;
}

.dark .oy-sidebar-group-label {
    color: #64748b !important;
}

.oy-group-icon-wrapper {
    transition: all 0.2s var(--oy-transition);
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
}

.oy-group-icon-wrapper svg,
.oy-group-icon-wrapper .fi-sidebar-group-icon {
    width: 0.75rem !important;
    height: 0.75rem !important;
}

.fi-active .oy-group-icon-wrapper {
    background: rgba(79, 70, 229, 0.1);
    ring-color: rgba(79, 70, 229, 0.2);
}

.fi-active .oy-group-icon-wrapper .fi-sidebar-group-icon {
    color: rgb(79, 70, 229);
}

.dark .fi-active .oy-group-icon-wrapper {
    background: rgba(129, 140, 248, 0.1);
}

.dark .fi-active .oy-group-icon-wrapper .fi-sidebar-group-icon {
    color: rgb(129, 140, 248);
}

/* ── Sidebar Items ─────────────────────────────────────── */
.oy-sidebar-item-btn {
    transition: all 0.2s var(--oy-transition);
    border: 1px solid transparent;
    padding: 0.375rem 0.5rem !important;
    border-radius: 0.5rem !important;
}

.oy-sidebar-item-btn:hover {
    border-color: var(--oy-border-subtle);
}

/* Item icon sizing */
.oy-sidebar-item-icon {
    width: 1rem !important;
    height: 1rem !important;
}

/* Item label sizing */
.oy-sidebar-item-label {
    font-size: 0.75rem !important;
    line-height: 1.25rem !important;
}

/* Active Item */
.oy-sidebar-item-active {
    position: relative;
}

.oy-active-indicator {
    transition: all 0.2s var(--oy-transition);
    animation: oy-slide-in 0.3s var(--oy-transition);
}

@keyframes oy-slide-in {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ── Sidebar Footer ────────────────────────────────────── */
.oy-sidebar-footer {
    border-top: 1px solid var(--oy-sidebar-border);
    padding-top: 0.75rem;
}

/* ── Sidebar Nav Compact ───────────────────────────────── */
.oy-sidebar-nav {
    padding: 0.625rem 0.5rem !important;
    gap: 0.5rem !important;
}

/* Group collapse button - make it smaller */
.oy-sidebar-group-btn .fi-sidebar-group-collapse-button {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    padding: 0 !important;
}

.oy-sidebar-group-btn .fi-sidebar-group-collapse-button svg {
    width: 0.75rem !important;
    height: 0.75rem !important;
}

/* Active item styling */
.oy-sidebar-item-active .oy-sidebar-item-btn {
    background: rgba(99, 102, 241, 0.06) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.dark .oy-sidebar-item-active .oy-sidebar-item-btn {
    background: rgba(129, 140, 248, 0.08) !important;
}

/* Active indicator pill */
.oy-active-indicator {
    width: 3px !important;
    border-radius: 9999px !important;
}

/* ── Nav Divider ───────────────────────────────────────── */
.oy-nav-divider {
    opacity: 0.6;
}

/* ── Login Page ───────────────────────────────────────── */
.fi-simple-layout {
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 40%, #0c4a6e 100%);
    position: relative;
}

.fi-simple-layout::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.fi-simple-main-ctn {
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-simple-main {
    border-radius: 1.25rem;
}

/* ── Stats Widgets ────────────────────────────────────── */
.fi-wi-stats-overview-stat {
    transition: transform 0.25s var(--oy-transition), box-shadow 0.25s var(--oy-transition);
    border-radius: 1rem !important;
    overflow: hidden;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.fi-wi-stats-overview-stat::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Tables ────────────────────────────────────────────── */
.fi-ta-header-cell {
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.6rem !important;
    letter-spacing: 0.07em;
    color: var(--oy-text-muted);
    padding: 0.5rem 0.75rem !important;
}

.fi-ta-cell {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
}

.fi-ta-cell .fi-ta-text-item {
    font-size: inherit !important;
}

.fi-ta-row {
    transition: background 0.15s var(--oy-transition), box-shadow 0.15s var(--oy-transition);
}

.fi-ta-row:hover {
    background: rgba(99, 102, 241, 0.02) !important;
}

.dark .fi-ta-row:hover {
    background: rgba(129, 140, 248, 0.04) !important;
}

/* Table container */
.fi-ta-ctn {
    border-radius: 0.75rem !important;
    overflow: hidden;
    border: 1px solid var(--oy-border-subtle) !important;
}

.dark .fi-ta-ctn {
    border-color: var(--oy-sidebar-border) !important;
}

/* Striped rows */
.fi-ta-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.01);
}

.dark .fi-ta-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

/* Table empty state */
.fi-ta-empty-state {
    padding: 2rem 1rem !important;
}

.fi-ta-empty-state-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
    color: var(--oy-text-muted) !important;
}

/* Table tabs compact */
.fi-tabs {
    border-radius: 0.5rem !important;
    gap: 0.125rem !important;
}

.fi-tabs-item-button {
    border-radius: 0.375rem !important;
    font-size: 0.75rem !important;
    padding: 0.375rem 0.75rem !important;
    transition: all 0.2s var(--oy-transition) !important;
}

/* Badge sizing in tables */
.fi-ta-cell .fi-badge {
    font-size: 0.65rem !important;
    padding: 0.1rem 0.4rem !important;
}

/* Table actions compact */
.fi-ta-actions {
    gap: 0.125rem !important;
}

/* Table search compact */
.fi-ta-search-field {
    font-size: 0.8125rem !important;
}

/* Table filters */
.fi-ta-filters {
    border-radius: 0.75rem !important;
}

/* Icon columns smaller */
.fi-ta-cell .fi-icon-btn {
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
}

.fi-ta-cell .fi-icon-btn svg {
    width: 0.875rem !important;
    height: 0.875rem !important;
}

/* Table pagination compact */
.fi-ta-paginator {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
}

/* Table description text */
.fi-ta-cell .fi-ta-col-wrp p {
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
}

/* ── Buttons ───────────────────────────────────────────── */
.fi-btn {
    transition: all 0.2s var(--oy-transition);
    border-radius: 0.75rem !important;
}

.fi-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.fi-btn:active {
    transform: translateY(0px);
}

/* ── Sections / Cards ──────────────────────────────────── */
.fi-section {
    transition: box-shadow 0.25s var(--oy-transition);
    border-radius: 1rem !important;
}

.fi-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ── Form Focus States ─────────────────────────────────── */
.fi-input:focus-within {
    box-shadow: 0 0 0 3px var(--oy-accent-glow) !important;
    border-color: rgb(99, 102, 241) !important;
}

.dark .fi-input:focus-within {
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15) !important;
    border-color: rgb(129, 140, 248) !important;
}

/* ── Topbar ────────────────────────────────────────────── */
.oy-topbar {
    background: transparent;
}

.oy-topbar-nav {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(255, 255, 255, 0.82) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none !important;
    --tw-ring-shadow: none !important;
}

.dark .oy-topbar-nav {
    background: rgba(15, 23, 42, 0.82) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.fi-topbar nav {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: none !important;
    --tw-ring-shadow: none !important;
    --tw-ring-color: transparent !important;
}

.dark .fi-topbar nav {
    background: rgba(15, 23, 42, 0.82) !important;
}

/* Topbar Sidebar Toggle */
.oy-topbar-sidebar-btn {
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
}

/* Topbar Action Buttons */
.oy-topbar-action-btn {
    position: relative;
    transition: all 0.2s var(--oy-transition);
}

.oy-topbar-action-btn:hover {
    transform: translateY(-1px);
}

.oy-topbar-action-btn:active {
    transform: translateY(0);
}

/* ── User Menu ─────────────────────────────────────────── */
.oy-user-trigger {
    transition: all 0.2s var(--oy-transition);
}

.oy-user-trigger:hover {
    background: rgba(0, 0, 0, 0.04);
}

.dark .oy-user-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.oy-user-avatar-wrap .fi-avatar {
    width: 1.75rem !important;
    height: 1.75rem !important;
    font-size: 0.65rem !important;
}

.oy-user-dropdown-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.dark .oy-user-dropdown-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%);
}

/* ── Page Header ───────────────────────────────────────── */
.oy-page-header {
    padding-bottom: 0.5rem;
}

.oy-page-heading {
    font-weight: 800 !important;
    letter-spacing: -0.025em;
    font-size: 1.25rem !important;
}

.oy-breadcrumbs {
    font-size: 0.75rem !important;
}

.oy-breadcrumbs li a {
    transition: color 0.15s ease;
    color: var(--oy-text-muted);
}

.oy-breadcrumbs li a:hover {
    color: var(--oy-text-primary);
}

/* ── Modal / Dialogs ───────────────────────────────────── */
.fi-modal-window {
    border-radius: 1.25rem !important;
}

/* ── Notifications ─────────────────────────────────────── */
.fi-no {
    border-radius: 1rem !important;
}

/* ── Badges ────────────────────────────────────────────── */
.fi-badge {
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Sidebar-specific scrollbar */
.oy-sidebar-nav::-webkit-scrollbar-thumb {
    background: #e2e8f0;
}

.dark .oy-sidebar-nav::-webkit-scrollbar-thumb {
    background: #1e293b;
}

/* ── Breadcrumbs ───────────────────────────────────────── */
/* Handled by .oy-breadcrumbs above */

/* ── Page Header ───────────────────────────────────────── */
/* Handled by .oy-page-header / .oy-page-heading above */

/* ── Loading Animations ────────────────────────────────── */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes oy-pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ── Dropdown Menus ────────────────────────────────────── */
.fi-dropdown-panel {
    border-radius: 0.875rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.dark .fi-dropdown-panel {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

/* ── Tabs ──────────────────────────────────────────────── */
.fi-tabs {
    border-radius: 0.875rem;
}

/* ── Empty State ───────────────────────────────────────── */
.fi-ta-empty-state {
    padding: 3rem 1rem !important;
}

/* ── Toggle / Switch ───────────────────────────────────── */
.fi-toggle {
    transition: background 0.2s var(--oy-transition);
}

/* ── Avatar ────────────────────────────────────────────── */
.fi-avatar {
    ring: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── Expand/Collapse Buttons ───────────────────────────── */
.oy-expand-btn,
.oy-collapse-btn {
    transition: all 0.2s var(--oy-transition);
    border-radius: 0.625rem;
}

.oy-expand-btn:hover,
.oy-collapse-btn:hover {
    background: var(--oy-accent-glow);
}
