/* admin/assets/css/style.css */

/* Google Fonts - Inter Tipografisi */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   =================================================== */
:root {
    /* Primary Palette */
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-primary-light: #60a5fa;
    --color-primary-bg: rgba(59, 130, 246, 0.08);

    /* Accent Colors */
    --color-emerald: #10b981;
    --color-emerald-bg: rgba(16, 185, 129, 0.08);
    --color-amber: #f59e0b;
    --color-amber-bg: rgba(245, 158, 11, 0.08);
    --color-red: #ef4444;
    --color-red-bg: rgba(239, 68, 68, 0.08);
    --color-violet: #8b5cf6;
    --color-violet-bg: rgba(139, 92, 246, 0.08);
    --color-teal: #14b8a6;
    --color-teal-bg: rgba(20, 184, 166, 0.08);

    /* Neutral Colors */
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;

    /* Surfaces */
    --surface-body: #f0f4f8;
    --surface-card: #ffffff;
    --surface-sidebar: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Mobile Touch Target */
    --touch-target: 44px;

    /* Sidebar Width */
    --sidebar-width: 260px;
    --sidebar-minimized-width: 80px;

    /* Mobile Topbar Height */
    --mobile-topbar-height: 56px;
}

/* ===================================================
   BASE STYLES
   =================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--surface-body);
    overflow-x: hidden;
    color: var(--color-slate-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Better image defaults */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================================
   MOBILE TOP BAR
   =================================================== */
.mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-topbar-height);
    background: linear-gradient(135deg, var(--color-slate-800) 0%, var(--color-slate-900) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1060;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.mobile-hamburger {
    width: var(--touch-target);
    height: var(--touch-target);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.mobile-hamburger:active {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation when open */
.mobile-hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-topbar-brand {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-topbar-brand img {
    max-width: 120px;
    width: 100%;
    object-fit: contain;
}

.mobile-topbar-logo {
    max-height: 32px;
    width: auto;
}

.mobile-topbar-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
}

.mobile-topbar-user {
    width: var(--touch-target);
    height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-user-avatar {
    color: var(--color-slate-300);
    font-size: 1.4rem;
}

/* ===================================================
   ADMIN LAYOUT
   =================================================== */
.admin-layout {
    min-height: 100vh;
}

/* ===================================================
   PREMIUM SIDEBAR
   =================================================== */
.sidebar {
    min-height: 100vh;
    background: var(--surface-sidebar);
    color: var(--color-slate-200);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-slow);
    z-index: 1000;
}

.navbar-brand-custom {
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    text-align: center;
}

.sidebar-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: var(--touch-target);
    height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar-close-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.sidebar .nav {
    padding: 1rem 0.8rem;
}

.sidebar a {
    color: var(--color-slate-400);
    text-decoration: none;
    padding: 0.85rem 1.2rem;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-height: var(--touch-target);
}

.sidebar a i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    transform: translateX(4px);
}

.sidebar a:hover i {
    transform: scale(1.1);
}

.sidebar a.active {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sidebar a.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    transform: translateX(4px);
}

/* ===================================================
   MAIN CONTENT
   =================================================== */
.main-content {
    padding: 10px 30px 30px 30px;
    width: 100%;
    transition: all 0.3s ease;
    min-width: 0; /* Prevent flex overflow */
}

/* ===================================================
   DASHBOARD HERO WELCOME
   =================================================== */
.dashboard-hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-slate-900) 0%, var(--color-slate-800) 50%, #1a365d 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
    color: #ffffff;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.greeting-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary-light);
    margin-bottom: 1rem;
}

.greeting-badge i {
    color: var(--color-amber);
}

.hero-title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.hero-name {
    background: linear-gradient(135deg, var(--color-primary-light), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--color-slate-400);
    font-size: 0.95rem;
    margin: 0;
}

.hero-date-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
}

.date-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: var(--color-primary-light);
}

.date-info {
    display: flex;
    flex-direction: column;
}

.date-day {
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
}

