/* ===============================
   GLOBAL RESET
================================= */
/* ===== DPM CORE RESET ===== */
:root {
    /* SPACING SYSTEM */
    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 30px;
    --space-xl: 50px;

    /* TYPOGRAPHY */
    --text-sm: 12px;
    --text-md: 14px;
    --text-lg: 18px;
    --text-xl: 24px;
    --text-2xl: 32px;

/* COLORS */
--primary: #2563eb;
--secondary: #7c3aed;

/* CARD SYSTEM */
--card-radius: 16px;
--card-shadow: 0 4px 15px rgba(0,0,0,0.05);
--card-shadow-hover: 0 12px 35px rgba(0,0,0,0.12);
}

h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

small {
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;

    background:
    radial-gradient(
        circle at top right,
        rgba(37,99,235,0.06),
        transparent 24%
    ),

    radial-gradient(
        circle at bottom left,
        rgba(124,58,237,0.05),
        transparent 26%
    ),

    radial-gradient(
        circle at center top,
        rgba(59,130,246,0.035),
        transparent 32%
    ),

    linear-gradient(
        180deg,
        #f8fafc 0%,
        #f1f5f9 100%
    );

    color: #111827;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;
}

/* ===== LAYOUT ===== */
.app {
    width: 100%;

    position: relative;

    overflow-x: hidden;
}


/* TOP NAVBAR */
.topbar {
    position: fixed;
	transform: translateZ(0);
    top: 0;
    left: 220px;
    right: 0;
	
	width: calc(100% - 220px);
    height: 68px;

	min-height: 64px;

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.96),
        rgba(248,250,252,0.92)
    );

	backdrop-filter: blur(12px);
	
	border-bottom: 1px solid #e5e7eb;
	
	box-shadow:
    0 8px 28px rgba(15,23,42,0.05),
    0 1px 0 rgba(255,255,255,0.8) inset;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;
    z-index: 1200;
}

.metric-top{
    display:flex;

    align-items:flex-start;

    gap:12px;
}

.topbar-left {
	display: flex;
	flex-direction: column;
	gap: 2px;
    font-size: 16px;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;

    gap: 18px;

    flex-wrap: wrap;
	min-width: 0;
}

.mobile-menu-btn {
    display: none;

    width: 42px;
    height: 42px;

    border: none;

    border-radius: 10px;

    background: #f1f5f9;

    align-items: center;
    justify-content: center;

    cursor: pointer;
}


.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
	min-width: 0;
}

.user-box img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.notif {
    position: relative;
    cursor: pointer;
}

.notif-dropdown {
    position: absolute;
    top: 30px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
    padding: 10px;
    z-index: 999;
}

.notif-dropdown.active {
    display: block;
}

.notif span {
    position: absolute;
    top: -6px;
    right: -8px;

    background: red;
    color: #fff;

    font-size: 10px;
    padding: 3px 6px;

    border-radius: 50%;
}

.section {
   width: 100%;

	margin-bottom: clamp(26px, 2vw, 34px);
}

.section-title {
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 800;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 4px;

	letter-spacing: -0.3px;
}

.section-subtitle {
    font-size: clamp(12px, 1vw, 14px);
    color: #94a3b8;
    margin-bottom: 12px;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: #2563eb; /* 🔥 default blue */
}

.section-green::before { background: #22c55e; }
.section-orange::before { background: #f97316; }
.section-purple::before { background: #7c3aed; }

.section-blue::before,
.section-purple::before,
.section-green::before {
    content: '';
    width: 3px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

.section-blue::before { background:#3b82f6; }
.section-purple::before { background:#7c3aed; }
.section-green::before { background:#22c55e; }

.empty-chart {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    text-align:center;
    font-size:12px;
    color:#94a3b8;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    width: calc(100% - 220px);
    max-width: 100%;
    margin-left: 220px;
    padding: 92px 32px 40px;
    min-height: 100vh;
    position: relative;
	left: 0;
	overflow-x: hidden;

	background:
    radial-gradient(
        circle at top right,
        rgba(37,99,235,0.04),
        transparent 28%
    ),

    radial-gradient(
        circle at bottom left,
        rgba(124,58,237,0.03),
        transparent 34%
    ),

    linear-gradient(
        180deg,
        #f8fafc 0%,
        #f1f5f9 100%
    );
}

/* CARDS */

.quick-actions .card{
    min-height:72px;

    border-radius:16px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.98),
            rgba(248,250,252,0.94)
        );

    border:1px solid rgba(226,232,240,0.9);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:14px;

    font-weight:700;

    color:#0f172a;

    transition:
	    transform .25s ease,
	    box-shadow .25s ease,
	    border-color .25s ease,
	    background .25s ease;

    box-shadow:
        0 10px 28px rgba(15,23,42,0.05);
}

.quick-actions .card span{
    font-size:13px;

    font-weight:600;

    color:#334155;
}

.quick-actions .card i{
    width:30px;
    height:30px;

    border-radius:12px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#eff6ff;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.7);

    margin-bottom:2px;
}
	
.quick-actions .card i{
    font-size:15px;

    color:#2563eb;
}

.quick-actions .card::before{
    content:"";

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            135deg,
            rgba(37,99,235,0.03),
            transparent
        );

    opacity:0;

    transition:opacity .25s ease;
}

.quick-actions .card:hover::before{
    opacity:1;
}

.quick-actions .card:hover{
    background:#ffffff;

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px rgba(15,23,42,0.06),
        0 0 0 1px rgba(37,99,235,0.1);

    border-color:
        rgba(37,99,235,0.12);
}

.quick-actions {
    width: 100%;
	position:relative;
}

.card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(0,0,0,0.08),
        0 0 0 1px rgba(37,99,235,0.08);

	border: 1px solid rgba(37,99,235,0.15);
}


/* GRID SYSTEM */
.grid{
    display:grid;

    gap:18px;

    width:100%;
}

.grid-4{
    display:grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap:20px;

    width:100%;

    align-items:stretch;

    grid-auto-rows:1fr;
}

.grid-4 > .card{
	min-width:0;
    height:100%;

    min-height:124px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    align-items: stretch;
    grid-auto-rows:minmax(120px,auto);
}

/* USER UI */
.avatar.pulse {
    position: relative;
}


/* BUTTON */
.btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-dark {
    background: #111827;
    color: #fff;
}


/* ===============================
   LIGHT MODE (DEFAULT)
================================= */
body.light {
    background:#f4f6f9;
    color:#111;
}

/* ===============================
   DARK MODE
================================= */
body.dark {
    background: #0f172a;
    color: #e5e7eb;
}
/* ===============================
   LOGIN PAGE (ISOLATED FIX)
================================= */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

@media (max-width: 768px) {
    .topbar {
		left: 0 !important;

		right: 0 !important;
		
		width: 100% !important;
		
		max-width: 100vw !important;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-height: 700px) {
    body.login-page {
        align-items: flex-start;
        padding-top: 40px;
    }
}

/* LOGIN BOX */
.login-wrapper {
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
}

.login-box {
    background:#fff;
    padding:30px;
    border-radius:16px;

	box-shadow:
    0 20px 40px rgba(0,0,0,0.08),
    0 1px 0 rgba(255,255,255,0.6) inset;
	
    width:360px;
    max-width:95%;
    text-align:center;
	
	background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);

	animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.dark .login-box {
    background:#1e293b;
    color:#fff;
}

body.dark input {
    background:#0f172a;
    color:#fff;
    border:1px solid #334155;
}

body.dark button {
    background:#6366f1;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;

	transition: all 0.2s ease;
}

.login-box input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    outline: none;
}

.login-box button {
    width: 100%;
    padding: 12px;
    margin-top: 18px;
    margin-bottom: 6px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.login-box .btn-secondary {
    background: #eef2ff;
    color: #2563eb;
    margin-top: 10px;
}

.login-box .btn-secondary:hover {
    background: #e0e7ff;
}

/* ===============================
   GRID SYSTEM
================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dashboard-grid > .card {
    width: 100%;
	display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-grid .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 🔥 FIX */
    min-height: 135px;
    height: 100%; /* 🔥 IMPORTANT */
}

.grid-3 .card {
    display: flex;

    flex-direction: column;

    justify-content: flex-start;

    width: 100%;

    min-width: 0;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .topbar {
    left: 0;

    width: 100%;

    min-height: 72px;

    padding: 14px 16px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    flex-wrap: nowrap;
}

    .topbar-right {
    gap: 10px;

    flex-wrap: nowrap;

    align-items: center;

    overflow-x: hidden;

    scrollbar-width: none;
}

    .main-content {
	    margin-left: 0 !important;
	
	    width: 100vw !important;
	
	    max-width: 100vw !important;
	
	    padding: 92px 12px 20px 12px !important;
	
	    overflow-x: hidden !important;
	
	    position: relative !important;
	
	    left: 0 !important;
	}

    .hero-card {
    flex-direction: column;

    align-items: stretch;

    padding: 20px;

    gap: 18px;

    border-radius: 18px;
	}


    .hero-card h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    .hero-meta {
        flex-wrap: wrap;
    }

    .grid-4,
    .grid-3,
	.grid-3.equal-height,
	.dashboard-grid,
	.stats-grid {
	    grid-template-columns: 1fr !important;
	}

    .grid-3.equal-height > .card{
    height:100%;

    min-height:420px;

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    padding:18px;

    border-radius:20px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.98),
            rgba(248,250,252,0.95)
        );

    box-shadow:
        0 10px 30px rgba(15,23,42,0.05);

    overflow:hidden;
}

.card {
		overflow: hidden;

		contain: layout;
		
		isolation: isolate;
		
        padding: 20px;
    }

    .card canvas{
    width:100% !important;

    max-width:100% !important;

    height:auto !important;
}
}

/* ===============================
   CARDS
================================= */
.card{
	min-height:0;
    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.92),
        rgba(248,250,252,0.82)
    );

	backdrop-filter: blur(18px);
	
	-webkit-backdrop-filter: blur(18px);

    border-radius:16px;

    padding:18px;

    border:1px solid rgba(226,232,240,0.9);

    box-shadow:
	    0 4px 18px rgba(15,23,42,0.05),
	    0 1px 0 rgba(255,255,255,0.85) inset;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;

    width:100%;

    overflow:hidden;

    position:relative;

	will-change:
    transform,
    opacity;

	transform: translateZ(0);
	
	backface-visibility: hidden;
    display:flex;

    flex-direction:column;

    min-width:0;
}

.section{
    position:relative;
}

.section::after{
    content:"";

    position:absolute;

    left:0;
    bottom:-8px;

    width:100%;
    height:1px;

    background:
        linear-gradient(
            90deg,
            rgba(226,232,240,0),
            rgba(226,232,240,0.55),
            rgba(226,232,240,0)
        );

    pointer-events:none;
}

@keyframes heroGlow{

    0%{
        transform:translateX(0px) translateY(0px);
        opacity:0.38;
    }

    100%{
        transform:translateX(-18px) translateY(12px);
        opacity:0.55;
    }
}
	
.card:hover{
    transform:
	    translateY(-3px);
    border-color:
        rgba(37,99,235,0.12);

    box-shadow:
	    0 10px 24px rgba(15,23,42,0.08);
}

.card-header {
    display: flex;
	flex-wrap: wrap;
	min-width: 0;
    align-items: center;

	justify-content:flex-start;
    gap: 10px;
    margin-bottom: 8px;

	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 12px;
}

.card-header .icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* 🔥 subtle */
}