.date-time {
    font-size: 0.8rem;
    color: var(--color-slate-400);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

/* Hero decorative circles */
.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.06);
}

.hero-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation: floatCircle 8s ease-in-out infinite;
}

.hero-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    right: 150px;
    background: rgba(139, 92, 246, 0.05);
    animation: floatCircle 12s ease-in-out infinite reverse;
}

.hero-circle-3 {
    width: 100px;
    height: 100px;
    top: 30px;
    right: 250px;
    background: rgba(16, 185, 129, 0.04);
    animation: floatCircle 10s ease-in-out infinite 2s;
}

@keyframes floatCircle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(10px, -15px) scale(1.05);
    }

    66% {
        transform: translate(-5px, 10px) scale(0.95);
    }
}

/* ===================================================
   STAT CARDS
   =================================================== */
.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    position: relative;
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    border: 1px solid var(--color-slate-200);
    transition: all var(--transition-base);
    animation: fadeInUp 0.5s ease-out both;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.stat-card__glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.stat-card:hover .stat-card__glow {
    opacity: 0.7;
}

.stat-card--views .stat-card__glow {
    background: var(--color-teal);
}

.stat-card--posts .stat-card__glow {
    background: var(--color-primary);
}

.stat-card--messages .stat-card__glow {
    background: var(--color-violet);
}

.stat-card--alert .stat-card__glow {
    background: var(--color-red);
}

.stat-card__icon {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.3rem;
}

.stat-card--views .stat-card__icon {
    background: var(--color-teal-bg);
    color: var(--color-teal);
}

.stat-card--posts .stat-card__icon {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

.stat-card--messages .stat-card__icon {
    background: var(--color-violet-bg);
    color: var(--color-violet);
}

.stat-card--alert .stat-card__icon {
    background: var(--color-red-bg);
    color: var(--color-red);
}

.stat-card__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

.stat-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-card__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-slate-900);
    letter-spacing: -1px;
    line-height: 1.1;
}

.stat-card__footer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--color-slate-400);
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-slate-100);
}

.stat-card--views .stat-card__footer i {
    color: var(--color-teal);
}

.stat-card--posts .stat-card__footer i {
    color: var(--color-primary);
}

.stat-card--messages .stat-card__footer i {
    color: var(--color-emerald);
}

.stat-card--alert .stat-card__footer i {
    color: var(--color-red);
}

/* ===================================================
   DASHBOARD PANELS
   =================================================== */
.dashboard-panels {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-panel {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-slate-200);
    overflow: hidden;
    transition: all var(--transition-base);
    animation: fadeInUp 0.5s ease-out both;
    animation-delay: 0.4s;
}

.dashboard-panel:nth-child(2) {
    animation-delay: 0.5s;
}

.dashboard-panel:hover {
    box-shadow: var(--shadow-md);
}

.panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-slate-100);
}

.panel__title-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.panel__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

.panel__icon--amber {
    background: var(--color-amber-bg);
    color: var(--color-amber);
}

.panel__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate-800);
    margin: 0;
    line-height: 1.3;
}

.panel__subtitle {
    font-size: 0.78rem;
    color: var(--color-slate-400);
}

.panel__action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-bg);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
    min-height: var(--touch-target);
}

.panel__action-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateX(2px);
}

.panel__body {
    padding: 1.25rem 1.5rem;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
}

.empty-state__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-emerald-bg), rgba(16, 185, 129, 0.15));
    font-size: 1.75rem;
    color: var(--color-emerald);
}

.empty-state__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-slate-700);
    margin-bottom: 0.35rem;
}

.empty-state__text {
    font-size: 0.88rem;
    color: var(--color-slate-400);
    margin: 0;
}

/* === Message List === */
.message-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message-list__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-slate-100);
    background: var(--color-slate-50);
    transition: all var(--transition-base);
    animation: fadeInUp 0.4s ease-out both;
}

.message-list__item:hover {
    background: #ffffff;
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.message-list__avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-violet));
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
}

.message-list__content {
    flex: 1;
    min-width: 0;
}