.icon-blue { background:#e0edff; color:#2563eb; }
.icon-orange { background:#fed7aa; color:#ea580c; }
.icon-green { background:#dcfce7; color:#16a34a; }
.icon-red { background:#fee2e2; color:#dc2626; }
.icon-purple { background:#ede9fe; color:#7c3aed; }
.icon-cyan { background:#e0f2fe; color:#0284c7; }

.card-header .title {
    font-weight: 600;
    font-size: 13px;
}

.card-header .subtitle {
    font-size: 11px;
    color: #94a3b8;
}

.grid-3.equal-height {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

    gap: 20px;

    align-items: stretch;

    width: 100%;
}

.grid-3.equal-height > .card{
    min-height:260px;

    height:100%;
}

body.dark .card {
    background: rgba(30, 41, 59, 0.6);
    color: #e5e7eb;
}

body.dark .topbar {
    background: rgba(15, 23, 42, 0.9);
}

body.dark .sidebar {
    background: #020617;
}

body.dark .main-content {
    background:#0f172a;
}

/* =========================================
   PREMIUM HERO SECTION
========================================= */
.hero-card{
    position:relative;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:20px;

    padding:26px 28px;

    border-radius:22px;

    overflow:hidden;
	isolation:isolate;

    min-height:140px;

    background:
    linear-gradient(
        135deg,
        #2563eb 0%,
        #3b82f6 25%,
        #1d4ed8 55%,
        #1e40af 100%
    );

	background-size: 200% 200%;
	
	background-size:100% 100%;

    box-shadow:
	    0 14px 40px rgba(37,99,235,0.18),
	    inset 0 1px 0 rgba(255,255,255,0.08);

    color:#fff;
}

.hero-card .mesh-light{
    position:absolute;

    inset:0;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,255,255,0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(255,255,255,0.08),
            transparent 28%
        );

    mix-blend-mode:screen;

    pointer-events:none;

    z-index:1;
}

.hero-card::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background: rgba(255,255,255,0.12);

    top: -180px;
    right: -120px;

    filter: blur(55px);
	opacity: 0.58;
}

.hero-card::after{
    content:"";

    position:absolute;

    width:260px;
    height:260px;

    border-radius:50%;

    background:rgba(255,255,255,0.08);

    bottom:-120px;
    left:-80px;

    filter:blur(40px);
}

.hero-left{
    position:relative;
    z-index:2;
    flex:1;
    min-width:0;
    max-width:760px;
}

.hero-label {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: rgba(255,255,255,0.14);

    padding: 7px 12px;

    border-radius: 999px;

    font-size: 12px;

    margin-bottom: 18px;
}

.hero-card h1{
    font-size:clamp(32px,2.8vw,46px);

    line-height:1.05;

    font-weight:800;

    margin-bottom:6px;

    letter-spacing:-2.4px;
}

.hero-card p {
    font-size: 14px;
    opacity: 0.92;
    margin-bottom: 12px;
}

.hero-meta {
	min-width:0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-meta span{
    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    position:relative;
}

.hero-box {
    position: relative;
    z-index: 2;
    width: 104px;
    min-width: 108px;
    min-height: 102px;
    padding: 16px 12px;
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.22),
            rgba(255,255,255,0.08)
        );

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,0.16);

    box-shadow:
	    inset 0 1px 1px rgba(255,255,255,0.14),
	    0 10px 28px rgba(0,0,0,0.12);
	
    overflow: hidden;
	text-align: center;

	display:flex;
	flex-direction:column;
	justify-content:space-between;
	align-items:center;

	text-align: center;
}

.hero-box::before {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    background: rgba(255,255,255,0.12);

    border-radius: 50%;

    top: -50px;
    right: -40px;

    filter: blur(8px);
}


.hero-box small {
    color: rgba(255,255,255,0.72);

    font-size: 12px;
}

.hero-box h2{
    font-size:28px;

    line-height:1;

    margin:12px 0;

    font-weight:800;

    color:#fff;

    letter-spacing:-1.5px;

    text-shadow:
        0 4px 12px rgba(0,0,0,0.18);
}

.content-wrapper{
    width:100%;

    max-width:1480px;

    margin:0 auto;

    padding:0 4px;

    overflow-x:hidden;

    min-width:0;
}

.dashboard-shell{
	min-width:0;
    width:100%;

    display:flex;

    flex-direction:column;

    gap:16px;
}

/* ===============================
   TEXT
================================= */
.card h3 {
    font-size: 18px;   /* 🔥 smaller like sample */
    margin-bottom: 14px;
}

.card small {
    opacity: 0.7;
}

/* ===============================
   BUTTON
================================= */
button {
    cursor: pointer;
}

/* ===============================
   TOGGLE BUTTON
================================= */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: #111;
    color: #fff;
}

body.dark .theme-toggle {
    background: #fff;
    color: #111;
}

/* ===============================
   CHART BOX
================================= */
.chart-box{
    position:relative;

    width:100%;

    min-height:220px;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:8px;

    margin-top:4px;

    border-radius:16px;

    background:
        radial-gradient(
            circle at top,
            rgba(37,99,235,0.05),
            transparent 72%
        );

    border:1px solid rgba(255,255,255,0.55);

    overflow:hidden;

	box-shadow:
	    inset 0 1px 0 rgba(255,255,255,0.55),
	    0 10px 30px rgba(15,23,42,0.04);
}

.chart-box canvas {
	flex-shrink:0;
	min-width: 0 !important;
	
    width: 100% !important;

    max-width: 100% !important;

    height: auto !important;

	max-height: 240px !important;

    display: block;

    margin: 0 auto;

	object-fit: contain;
}


@media (max-width: 768px) {

    .chart-box {
        min-height: 220px;
    }

    .chart-box canvas {
        transform: scale(0.94);
        transform-origin: center;
    }
}
/* ===============================
   LINKS
================================= */
a {
    text-decoration: none;
}

/* SOCIAL LOGIN BUTTONS */
.auth-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
	height: 44px;
    padding: 10px;
    margin-top: 10px;
    border-radius: 10px;
    background: #f8fafc;
	border: 1px solid #e5e7eb;
	transition: all 0.2s ease;
}

.auth-btn img {
    height: 20px;
}

/* WRAPPER */
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;

    margin-top: 12px;
}

.auth-btn:hover {
    background: #eef2ff;
    border-color: #2563eb;
    transform: translateY(-2px);
}

/* FIX LOGIN CENTERING (WRAPPER) */
body.login-page .page-wrapper {
    width: 100%;
    margin-left: 0;
    padding: 0;
}

.input-group {
    position: relative;
    margin-top: 15px;
}

.input-group input {
    width: 100%;
    padding: 12px;
}

.input-group label {
    position: absolute;
    top: 12px;
    left: 10px;
    color: #888;
    transition: 0.2s;
    background: #fff;
    padding: 0 5px;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -8px;
    font-size: 12px;
    color: #2563eb;
}

/* SHOW PASSWORD FIX */
.show-pass-wrapper {
    margin-top: 10px;
    text-align: left;
}

.show-pass-wrapper label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.show-pass-wrapper input {
    width: auto;
}

/* PASSWORD TOGGLE ICON */
.password-group {
    position: relative;
}

.password-group input {
    padding-right: 10px;
}

.toggle-password {
    position: relative;
    display: block;
    margin-top: -32px;
    float: right;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
}

.toggle-password:hover {
    opacity: 1;
}

/* SIDEBAR */
.sidebar {
	will-change:transform;
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 220px;

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.98),
        rgba(248,250,252,0.96)
    );

    border-right: 1px solid rgba(226,232,240,0.8);

	box-shadow:
	    8px 0 30px rgba(15,23,42,0.03);

    padding: 20px 16px;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 1100;

    display: flex;
    flex-direction: column;
}

.sidebar h3 {
    margin-bottom: 20px;
    font-weight: 700;
    color: #111;
}

.sidebar a.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-weight: 600;

    box-shadow:
	    0 6px 18px rgba(37,99,235,0.18);
}

.sidebar .menu-section {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 22px 0 10px;
    font-weight: 600;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #64748b;              /* 🔥 FIX muted text */
    padding: 13px 15px;
    margin-bottom: 5px;

    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;

    transition: all 0.2s ease;
	letter-spacing:-0.1px;
}

.sidebar i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.sidebar a:hover {
    background:
	    linear-gradient(
	        135deg,
	        rgba(37,99,235,0.08),
	        rgba(59,130,246,0.04)
	    );
    color: #1d4ed8;
}

.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ===============================
   TABLE UI (PROFESSIONAL)
================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

body.dark table {
    background: rgba(255,255,255,0.05);
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
}

table th {
    background: #f1f5f9;
    font-weight: 600;
}

body.dark table th {
    background: rgba(255,255,255,0.08);
}

table tr {
    border-bottom: 1px solid #eee;
}

table tr:hover {
    background: #f9fafb;
}

body.dark table tr:hover {
    background: rgba(255,255,255,0.05);
}

/* ===============================
   STATUS BADGES
================================= */
	
.badge{
    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    padding:8px 14px;

    border-radius:999px;

    background:rgba(255,255,255,0.14);

    border:1px solid rgba(255,255,255,0.08);

    backdrop-filter:blur(10px);

    color:#fff;

    font-size:12px;

    font-weight:600;

    line-height:1;

    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.12),
        0 4px 12px rgba(0,0,0,0.08);
}

.badge::before {
    display: none;
}

.badge-high {
    background: #fee2e2;
    color: #dc2626;
}

.badge-medium {
    background: #fef3c7;
    color: #d97706;
}

.badge-low {
    background: #dcfce7;
    color: #16a34a;
}

.badge-open {
    background: #dbeafe;
    color: #2563eb;
}

.badge-pending {
    background: #fef3c7;
    color: #d97706;
}

.badge-closed {
    background: #dcfce7;
    color: #16a34a;
}

/* =========================================
   LIVE CLOCK ICON ANIMATION
========================================= */

/* SOFT BLINK */
@keyframes clockBlink{

    0%{
        opacity:1;
        transform:scale(1) rotate(0deg);
    }

    25%{
        opacity:0.55;
        transform:scale(1.18) rotate(8deg);
    }

    50%{
        opacity:1;
        transform:scale(1) rotate(0deg);
    }

    75%{
        opacity:0.55;
        transform:scale(1.18) rotate(-8deg);
    }

    100%{
        opacity:1;
        transform:scale(1) rotate(0deg);
    }
}

.live-clock-badge{

    min-width:170px;

    justify-content:center;

    gap:10px;
}

.live-clock-icon{

    animation:
        clockBlink 1.8s ease-in-out infinite;

    transform-origin:center;

    will-change:
        transform,
        opacity;
}

.clock-divider{

    opacity:0.55;

    font-size:10px;
}

/* ===============================
   BUTTONS
================================= */
.btn-assign {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.btn-assign:hover {
    background: #1d4ed8;
}

.assign-dropdown {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 12px;
}

/* ===============================
   TOAST NOTIFICATION
================================= */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #16a34a;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
}

/* ===============================
   PAGE HEADER
================================= */
h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* CREATE BUTTON */
.btn-create {
    display: inline-block;
    margin-bottom: 15px;
    padding: 10px 14px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
}

/* FORM CARD */
.form-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

body.dark .form-card {
    background: rgba(255,255,255,0.05);
}

.form-card input,
.form-card textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.form-card button {
    margin-top: 15px;
    padding: 10px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 6px;
}

/* FORM LAYOUT FIX */
.form-row {
    margin-top: 15px;
}

.form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-inline input[type="file"] {
    flex: 1;
}

.form-inline button {
    white-space: nowrap;
}

.searchable {
    min-width: 135px;
}

.sla {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.sla.ok {
    background: #dcfce7;
    color: #16a34a;
}

.sla.warning {
    background: #fef3c7;
    color: #d97706;
}

.sla.breached {
    background: #fee2e2;
    color: #dc2626;
}

.sla-breach{
    border:1px solid rgba(239,68,68,0.18);

    background:
        linear-gradient(
            180deg,
            rgba(254,242,242,0.55),
            rgba(255,255,255,0.92)
        );

    box-shadow:
        0 8px 24px rgba(239,68,68,0.06),
        0 0 0 1px rgba(239,68,68,0.04);

    animation:none;
}

.priority-high {
    border-left: 3px solid #dc2626;
    background: rgba(220,38,38,0.05);
}

/* =========================================
   DPM LIVE SLA ENGINE
========================================= */

.sla-live-danger{

    border-color:
        rgba(239,68,68,0.35) !important;

    box-shadow:
        0 0 0 1px rgba(239,68,68,0.08),
        0 14px 34px rgba(239,68,68,0.14);

    animation:
        slaDangerPulse 2s ease-in-out infinite;
}

.sla-live-warning{

    border-color:
        rgba(245,158,11,0.28) !important;

    box-shadow:
        0 0 0 1px rgba(245,158,11,0.08),
        0 12px 28px rgba(245,158,11,0.12);
}

.sla-risk-text{

    color:#f59e0b;

    font-weight:700;
}

.sla-danger-text{

    color:#dc2626;

    font-weight:700;
}

.sla-safe-text{

    color:#16a34a;

    font-weight:700;
}

@keyframes slaDangerPulse{

    0%{

        transform:translateY(0px);

        box-shadow:
            0 0 0 1px rgba(239,68,68,0.08),
            0 10px 24px rgba(239,68,68,0.10);
    }

    50%{

        transform:translateY(-2px);

        box-shadow:
            0 0 0 1px rgba(239,68,68,0.14),
            0 18px 38px rgba(239,68,68,0.18);
    }

    100%{

        transform:translateY(0px);

        box-shadow:
            0 0 0 1px rgba(239,68,68,0.08),
            0 10px 24px rgba(239,68,68,0.10);
    }
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 10px rgba(220,38,38,0.2); }
    50% { box-shadow: 0 0 25px rgba(220,38,38,0.4); }
    100% { box-shadow: 0 0 10px rgba(220,38,38,0.2); }
}
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.content-wrapper > *:not(:last-child) {
    margin-bottom:20px;
}

.row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.app-wrapper{
    min-height:100vh;

    position:relative;

    overflow-x:hidden;

    background:
        radial-gradient(
            circle at top right,
            rgba(37,99,235,0.035),
            transparent 24%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(124,58,237,0.03),
            transparent 28%
        ),
        #f4f7fb;
}


.sla-stats {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.stats-grid{
    display:grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap:16px;

    width:100%;
}

.stat-card{
    min-width:0;
}

#notifDropdown {
    display: none;
    position: absolute;
    right: 20px;
    top: 60px;
    width: 300px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
}

#notifDropdown.active {
    display: block;
}

.actions-grid{
    display:flex;

    flex-wrap:wrap;

    gap:12px;

    width:100%;
}

.action-btn{
    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:12px 18px;

    border-radius:12px;

    background:#2563eb;

    color:#fff;

    font-size:13px;

    font-weight:600;

    transition:all .25s ease;
}