.message-list__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.message-list__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-slate-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-list__date {
    font-size: 0.72rem;
    color: var(--color-slate-400);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.message-list__subject {
    font-size: 0.82rem;
    color: var(--color-slate-500);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-list__action {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all var(--transition-base);
}

.message-list__action:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.1);
}

/* === Quick Actions === */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: var(--color-slate-50);
    border: 1px solid var(--color-slate-100);
    text-decoration: none;
    transition: all var(--transition-base);
    animation: fadeInUp 0.4s ease-out both;
    min-height: var(--touch-target);
}

.quick-action:hover {
    background: #ffffff;
    border-color: var(--color-slate-200);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.quick-action--outline {
    border-style: dashed;
}

.quick-action__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: transform var(--transition-base);
}

.quick-action:hover .quick-action__icon {
    transform: scale(1.1);
}

.quick-action__icon--blue {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

.quick-action__icon--emerald {
    background: var(--color-emerald-bg);
    color: var(--color-emerald);
}

.quick-action__icon--violet {
    background: var(--color-violet-bg);
    color: var(--color-violet);
}

.quick-action__icon--slate {
    background: rgba(100, 116, 139, 0.08);
    color: var(--color-slate-600);
}

.quick-action__icon--teal {
    background: var(--color-teal-bg);
    color: var(--color-teal);
}

.quick-action__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quick-action__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-slate-800);
}

.quick-action__desc {
    font-size: 0.75rem;
    color: var(--color-slate-400);
}

.quick-action__arrow {
    color: var(--color-slate-300);
    font-size: 0.75rem;
    transition: all var(--transition-base);
}

.quick-action:hover .quick-action__arrow {
    color: var(--color-primary);
    transform: translateX(3px);
}

/* ===================================================
   GLOBAL ANIMATION
   =================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================
   FORM & TABLE CUSTOMIZATIONS
   =================================================== */
.card {
    border-radius: var(--radius-md);
    border: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-xs);
}

.table-hover tbody tr:hover {
    background-color: var(--color-slate-50);
}

/* ===================================================
   RESPONSIVE TABLE WRAPPER
   =================================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

/* Custom scrollbar for table */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--color-slate-100);
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--color-slate-400);
}

/* ===================================================
   MESSAGES MODULE
   =================================================== */
.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

.hover-bg-light:hover {
    background-color: var(--color-slate-50) !important;
}

.message-item {
    border-left: 3px solid transparent;
}

.message-item.unread-msg {
    border-left: 3px solid var(--color-primary);
}

/* ===================================================
   LOGIN PAGE STYLES
   =================================================== */
body.login-page {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    margin: 0;
    overflow-x: hidden;
}

.login-split-container {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}

.login-brand-side {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 10%;
    position: relative;
    overflow: hidden;
}

.login-brand-side::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: rotateBg 30s infinite linear;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-brand-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    z-index: 1;
}

.brand-subtitle {
    font-size: 1.2rem;
    color: var(--color-slate-400);
    line-height: 1.7;
    max-width: 450px;
    z-index: 1;
}

.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-page .form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-slate-200);
    background-color: var(--color-slate-50);
    transition: all 0.3s ease;
}