.activity-item{
	min-width:0;
    display:flex;

    gap:12px;

    padding:10px 2px;

    border-bottom:1px solid #eee;

    align-items:center;

    min-height:62px;

    transition:
        transform .28s ease,
        opacity .28s ease,
        background .25s ease;
}

.activity-item strong {
	word-break:break-word;
    font-size:13px;

    font-weight:700;

    color:#0f172a;

    line-height:1.3;
}

.activity-item small {
    font-size:11px;

    color:#94a3b8;

    line-height:1.5;
}

/* =========================================
   DPM LIVE ACTIVITY ENGINE
========================================= */

.activity-feed-live{

    position:relative;

    overflow-anchor:none;
}

.activity-item{

    transition:
        transform .28s ease,
        opacity .28s ease,
        background .25s ease;
}

.activity-item.activity-new{

    animation:
        activityInject .55s cubic-bezier(.22,1,.36,1);
}

@keyframes activityInject{

    0%{
        opacity:0;
        transform:
            translateY(-14px)
            scale(.98);
    }

    60%{
        opacity:1;
        transform:
            translateY(2px)
            scale(1.01);
    }

    100%{
        opacity:1;
        transform:
            translateY(0)
            scale(1);
    }
}

.activity-item:hover{

    background:
        rgba(37,99,235,0.03);

    border-radius:12px;
}

.activity-live-pulse{

    position:relative;

    width:10px;
    height:10px;

    flex-shrink:0;

    border-radius:50%;

    background:#22c55e;

    box-shadow:
        0 0 0 rgba(34,197,94,0.45);

    animation:
        livePulse 1.8s infinite;
}

@keyframes livePulse{

    0%{
        box-shadow:
            0 0 0 0 rgba(34,197,94,0.45);
    }

    70%{
        box-shadow:
            0 0 0 10px rgba(34,197,94,0);
    }

    100%{
        box-shadow:
            0 0 0 0 rgba(34,197,94,0);
    }
}

.avatar{
    width:36px;
    height:36px;

    border-radius:50%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:600;

    position:relative;

    flex-shrink:0;
}


/* =========================================
   DPM TABLET LAYOUT
========================================= */

@media (max-width: 1024px) {

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3,
    .grid-3.equal-height {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 24px;
        gap: 20px;
    }

    .main-content {
        padding: 88px 18px 24px;
    }
}



/* PULSE EFFECT */
.avatar.pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(79,70,229,0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}


@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* 🔥 MICRO INTERACTIONS */
.card small {
    transition: opacity 0.2s ease;
}

.card:hover small {
    opacity: 1;
}

.progress-fill{
    height:100%;

    border-radius:999px;

    transition:
        width .45s ease,
        opacity .25s ease;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.08);
}

	.metric-progress{
    margin-top:8px;
}
	
/* BLUE */
.progress-fill.primary {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

/* ORANGE */
.progress-fill.warning {
    background: linear-gradient(90deg, #ea580c, #f97316);
}

/* GREEN */
.progress-fill.success {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

/* RED */
.progress-fill.danger {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}


.switch {
    position: relative;
    width: 40px;
    height: 20px;
    background: #e5e7eb;
    border-radius: 20px;
    cursor: pointer;
}

.switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.switch.active {
    background: #2563eb;
}

.switch.active::after {
    left: 22px;
}

/* =========================================
   CLEAN MOBILE ENGINE
========================================= */

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
    }

    .sidebar {
        display: none !important;
    }

    .topbar {
        left: 0 !important;

        width: 100% !important;

        padding: 12px 14px !important;
    }

    .main-content {
		min-width:0;
        margin-left: 0 !important;

        width: 100% !important;

        max-width: 100% !important;

        padding: 82px 12px 24px !important;

        overflow-x: hidden !important;
    }

    .grid-4,
    .grid-3,
    .grid-3.equal-height,
    .dashboard-grid,
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-card {
        flex-direction: column;

        align-items: stretch;

        padding: 22px;

        min-height: auto;

        gap: 32px;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-card h1 {
        font-size: 26px;
    }

    .hero-card p {
        font-size: 14px;
    }

    .hero-box {
        width: 100%;

        min-width: 0;

        padding: 20px;
    }

    .hero-box h2 {
        font-size: 28px;
    }

    .card {
        padding: 18px;
    }

    canvas {
        width: 100% !important;

        height: auto !important;
    }
}

/* =========================================
   DPM SAFARI TRUE WIDTH LOCK
========================================= */

html,
body,
.app,
.app-wrapper,
.main-content {
    overflow-x: clip !important;

    max-width: 100% !important;
}

body {
    position: relative;

    left: 0 !important;

    right: 0 !important;
}

.main-content {
    transform: none !important;

    left: auto !important;

    right: auto !important;
}

/* HERO LIVE ICONS */


.hero-box .status{
    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    color:#4ade80;

    font-weight:600;

    font-size:12px;

    margin-top:4px;
}

/* =========================================
   HERO LIVE STATUS ALIGNMENT FIX
========================================= */
.live-status{
    width:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    gap:7px;

    margin-top:8px;

    color:#4ade80;

    font-size:12px;
    font-weight:600;

    line-height:1;

    white-space:nowrap;
}

.live-status i{
    color:#4ade80;

    font-size:12px;

    filter:drop-shadow(0 0 6px rgba(74,222,128,0.8));
}

.hero-box small:first-of-type {

    margin-top: 0;
}

.metric-content{
    display:flex;

    flex-direction:column;

    justify-content:center;

    gap:4px;

    min-height:58px;
}

.metric-label{
    font-size:11px;

    font-weight:600;

    color:#64748b;

    margin-bottom:6px;
}

.metric-value{
    display:flex;

    align-items:center;

    gap:8px;
}

.metric-number{
	word-break:break-word;
    display:block;

    font-size:32px;

    font-weight:800;

    letter-spacing:-2px;

    color:#0f172a;

    line-height:1;

    margin-top:8px;
}

.metric-trend{
    margin-top:6px;

    display:inline-flex;

    align-items:center;

    gap:6px;

    font-size:11px;

    font-weight:700;
}

.metric-trend.up{
    color:#16a34a;
}

.metric-trend.down{
    color:#dc2626;
}
	
/* =========================================
   DPM FINAL PROGRESS FIX
========================================= */
.progress{
    width:100%;
    height:6px;
    background:#e2e8f0;
    border-radius:999px;
    overflow:hidden;
    margin-top:10px;
    position:relative;
}

.progress-fill{
    height:100%;
    border-radius:999px;
    transition:width .5s ease;
    position:relative;
}

.progress-fill.blue{
    background:#2563eb;
}

.progress-fill.orange{
    background:#ea580c;
}

.progress-fill.green{
    background:#16a34a;
}

.progress-fill.red { background:#dc2626; }



/* CLOCK ICON ONLY */
@keyframes clockTick{

    0%{
        transform:rotate(0deg);
    }

    25%{
        transform:rotate(10deg);
    }

    50%{
        transform:rotate(0deg);
    }

    75%{
        transform:rotate(-10deg);
    }

    100%{
        transform:rotate(0deg);
    }
}

/* =========================================
   DPM FINAL HERO LIVE FIX
========================================= */

/* NEVER ANIMATE WHOLE BADGES */
.hero-meta .badge{
    animation:none !important;
}

/* SIGNAL ICON ONLY */
.hero-live-icon{
    color:#4ade80;

    display:inline-block;

    animation:heroPulse 1.4s ease-in-out infinite;
}

/* CLOCK ICON ONLY */
.live-clock-icon{

    animation:
        clockBlink 1.4s ease-in-out infinite;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    transform-origin:center;

    will-change:
        transform,
        opacity;
}

/* GREEN DOT ONLY */
.live-dot{
    width:8px;
    height:8px;

    border-radius:50%;

    background:#22c55e;

    display:inline-block;

    flex-shrink:0;

    animation:liveBlink 1s ease-in-out infinite;

    box-shadow:
        0 0 10px rgba(34,197,94,.8);
}

/* ICON PULSE */
@keyframes heroPulse{

    0%{
        transform:scale(1);
        opacity:1;
    }

    50%{
        transform:scale(1.15);
        opacity:.55;
    }

    100%{
        transform:scale(1);
        opacity:1;
    }
}

/* CLOCK MOVE */


/* DOT BLINK */
@keyframes liveBlink{

    0%{
        opacity:1;
    }

    50%{
        opacity:.25;
    }

    100%{
        opacity:1;
    }
}

/* =========================================
   DPM PHASE 3
========================================= */

.grid-2{
    display:grid;

    grid-template-columns:
        2fr 1fr;

    gap:20px;

    width:100%;
}

.metrics-grid{
    align-items:stretch;
}

.metric-card-large{
    min-height:220px;
}

.response-card{
    min-height:205px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;
}

.compact-chart{
    padding:10px 14px 4px;
}

.compact-chart canvas{
    max-height:220px !important;
}


.response-top{
    display:flex;

    align-items:center;

    gap:16px;
}

.response-label{
    font-size:13px;

    color:#64748b;

    margin-bottom:6px;
}

.response-value{
    font-size:42px;

    font-weight:800;

    line-height:1;

    letter-spacing:-2px;

    color:#0f172a;
}

.response-progress{
    margin-top:auto;

    padding-top:22px;
}

.response-bar{
    height:8px;

    border-radius:999px;

    overflow:hidden;

    background:#e2e8f0;

    margin-bottom:12px;
}

.response-fill{
    width:72%;

    height:100%;

    border-radius:999px;

    background:
        linear-gradient(
            90deg,
            #f97316,
            #fb923c
        );

    box-shadow:
        0 4px 12px rgba(249,115,22,0.3);
}

/* QUICK ACTIONS PREMIUM */
.quick-actions .card{
    position:relative;

    flex-direction:column;

    gap:10px;

    text-align:center;
}

/* ANALYTICS CARDS */
.analytics .card canvas{
    margin-top:6px;
}

/* CONVERSATION CARD FIX */
.conversation-stats{
    display:flex;

    flex-direction:column;

    gap:14px;

    margin-top:18px;
}

.conversation-item{
    display:flex;

    justify-content:space-between;

    align-items:center;

    padding-bottom:10px;

    border-bottom:1px solid #f1f5f9;
}

.conversation-item:last-child{
    border-bottom:none;
}

.conversation-value{
    font-weight:700;

    color:#0f172a;
}

/* TABLET */
@media (max-width: 1024px){

    .grid-2{
        grid-template-columns:1fr;
    }
}

/* =========================================
   DPM LIVE NOTIFICATION ENGINE
========================================= */

.notif-item{

    padding:12px 14px;

    border-bottom:
        1px solid rgba(226,232,240,0.7);

    transition:
        background .2s ease,
        transform .2s ease;

    animation:
        notifFade .25s ease;
}

.notif-item:hover{

    background:
        rgba(37,99,235,0.04);
}

.notif-title{

    font-size:13px;

    font-weight:600;

    color:#0f172a;

    margin-bottom:4px;
}

.notif-time{

    font-size:11px;

    color:#94a3b8;
}

.notif-empty{

    padding:18px;

    text-align:center;

    font-size:12px;

    color:#94a3b8;
}

.notif-new{

    background:
        linear-gradient(
            90deg,
            rgba(37,99,235,0.08),
            transparent
        );

    border-left:
        3px solid #2563eb;
}

@keyframes notifFade{

    from{
        opacity:0;
        transform:translateY(-6px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================================
   DPM SKELETON LOADING ENGINE
========================================= */

.skeleton{
    position:relative;

    overflow:hidden;

    background:
        linear-gradient(
            90deg,
            #e2e8f0 25%,
            #f8fafc 50%,
            #e2e8f0 75%
        );

    background-size:200% 100%;

    animation:
        skeletonShimmer 1.4s infinite linear;

    border-radius:12px;
}

.skeleton-text{
    height:14px;

    width:100%;

    margin-bottom:10px;
}

.skeleton-title{
    height:22px;

    width:55%;

    margin-bottom:14px;
}

.skeleton-circle{
    width:58px;
    height:58px;

    border-radius:50%;
}

.skeleton-button{
    height:42px;

    width:100%;

    border-radius:14px;
}

.skeleton-chart{
    width:100%;

    height:220px;

    border-radius:22px;
}

.skeleton-card{
    min-height:160px;
}

.loading-state{
    pointer-events:none;

    user-select:none;
}

.loading-state .card-content{
    opacity:0;
}

.fade-in-loaded{
    animation:
        fadeLoaded .35s ease;
}

@keyframes skeletonShimmer{

    0%{
        background-position:
            200% 0;
    }

    100%{
        background-position:
            -200% 0;
    }
}

@keyframes fadeLoaded{

    from{
        opacity:0;
        transform:translateY(6px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================================
   DPM PHASE 4 — PREMIUM ANIMATIONS
========================================= */

@keyframes heroGradientMove{

    0%{
        background-position:0% 50%;
    }

    50%{
        background-position:100% 50%;
    }

    100%{
        background-position:0% 50%;
    }
}

/* PREMIUM FLOATING GLOW */
.card::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:inherit;

    background:
        radial-gradient(
            circle at top right,
            rgba(59,130,246,0.03),
            transparent 35%
        );

    opacity:0;

    transition:opacity .2s ease;

    pointer-events:none;
}

.card:hover::before{
    opacity:55;
}

/* SOFT LIVE EDGE */
.card::after{

    content:"";

    position:absolute;

    inset:0;

    border-radius:inherit;

    padding:1px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.5),
            rgba(255,255,255,0),
            rgba(37,99,235,0.08)
        );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite:xor;

    mask-composite:exclude;

    pointer-events:none;
}

/* PREMIUM SECTION DEPTH */
.section{

    position:relative;
}

.section::before{

    content:"";

    position:absolute;

    top:-10px;
    left:-10px;
    right:-10px;
    bottom:-10px;

    border-radius:28px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.08),
            transparent
        );

    pointer-events:none;

    opacity:.6;
}

/* KPI GLOW */
.metric-number{

    text-shadow:
        0 0 20px rgba(37,99,235,0.08);
}

/* HERO LIGHT EFFECT */
.hero-card .mesh-light{

    animation:
        heroMeshMove 18s ease-in-out infinite alternate;
}

@keyframes heroMeshMove{

    0%{
        transform:
            translateX(0px)
            translateY(0px);
    }

    100%{
        transform:
            translateX(-12px)
            translateY(10px);
    }
}

/* CHART PREMIUM LOOK */
.chart-box{

    backdrop-filter:blur(10px);

    -webkit-backdrop-filter:blur(10px);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.7),
            rgba(248,250,252,0.55)
        );
}

/* LIVE STATUS GLOW */
.live-dot{

    box-shadow:
        0 0 12px rgba(34,197,94,0.9),
        0 0 24px rgba(34,197,94,0.35);
}

/* PREMIUM QUICK ACTIONS */
.quick-actions .card{

    overflow:hidden;
}

.quick-actions .card::after{

    content:"";

    position:absolute;

    inset:auto -20% -80% auto;

    width:140px;
    height:140px;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(37,99,235,0.12),
            transparent 70%
        );

    transition:
        transform .4s ease;

    pointer-events:none;
}

.quick-actions .card:hover::after{

    transform:
        scale(1.2);
}

/* =========================================
   DPM PHASE 5 — ELITE SAAS ENGINE
========================================= */

/* AMBIENT FLOATING LIGHT */
body::before{

    content:"";

    position:fixed;

    top:-200px;
    right:-120px;

    width:520px;
    height:520px;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(59,130,246,0.12),
            transparent 70%
        );

    filter:blur(60px);

    pointer-events:none;

    z-index:0;

    opacity:.45;
}