.login-page .form-control-lg:focus {
    background-color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.login-page .input-group-text {
    background-color: var(--color-slate-50);
    border-color: var(--color-slate-200);
    color: var(--color-slate-400);
    border-radius: var(--radius-md);
}

.login-page .btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.login-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.login-floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: floatShape 15s infinite ease-in-out;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* ============================================
   SIDEBAR TOGGLE - Minimal Mode Styles
   ============================================ */

/* Sidebar Wrapper - Toggle için position reference */
.sidebar-wrapper {
    position: relative;
    display: flex;
    flex-shrink: 0;
    width: var(--sidebar-width);
    transition: width var(--transition-slow);
}

.sidebar-wrapper.minimized {
    width: var(--sidebar-minimized-width);
}

/* Yeni Toggle Butonu - Sidebar'ın sağ kenarında */
.sidebar-toggle-new {
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: 3px solid var(--surface-body);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 1002;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.sidebar-toggle-new i {
    transition: transform 0.3s ease;
}

.sidebar-toggle-new:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.sidebar-toggle-new.minimized {
    background: linear-gradient(135deg, var(--color-emerald) 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.sidebar-toggle-new.minimized:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

/* Sidebar Logo - Boyut Sınırlaması */
.sidebar-logo {
    max-height: 80px !important;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* Sidebar Title */
.sidebar-title {
    font-size: 1.1rem !important;
    text-align: center;
    line-height: 1.3;
}

/* Toggle Butonu - Sidebar'ın sağ kenarında */
.sidebar-toggle {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: 3px solid var(--surface-body);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 1002;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.sidebar-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.sidebar-toggle i {
    transition: transform var(--transition-base);
}

/* Minimal Mode - Sidebar Daraltılmış */
.sidebar.minimized {
    width: var(--sidebar-minimized-width) !important;
}

.sidebar.minimized .navbar-brand-custom {
    padding: 1.25rem 0.5rem;
}

.sidebar.minimized .navbar-brand-custom .mt-3 {
    display: none;
}

.sidebar.minimized .logo-container {
    min-height: 30px;
}

.sidebar.minimized .sidebar-logo,
.sidebar.minimized .sidebar-title {
    display: none;
}

.sidebar.minimized .user-info {
    display: flex;
    justify-content: center;
}

.sidebar.minimized .user-info .badge {
    padding: 0.5rem;
}

.sidebar.minimized .user-info .user-name,
.sidebar.minimized .nav-text,
.sidebar.minimized .nav-divider {
    display: none;
}

.sidebar.minimized .nav {
    padding: 1rem 0.4rem;
}


/* Minimal Mode - Nav Linkleri */
.sidebar.minimized .nav a {
    justify-content: center;
    padding: 0.85rem;
}

.sidebar.minimized .nav a i {
    margin-right: 0;
    font-size: 1.2rem;
}

.sidebar.minimized .nav a:hover {
    transform: none;
}

.sidebar.minimized .nav a.text-danger:hover {
    transform: none;
}

/* Minimal Mode - Tooltip */
.sidebar.minimized .nav a[role="menuitem"] {
    position: relative;
}

.sidebar.minimized .nav a[role="menuitem"]:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 12px;
    background: var(--color-slate-800);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1002;
    box-shadow: var(--shadow-md);
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Header Toggle Container - Sağ Üst */
.header-toggle-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    padding-right: 0;
}

/* Büyük Toggle Butonu */
.sidebar-toggle-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sidebar-toggle-large i {
    font-size: 1.1rem;
    transition: transform var(--transition-base);
}

/* Main Content - Sidebar Genişlediğinde */
.main-content.sidebar-expanded {
    margin-left: 0;
}

/* Animasyonlu Geçişler */
.sidebar,
.main-content {
    transition: all var(--transition-slow);
}

/* Hover Efektleri - İyileştirilmiş */
.sidebar a {
    position: relative;
    overflow: hidden;
}

.sidebar a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
    border-radius: 0 2px 2px 0;
}

.sidebar a:hover::before {
    transform: scaleY(1);
}

.sidebar a.active::before {
    transform: scaleY(1);
}

/* Active State İyileştirmesi */
.sidebar a.active {
    position: relative;
}

.sidebar a.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid white;
}

/* Mobil Menü Butonu Stili */
.mobile-menu-btn {
    transition: all var(--transition-base);
}

.mobile-menu-btn:hover {
    background-color: var(--color-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ===================================================
   TOUCH-FRIENDLY ELEMENTS
   =================================================== */

/* Ensure all interactive elements have minimum touch target */
.btn {
    min-height: var(--touch-target);
    min-width: var(--touch-target);
}

.btn-sm {
    min-height: 36px;
    min-width: 36px;
}

.form-check-input {
    min-width: 20px;
    min-height: 20px;
}

.form-switch .form-check-input {
    min-width: 40px;
    min-height: 22px;
}

/* ===================================================
   PAGE HEADER - Responsive flex wrapper
   =================================================== */
.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */

/* ============================================
   BREAKPOINT: 1280px (Large Desktop)
   ============================================ */
@media (max-width: 1280px) {
    .stat-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .dashboard-panels {
        grid-template-columns: 1.2fr 1fr;
    }
}

/* ============================================
   BREAKPOINT: 1024px (Tablet Landscape / Small Desktop)
   ============================================ */
@media (max-width: 1024px) {
    .dashboard-panels {
        grid-template-columns: 1fr;
    }

    .stat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .main-content {
        padding: 20px;
    }
}

/* ============================================
   BREAKPOINT: 992px (Bootstrap lg) - Sidebar collapses
   ============================================ */
@media (max-width: 991.98px) {
    /* Hide desktop sidebar toggle */
    .sidebar-toggle-new,
    .sidebar-toggle {
        display: none !important;
    }

    /* Sidebar wrapper reset for mobile */
    .sidebar-wrapper {
        width: 0 !important;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1050;
    }

    .sidebar-wrapper.minimized {
        width: 0 !important;
    }

    /* Sidebar mobile positioning */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px !important;
        z-index: 1050;
        overflow-y: auto;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.show {
        left: 0;
    }

    /* Reset minimized state on mobile */
    .sidebar.minimized {
        width: 280px !important;
    }

    .sidebar.minimized .nav a {
        justify-content: flex-start;
        padding: 0.85rem 1.2rem;
    }

    .sidebar.minimized .nav a i {
        margin-right: 0.75rem;
    }

    .sidebar.minimized .nav-text,
    .sidebar.minimized .user-name,
    .sidebar.minimized .nav-divider,
    .sidebar.minimized .sidebar-logo,
    .sidebar.minimized .sidebar-title {
        display: inline;
    }

    .sidebar.minimized .navbar-brand-custom {
        padding: 1.25rem 1rem;
    }

    .sidebar.minimized .navbar-brand-custom .mt-3 {
        display: block;
    }

    .sidebar.minimized .user-info {
        justify-content: center;
    }

    .sidebar.minimized .user-info .badge {
        padding: 0.5rem 1rem;
    }

    .sidebar.minimized .nav {
        padding: 1rem 0.8rem;
    }

    /* Main content takes full width */
    .main-content {
        width: 100%;
        padding: 15px;
        padding-top: calc(var(--mobile-topbar-height) + 15px);
    }

    /* Body scroll lock when sidebar open */
    body.sidebar-open {
        overflow: hidden;
    }
}

/* ============================================
   BREAKPOINT: 768px (Tablet Portrait)
   ============================================ */
@media (max-width: 768px) {
    .main-content {
        padding: 12px;
        padding-top: calc(var(--mobile-topbar-height) + 12px);
    }

    /* Dashboard Hero - Tablet */
    .dashboard-hero {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }

    .hero-content {
        flex-direction: column;
        gap: 1.25rem;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .hero-date-card {
        width: 100%;
    }

    /* Stat Cards - Tablet */
    .stat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Panels - Tablet */
    .dashboard-panels {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .panel__header {
        padding: 1rem 1.25rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .panel__body {
        padding: 1rem 1.25rem;
    }

    /* Card adjustments */
    .card {
        margin-bottom: 15px;
    }

    .card-body {
        padding: 1rem;
    }

    /* Table responsive */
    .table-responsive {
        font-size: 0.85rem;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 0.5rem;
    }

    /* Form elements - Touch friendly */
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .form-control {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.6rem 0.85rem;
        min-height: var(--touch-target);
    }

    .form-control:focus {
        border-width: 2px;
    }

    .form-select {
        font-size: 16px;
        min-height: var(--touch-target);
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .img-thumbnail {
        max-width: 100px;
        max-height: 100px;
    }

    /* Page header flex - stack on mobile */
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 > .btn,
    .d-flex.justify-content-between.align-items-center.mb-4 > a.btn {
        width: 100%;
        text-align: center;
    }

    /* Nav tabs - Mobile card layout */
    .nav-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        border-bottom: none;
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
        border-radius: var(--radius-lg);
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }

    .nav-tabs .nav-item {
        margin-bottom: 0.75rem;
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 45%;
        transition: transform 0.3s ease;
        display: flex;
    }

    .nav-tabs .nav-item:hover {
        transform: translateY(-3px);
    }

    .nav-tabs .nav-link {
        text-align: center;
        white-space: normal;
        margin: 0 0.375rem;
        border: none;
        border-radius: var(--radius-md);
        background-color: rgba(255, 255, 255, 0.9);
        color: #333;
        transition: all 0.3s ease;
        padding: 1.25rem 0.75rem;
        font-weight: 600;
        box-shadow: var(--shadow-sm);
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 120px;
        flex: 1;
        font-size: 0.85rem;
    }

    .nav-tabs .nav-link:hover {
        background-color: rgba(255, 255, 255, 1);
        box-shadow: var(--shadow-md);
    }

    .nav-tabs .nav-link.active {
        background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
        color: #ffffff;
        box-shadow: var(--shadow-md);
        transform: scale(1.03);
    }

    .nav-tabs .nav-link i {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .nav-tabs .nav-link.active i {
        color: #fff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .nav-tabs .nav-link span {
        font-size: 0.9rem;
    }

    /* Messages module - stack layout */
    .row.g-0 > .col-md-4,
    .row.g-0 > .col-md-8 {
        height: auto !important;
    }

    .row.g-0 > .col-md-4 {
        max-height: 40vh;
        overflow-y: auto;
    }

    .row.g-0 > .col-md-8 {
        min-height: 50vh;
    }

    /* Modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-header,
    .modal-footer {
        padding: 0.75rem 1rem;
    }

    /* Dropdown adjustments */
    .dropdown-menu {
        min-width: 200px;
    }

    .dropdown-item {
        padding: 0.6rem 1rem;
        min-height: var(--touch-target);
        display: flex;
        align-items: center;
    }
}

/* ============================================
   BREAKPOINT: 480px (Mobile Landscape)
   ============================================ */
@media (max-width: 480px) {
    .main-content {
        padding: 10px;
        padding-top: calc(var(--mobile-topbar-height) + 10px);
    }

    /* Dashboard hero - small */
    .dashboard-hero {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .greeting-badge {
        font-size: 0.78rem;
        padding: 0.3rem 0.8rem;
    }

    .hero-date-card {
        padding: 0.75rem 1rem;
    }

    /* Stat cards - single column */
    .stat-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-card__value {
        font-size: 1.5rem;
    }

    /* Card adjustments */
    .card-header,
    .card-body,
    .card-footer {
        padding: 0.75rem;
    }

    /* Table - Mobile card layout */
    .table-responsive {
        font-size: 0.8rem;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--color-slate-200);
        border-radius: var(--radius-md);
        padding: 0.75rem;
        background: var(--surface-card);
        box-shadow: var(--shadow-xs);
    }

    .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 0.4rem 0;
        border: none;
        border-bottom: 1px solid var(--color-slate-100);
    }

    .table tbody td:last-child {
        border-bottom: none;
        padding-top: 0.75rem;
        justify-content: flex-end;
    }

    .table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-slate-600);
        text-align: left;
        flex-shrink: 0;
        margin-right: 1rem;
    }

    /* Button adjustments */
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .btn-sm {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .badge {
        font-size: 0.7rem;
    }

    /* Form adjustments */
    .form-label {
        font-size: 0.85rem;
    }

    .form-control {
        font-size: 16px;
        padding: 0.5rem 0.75rem;
    }

    /* Settings tabs - Extra small */
    .nav-tabs .nav-link {
        font-size: 0.75rem;
        padding: 1rem 0.5rem;
        min-height: 100px;
    }

    .nav-tabs .nav-item {
        min-width: 48%;
        flex: 1 1 calc(50% - 0.375rem);
    }

    .nav-tabs .nav-link i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .nav-tabs .nav-link span {
        font-size: 0.8rem;
    }

    /* Image thumbnails */
    .img-thumbnail {
        max-width: 80px;
        max-height: 80px;
    }

    /* Gallery grid */
    .col-6.col-md-4.col-lg-3.col-xl-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Messages module */
    .message-item .d-flex h6 {
        font-size: 0.85rem;
    }

    /* Quick actions */
    .quick-action {
        padding: 0.75rem;
    }

    .quick-action__icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    /* Panel adjustments */
    .panel__header {
        padding: 0.85rem 1rem;
    }

    .panel__body {
        padding: 0.85rem 1rem;
    }

    .panel__icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .panel__title {
        font-size: 0.9rem;
    }

    /* Message list items */
    .message-list__item {
        padding: 0.65rem 0.75rem;
        gap: 0.75rem;
    }

    .message-list__avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.85rem;
    }
}

/* ============================================
   BREAKPOINT: 320px (Small Mobile)
   ============================================ */
@media (max-width: 320px) {
    .main-content {
        padding: 8px;
        padding-top: calc(var(--mobile-topbar-height) + 8px);
    }

    .dashboard-hero {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card__value {
        font-size: 1.3rem;
    }

    .stat-card__label {
        font-size: 0.7rem;
    }

    .stat-card__icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    /* Nav tabs - single column */
    .nav-tabs .nav-item {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .nav-tabs .nav-link {
        min-height: 70px;
        flex-direction: row;
        gap: 0.75rem;
    }

    .nav-tabs .nav-link i {
        font-size: 1.25rem;
        margin-bottom: 0;
    }

    /* Font size adjustments */
    .h3, h3 {
        font-size: 1.1rem;
    }

    .h4, h4 {
        font-size: 1rem;
    }

    /* Button full width */
    .btn {
        width: 100%;
        text-align: center;
    }

    .btn-sm {
        width: auto;
    }

    /* Gallery single column */
    .col-6.col-md-4.col-lg-3.col-xl-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===================================================
   RESPONSIVE UTILITIES
   =================================================== */

/* Hide on mobile */
.hide-mobile {
    display: block;
}

/* Show on mobile */
.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

/* Responsive text truncation */
.text-truncate-mobile {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .text-truncate-mobile {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .text-truncate-mobile {
        max-width: 100px;
    }
}

/* ===================================================
   RESPONSIVE IMAGES & MEDIA
   =================================================== */
.responsive-img {
    max-width: 100%;
    height: auto;
}

/* Lazy loading placeholder */
.lazy-placeholder {
    background: var(--color-slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate-400);
}

/* ===================================================
   PRINT STYLES
   =================================================== */
@media print {
    .sidebar-wrapper,
    .mobile-topbar,
    .sidebar-overlay,
    .btn,
    .sidebar-toggle-new {
        display: none !important;
    }

    .main-content {
        padding: 0 !important;
        width: 100% !important;
    }

    body {
        background: white;
    }
}

/* ===================================================
   PERFORMANCE OPTIMIZATIONS
   =================================================== */

/* Reduce animations on low-power devices */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-circle,
    .shape {
        animation: none !important;
    }
}

/* GPU acceleration for animated elements */
.sidebar,
.sidebar-overlay,
.mobile-topbar,
.stat-card,
.dashboard-panel {
    will-change: transform;
}

/* ===================================================
   SAFE AREA INSETS (Notched phones)
   =================================================== */
@supports (padding: env(safe-area-inset-top)) {
    .mobile-topbar {
        padding-top: env(safe-area-inset-top);
        height: calc(var(--mobile-topbar-height) + env(safe-area-inset-top));
    }

    @media (max-width: 991.98px) {
        .main-content {
            padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        }
    }
}

/* ===================================================
   HERO SLIDER ADMIN - Responsive
   =================================================== */
@media (max-width: 768px) {
    /* Hero slider items */
    .hero-slider-item {
        flex-direction: column;
    }

    .hero-slider-item img {
        max-width: 100%;
        height: auto;
    }
}

/* ===================================================
   FORM FILE INPUT - Touch friendly
   =================================================== */
.form-control[type="file"] {
    min-height: var(--touch-target);
    padding: 0.5rem;
}

.form-control-lg[type="file"] {
    min-height: 52px;
}

/* ===================================================
   RESPONSIVE ROW UTILITIES
   =================================================== */
@media (max-width: 768px) {
    .row.g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    /* Stack columns on mobile */
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        margin-bottom: 0.5rem;
    }
}

/* ===================================================
   SWEETALERT2 MOBILE ADJUSTMENTS
   =================================================== */
@media (max-width: 480px) {
    .swal2-popup {
        width: 90% !important;
        font-size: 0.9rem !important;
        padding: 1.5rem 1rem !important;
    }

    .swal2-title {
        font-size: 1.2rem !important;
    }

    .swal2-html-container {
        font-size: 0.85rem !important;
    }

    .swal2-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .swal2-actions .swal2-confirm,
    .swal2-actions .swal2-cancel {
        width: 100%;
        margin: 0 !important;
    }
}

/* ===================================================
   MESSAGES MODULE - RESPONSIVE
   =================================================== */
.messages-container {
    min-height: 0;
}

.messages-list-panel {
    height: 75vh;
    overflow-y: auto;
}

.messages-detail-panel {
    height: 75vh;
}

@media (max-width: 768px) {
    .messages-list-panel {
        height: auto;
        max-height: 45vh;
        overflow-y: auto;
    }

    .messages-detail-panel {
        height: auto;
        min-height: 40vh;
    }

    .messages-container .p-4 {
        padding: 1rem !important;
    }

    .message-item .d-flex {
        flex-wrap: wrap;
    }

    #detailBody {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .messages-list-panel {
        max-height: 35vh;
    }

    .message-item {
        padding: 0.75rem !important;
    }

    .message-item h6 {
        font-size: 0.85rem;
    }

    .message-item .small {
        font-size: 0.75rem;
    }
}

/* ===================================================
   LOGIN PAGE - RESPONSIVE & PREMIUM MOBILE VIEW
   =================================================== */
@media (max-width: 991.98px) {
    body.login-page {
        background: #0f172a !important;
        background-image: 
            radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
            radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.15), transparent 25%) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 15px;
        min-height: 100vh;
    }

    .login-split-container {
        display: block;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .login-form-side {
        background: transparent !important;
        padding: 0 !important;
    }

    .login-form-wrapper {
        background: rgba(30, 41, 59, 0.7) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 2.5rem 2rem !important;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        max-width: 100%;
    }

    .login-page .text-dark, 
    .login-page h3, 
    .login-page h2 {
        color: #f8fafc !important;
    }

    .login-page .text-muted {
        color: #94a3b8 !important;
    }

    .login-page .form-label {
        color: #94a3b8 !important;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }

    .login-page .form-control-lg {
        background-color: rgba(15, 23, 42, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #f8fafc !important;
        border-radius: 12px;
    }

    .login-page .form-control-lg:focus {
        background-color: rgba(15, 23, 42, 0.8) !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    }

    .login-page .input-group-text {
        background-color: rgba(15, 23, 42, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #94a3b8;
        border-right: none !important;
    }

    .login-page .form-control-lg.border-start-0 {
        border-left: none !important;
    }

    .login-page .btn-primary {
        background: linear-gradient(135deg, #3b82f6, #0ea5e9) !important;
        border: none !important;
        padding: 0.8rem 1.5rem !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4) !important;
    }

    .login-page .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 25px -5px rgba(59, 130, 246, 0.5) !important;
    }
}

@media (max-width: 576px) {
    .login-form-wrapper {
        padding: 2rem 1.5rem !important;
        border-radius: 20px;
    }
    
    .login-page .brand-title-mobile {
        font-size: 1.5rem;
    }
}