body::after{

    content:"";

    position:fixed;

    bottom:-240px;
    left:-160px;

    width:520px;
    height:520px;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(124,58,237,0.12),
            transparent 70%
        );

    filter:blur(70px);

    pointer-events:none;

    z-index:0;

    opacity:.38;
}

@keyframes ambientMoveOne{

    0%{
        transform:
            translateX(0px)
            translateY(0px);
    }

    100%{
        transform:
            translateX(-40px)
            translateY(30px);
    }
}

@keyframes ambientMoveTwo{

    0%{
        transform:
            translateX(0px)
            translateY(0px);
    }

    100%{
        transform:
            translateX(50px)
            translateY(-20px);
    }
}

/* EXECUTIVE METRIC DEPTH */
.metric-card{

    position:relative;

    overflow:hidden;
}

.metric-card::before{

    content:"";

    position:absolute;

    top:-40px;
    right:-40px;

    width:120px;
    height:120px;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(37,99,235,0.12),
            transparent 70%
        );

    pointer-events:none;
}

/* ULTRA PREMIUM CARD SHIMMER */
.card:hover{

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

/* SOFT GRID ATMOSPHERE */
.dashboard-shell{

    position:relative;
}

.dashboard-shell::before{

    content:"";

    position:absolute;

    inset:0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.015) 1px,
            transparent 1px
        );

    background-size:32px 32px;

    pointer-events:none;

    opacity:.25;
}

/* PREMIUM CHART HOVER */
.chart-box:hover{

    transform:
        translateY(-1px);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        0 10px 24px rgba(15,23,42,0.06);
}

/* EXECUTIVE TYPOGRAPHY */
.section-title{

    text-shadow:
        0 1px 0 rgba(255,255,255,0.5);
}

/* LIVE HERO ATMOSPHERE */
.hero-card{

    isolation:isolate;
}

.hero-card::before{

    opacity:.55;
}

.hero-card::after{

    opacity:.4;
}

@keyframes heroFloatOne{

    0%{
        transform:
            translateX(0px)
            translateY(0px);
    }

    100%{
        transform:
            translateX(-18px)
            translateY(12px);
    }
}

@keyframes heroFloatTwo{

    0%{
        transform:
            translateX(0px)
            translateY(0px);
    }

    100%{
        transform:
            translateX(20px)
            translateY(-10px);
    }
}

/* PREMIUM SIDEBAR DEPTH */
.sidebar{

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);
}

/* EXECUTIVE TOPBAR */
.topbar{

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);
}

/* =========================================
   DPM ENTERPRISE NORMALIZATION
========================================= */

.dashboard-shell{
    gap:24px;
}

.card-header{
    margin-bottom:14px;
}

.card-header .title{
    font-size:14px;
}

.card-header .subtitle{
    font-size:12px;
}

.metric-label{
    font-size:12px;
}

.metric-number{
    font-size:38px;

    letter-spacing:-2.6px;
}

.section-subtitle{
    margin-top:4px;

    margin-bottom:18px;
}

.card canvas{
    max-height:260px !important;
}

.analytics .card{
    min-height:420px;
}

.quick-actions .card{
    min-height:92px;
}

.sidebar{
    padding-top:18px;
}

.hero-meta{
    margin-top:18px;
}

.topbar-left{
    gap:4px;
}

.chart-box{
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.9),
            rgba(248,250,252,0.7)
        );
}

/* =========================================
   DPM EXECUTIVE SAAS REFINEMENT
========================================= */

.card{
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.96),
            rgba(255,255,255,0.92)
        );
}

.chart-box{
    border:
        1px solid rgba(226,232,240,0.72);
}

.section-title{
    font-weight:700;

    letter-spacing:-0.5px;
}

.section-subtitle{
    color:#9ca3af;
}

.metric-number{
    font-weight:700;
}

.metric-label{
    text-transform:uppercase;

    letter-spacing:.6px;

    font-size:11px;
}

.hero-card p{
    opacity:.82;
}

.hero-label{
    background:
        rgba(255,255,255,0.12);

    border:
        1px solid rgba(255,255,255,0.08);
}

.card-header{
    border-bottom:
        1px solid rgba(241,245,249,0.9);
}

.sidebar{
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.985),
            rgba(250,250,252,0.97)
        );
}

.topbar{
    background:
        rgba(255,255,255,0.92);
}

.card:hover{
    border-color:
        rgba(226,232,240,0.9);
}


/* =========================================
   DPM AI ENTERPRISE MODULES
========================================= */

.grid-2{
    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:20px;

    width:100%;
}

.ai-system-grid{
    align-items:stretch;
}

.ai-card,
.ai-system-card{
    min-height:340px;
}

.ai-live-status{
    margin-left:auto;

    display:flex;

    align-items:center;

    gap:8px;

    font-size:12px;

    font-weight:700;

    color:#16a34a;
}

.ai-stats-grid{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:16px;

    margin-top:18px;
}

.ai-stat{
    padding:18px;

    border-radius:18px;

    background:
        linear-gradient(
            180deg,
            rgba(248,250,252,0.95),
            rgba(241,245,249,0.92)
        );

    border:
        1px solid rgba(226,232,240,0.8);

    text-align:center;
}

.ai-stat h3{
    font-size:34px;

    margin-bottom:6px;

    color:#0f172a;
}

.ai-actions{
    display:flex;

    flex-direction:column;

    gap:10px;

    margin-top:18px;
}

.ai-btn{
    height:44px;

    border:none;

    border-radius:14px;

    background:#f1f5f9;

    font-weight:700;

    font-size:13px;

    cursor:pointer;

    transition:all .25s ease;
}

.ai-btn:hover{
    transform:translateY(-1px);
}

.ai-btn-primary{
    background:#2563eb;

    color:#fff;
}

.ai-footer{
    margin-top:16px;

    padding:14px;

    border-radius:14px;

    background:
        rgba(34,197,94,0.08);

    color:#15803d;

    font-size:13px;

    font-weight:600;
}

.ai-toggle-row{
    margin-top:18px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:13px;
}

.ai-switch{
    width:52px;

    height:28px;

    border-radius:999px;

    background:#cbd5e1;

    position:relative;
}

.ai-switch::after{
    content:"";

    position:absolute;

    top:4px;
    left:4px;

    width:20px;
    height:20px;

    border-radius:50%;

    background:#fff;

    transition:all .25s ease;
}

.ai-switch.active{
    background:#2563eb;
}

.ai-switch.active::after{
    left:28px;
}

.system-grid{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:14px;

    margin-top:18px;
}

.system-box{
    padding:16px;

    border-radius:16px;

    background:
        linear-gradient(
            180deg,
            rgba(248,250,252,0.95),
            rgba(241,245,249,0.92)
        );

    border:
        1px solid rgba(226,232,240,0.8);
}

.system-status-row{
    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-top:8px;
}

.status-green{
    width:10px;
    height:10px;

    border-radius:50%;

    background:#22c55e;
}

.system-box p{
    margin-top:6px;

    font-size:12px;

    color:#94a3b8;
}

.mini-progress{
    width:100%;

    height:6px;

    border-radius:999px;

    background:#e2e8f0;

    overflow:hidden;

    margin-top:12px;
}

.mini-progress-fill{
    width:10%;
    height:100%;

    background:#2563eb;
}

.feature-tags{
    margin-top:18px;

    display:flex;

    flex-wrap:wrap;

    gap:10px;
}

.feature-tags span{
    padding:8px 12px;

    border-radius:999px;

    background:#f0fdf4;

    color:#15803d;

    font-size:12px;

    font-weight:700;
}

@media(max-width:768px){

    .grid-2{
        grid-template-columns:1fr;
    }

    .system-grid{
        grid-template-columns:1fr;
    }

    .ai-stats-grid{
        grid-template-columns:1fr;
    }
}

/* =========================================
   DPM ENTERPRISE COMPACT ALIGNMENT
========================================= */

/* =========================
   GLOBAL SECTION SPACING
========================= */

.section{
    margin-bottom:20px !important;
}

/* =========================
   CARD COMPACT SYSTEM
========================= */

.card{
    padding:16px !important;

    border-radius:14px !important;
}

/* =========================
   HERO SECTION
========================= */

.hero-card{
    min-height:120px !important;

    padding:22px 24px !important;

    border-radius:20px !important;
}

.hero-card h1{
    font-size:52px !important;

    letter-spacing:-2px !important;
}

.hero-card p{
    font-size:14px !important;
}

.hero-box{
    width:98px !important;

    min-height:96px !important;
}

/* =========================
   TOP STATS
========================= */

.grid-4 > .card{
    min-height:110px !important;
}

/* =========================
   SECOND ROW
========================= */

.grid-3.equal-height > .card{
    min-height:240px !important;
}

/* =========================
   CHART CONTAINERS
========================= */

.chart-box{
    min-height:180px !important;

    padding:4px !important;
}

.chart-box canvas{
    max-height:180px !important;
}

/* =========================
   AI SECTION
========================= */

.ai-card,
.ai-system-card{
    min-height:220px !important;
}

.ai-stats-grid{
    gap:10px !important;

    margin-top:12px !important;
}

.ai-stat{
    padding:12px !important;

    border-radius:12px !important;
}

.ai-stat h3{
    font-size:26px !important;
}

.ai-actions{
    margin-top:12px !important;

    gap:8px !important;
}

.ai-btn{
    height:38px !important;

    border-radius:10px !important;

    font-size:12px !important;
}

.ai-footer{
    margin-top:10px !important;

    padding:10px !important;

    font-size:12px !important;
}

.ai-toggle-row{
    margin-top:10px !important;
}

.system-grid{
    gap:10px !important;

    margin-top:12px !important;
}

.system-box{
    padding:12px !important;

    border-radius:12px !important;
}

.feature-tags{
    margin-top:12px !important;

    gap:8px !important;
}

.feature-tags span{
    padding:6px 10px !important;

    font-size:11px !important;
}

/* =========================
   QUICK ACTIONS
========================= */

.quick-actions .card{
    min-height:72px !important;

    padding:12px !important;
}

.quick-actions .card span{
    font-size:12px !important;
}

/* =========================
   ANALYTICS
========================= */

.analytics .card{
    min-height:320px !important;
}

.analytics canvas{
    max-height:220px !important;
}

/* =========================
   PERFORMANCE
========================= */

.metrics-grid .card{
    min-height:220px !important;
}

.metric-card-large{
    min-height:220px !important;
}

.response-card{
    min-height:220px !important;
}

/* =========================
   TYPOGRAPHY
========================= */

.card-header .title{
    font-size:13px !important;
}

.card-header .subtitle{
    font-size:11px !important;
}

.metric-number{
    font-size:38px !important;
}

/* =========================
   REMOVE EXCESS WHITESPACE
========================= */

.content-wrapper > *:not(:last-child){
    margin-bottom:16px !important;
}