/* CallNexus CRM - Compiled Production Theme */

/* =========================================
   Base Resets & Variables Applied
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, #0b1120 0, #020617 45%, #000000 100%);
    color: #e5e7eb;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* =========================================
   Utility Classes
   ========================================= */
.cn-text-muted {
    color: #9ca3af;
}

.cn-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cn-badge-pill {
    border-radius: 999px;
}

.cn-badge-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
}

.cn-badge--primary {
    background: rgba(37, 99, 235, 0.14);
    color: #e5edff;
}

.cn-badge--success {
    background: rgba(34, 197, 94, 0.14);
    color: #dcfce7;
}

.cn-badge--danger {
    background: rgba(239, 68, 68, 0.14);
    color: #fee2e2;
}

.cn-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 0.4rem;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.75rem;
    color: #9ca3af;
}

/* =========================================
   Auth Layout & Brand Logo
   ========================================= */
.cn-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    background: radial-gradient(circle at top left, #0f172a 0, #020617 45%, #000000 100%);
    color: #e5e7eb;
}

@media (max-width: 880px) {
    .cn-auth-shell {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 0.8fr) auto;
    }
}

.cn-auth-left {
    position: relative;
    padding: clamp(2.5rem, 3vw, 3.5rem);
    overflow: hidden;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 880px) {
    .cn-auth-left {
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    }
}

.cn-logo-mark {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 1.5rem;
    background: radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.7), transparent 55%), radial-gradient(circle at 100% 100%, rgba(52, 211, 153, 0.8), transparent 58%), linear-gradient(145deg, #1d1b4c, #020617 60%, #14532d);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.85), 0 0 0 1px rgba(148, 163, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cn-logo-favicon {
    width: 52px;
    height: 52px;
    border-radius: 1.1rem;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 16px 38px rgba(15, 23, 42, 0.95);
    animation: cnLogoPulse 2.6s ease-in-out infinite;
}

.cn-call-icon {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    background: radial-gradient(circle at 30% 0, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
    border: 2px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 0 22px rgba(37, 99, 235, 0.9);
    z-index: 3;
    animation: cnCallFloat 3.2s ease-in-out infinite;
}

.cn-call-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.7);
    opacity: 0.9;
    animation: cnCallPulse 1.9s ease-out infinite;
}

.cn-call-icon-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cn-call-icon svg {
    width: 20px;
    height: 20px;
}

.cn-logo-wave {
    position: absolute;
    inset: 15%;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.16), rgba(248, 250, 252, 0.02));
    mask-image: radial-gradient(circle at 0 0, black 20%, transparent 55%);
    mix-blend-mode: screen;
    animation: cnWave 5.5s ease-in-out infinite alternate;
}

.cn-logo-orbit {
    position: absolute;
    width: 118%;
    height: 118%;
    border-radius: 999px;
    border: 1px dashed rgba(148, 163, 184, 0.32);
    animation: cnOrbit 18s linear infinite;
}

.cn-logo-orbit::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 9%;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: radial-gradient(circle, #e5e7eb 0, transparent 65%);
}

.cn-logo-phone {
    position: relative;
    width: 52%;
    height: 52%;
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85)), radial-gradient(circle at 10% 0, rgba(129, 230, 217, 0.35), transparent 55%);
    display: flex;
    flex-direction: column;
    padding: 0.18rem 0.22rem;
}

.cn-logo-phone-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    font-size: 0.48rem;
    color: #9ca3af;
}

.cn-logo-phone-bars {
    margin-top: 0.18rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.08rem;
}

.cn-logo-phone-bar {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(to top, rgba(37, 99, 235, 0.9), rgba(125, 211, 252, 0.7));
    transform-origin: bottom;
    animation: cnLevels 1.4s ease-in-out infinite alternate;
}

.cn-logo-phone-bar:nth-child(2) { animation-delay: 0.18s; }
.cn-logo-phone-bar:nth-child(3) { animation-delay: 0.32s; }
.cn-logo-phone-bar:nth-child(4) { animation-delay: 0.46s; }

.cn-logo-phone-footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.cn-logo-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: radial-gradient(circle, #22c55e 0, transparent 65%);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.cn-logo-dot:nth-child(2) {
    opacity: 0.6;
}

.cn-logo-glow-ring {
    position: absolute;
    inset: -30%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 70%);
    filter: blur(12px);
    opacity: 0.8;
    mix-blend-mode: screen;
}

/* =========================================
   Animations
   ========================================= */
@keyframes cnWave {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(-6px, 4px, 0) rotate(4deg); }
}

@keyframes cnOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes cnLevels {
    0% { transform: scaleY(0.45); }
    100% { transform: scaleY(1); }
}

@keyframes cnCallPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes cnCallFloat {
    0% { transform: translate3d(0, 0, 0) rotate(-6deg); }
    50% { transform: translate3d(0, -3px, 0) rotate(0deg); }
    100% { transform: translate3d(0, 0, 0) rotate(-6deg); }
}

@keyframes cnLogoPulse {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
    50% { transform: translate3d(0, -2px, 0) scale(1.03); opacity: 1; }
    100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

/* =========================================
   Auth Pages
   ========================================= */
.cn-auth-brand {
    margin-top: 2.4rem;
}

.cn-auth-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.7rem;
}

.cn-auth-title {
    font-size: clamp(2.1rem, 2.5vw, 2.6rem);
    font-weight: 650;
    letter-spacing: -0.03em;
}

.cn-auth-subtitle {
    margin-top: 0.85rem;
    max-width: 26rem;
    color: #9ca3af;
    font-size: 0.95rem;
}

.cn-auth-gradient-pill {
    margin-top: 2.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.35), transparent 55%), radial-gradient(circle at 100% 100%, rgba(52, 211, 153, 0.4), transparent 58%);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.8rem;
}

.cn-auth-metrics {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    gap: 1.5rem;
}

.cn-auth-metric-label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
}

.cn-auth-metric-value {
    margin-top: 0.15rem;
    font-size: 1.6rem;
    font-weight: 650;
}

.cn-auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2.5rem, 4vw, 3.5rem);
}

.cn-auth-card {
    width: 100%;
    max-width: 430px;
    border-radius: 1.6rem;
    background: radial-gradient(circle at 0 -20%, rgba(56, 189, 248, 0.18), transparent 60%), radial-gradient(circle at 100% 120%, rgba(59, 130, 246, 0.35), transparent 60%), rgba(15, 23, 42, 0.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95), 0 0 0 1px rgba(148, 163, 184, 0.25);
    padding: 1.9rem 2.1rem 2.1rem;
}

.cn-auth-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.cn-auth-card-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.cn-auth-chip {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
}

.cn-auth-form {
    margin-top: 0.6rem;
}

.cn-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1rem;
}

.cn-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.cn-label {
    font-size: 0.82rem;
    font-weight: 500;
}

.cn-input-shell {
    position: relative;
}

.cn-input {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    font-size: 0.86rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.12s ease;
}

.cn-input:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.9);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6), 0 0 0 8px rgba(37, 99, 235, 0.22);
    background: rgba(15, 23, 42, 0.98);
}

.cn-input::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

.cn-checkbox-row {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #9ca3af;
}

.cn-checkbox {
    width: 15px;
    height: 15px;
    border-radius: 0.4rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
}

.cn-link {
    color: #93c5fd;
}

.cn-primary-btn {
    margin-top: 1.5rem;
    width: 100%;
    border: none;
    border-radius: 0.9rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 550;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    background-image: linear-gradient(to right, #1d4ed8, #0ea5e9);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.56), 0 0 0 1px rgba(129, 140, 248, 0.72);
    cursor: pointer;
    transform: translateY(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.cn-primary-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.7), 0 0 0 1px rgba(191, 219, 254, 0.9);
}

.cn-primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.7), 0 0 0 1px rgba(129, 140, 248, 0.9);
}

.cn-auth-footer {
    margin-top: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #9ca3af;
}

.cn-auth-footer-links {
    display: flex;
    gap: 0.9rem;
}

/* =========================================
   Main App Layout & Sidebar
   ========================================= */
.cn-app-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: radial-gradient(circle at top left, #0b1120 0, #020617 45%, #000000 100%);
    color: #e5e7eb;
}

@media (max-width: 960px) {
    .cn-app-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
    }
}

.cn-sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.cn-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.cn-sidebar-logo {
    width: 34px;
    height: 34px;
    border-radius: 0.9rem;
    background: radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.9), transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.cn-sidebar-title {
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cn-sidebar-title span {
    color: #93c5fd;
}

.cn-sidebar-plan {
    margin-top: 0.3rem;
    font-size: 0.7rem;
    color: #9ca3af;
}

.cn-sidebar-section-label {
    margin-top: 1.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
}

.cn-nav-list {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
}

.cn-nav-item {
    border-radius: 0.9rem;
    padding: 0.58rem 0.72rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.86rem;
    color: #9ca3af;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.cn-nav-item:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.35);
    color: #e5e7eb;
}

.cn-nav-item--active {
    background: linear-gradient(to right, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.25));
    border-color: rgba(59, 130, 246, 0.85);
    color: #e5edff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}

.cn-nav-icon {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.6rem;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
}

.cn-sidebar-footer {
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.cn-sidebar-user {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    font-size: 0.78rem;
}

.cn-sidebar-user-name {
    font-weight: 500;
}

.cn-sidebar-user-role {
    color: #9ca3af;
}

.cn-sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, rgba(96, 165, 250, 0.8), transparent 55%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
}

.cn-sidebar-logout {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* =========================================
   Topbar & Main Content Area
   ========================================= */
.cn-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cn-topbar {
    height: 64px;
    padding: 0 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
    background: linear-gradient(to right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(22px);
}

.cn-topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cn-topbar-title {
    font-size: 1.02rem;
    font-weight: 550;
}

.cn-topbar-breadcrumb {
    font-size: 0.8rem;
    color: #9ca3af;
}

.cn-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cn-pill {
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.72rem;
    color: #9ca3af;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.cn-pill-strong {
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.72rem;
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(22, 163, 74, 0.18);
}

.cn-main-body {
    padding: 1.4rem 1.6rem 1.6rem;
}

@media (max-width: 720px) {
    .cn-main-body {
        padding: 1.1rem 1rem 1.4rem;
    }
}

.cn-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.1rem;
}

@media (max-width: 960px) {
    .cn-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .cn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================
   Cards, Tables, & Components
   ========================================= */
.cn-card {
    border-radius: 1.15rem;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), #020617 58%);
    border: 1px solid rgba(15, 23, 42, 0.95);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.95), 0 0 0 1px rgba(15, 23, 42, 0.98);
    padding: 1.1rem 1.15rem 1.2rem;
}

.cn-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.cn-card-title {
    font-size: 0.88rem;
    font-weight: 500;
}

.cn-stat-value {
    font-size: 1.6rem;
    font-weight: 650;
}

.cn-stat-sub {
    font-size: 0.78rem;
    color: #9ca3af;
}

.cn-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.6rem;
    font-size: 0.78rem;
}

.cn-table th,
.cn-table td {
    padding: 0.55rem 0.5rem;
    text-align: left;
}

.cn-table thead th {
    font-weight: 500;
    color: #9ca3af;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    font-size: 0.72rem;
}

.cn-table tbody tr {
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.cn-table tbody tr:last-child {
    border-bottom: none;
}

/* =========================================
   Status Chips & Filters
   ========================================= */
.cn-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
}

.cn-status-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
}

.cn-status--accepted {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

.cn-status--accepted .cn-status-dot {
    background: #22c55e;
}

.cn-status--pending {
    background: rgba(234, 179, 8, 0.18);
    color: #fef9c3;
}

.cn-status--pending .cn-status-dot {
    background: #eab308;
}

.cn-status--rejected {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.cn-status--rejected .cn-status-dot {
    background: #ef4444;
}

.cn-filter-row {
    margin-bottom: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.75rem;
}

.cn-filter-chip {
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #9ca3af;
}

.cn-filter-chip--active {
    border-color: rgba(59, 130, 246, 0.8);
    color: #e5edff;
    background: rgba(37, 99, 235, 0.25);
}

.cn-player-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    cursor: pointer;
    font-size: 0.75rem;
}

.cn-pill-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.cn-actions-row {
    display: flex;
    gap: 0.35rem;
}

.cn-chip-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.96);
    padding: 0.32rem 1.1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.cn-chip-btn--accent {
    border-color: rgba(34, 197, 94, 0.9);
    color: #bbf7d0;
}

.cn-chip-btn--danger {
    border-color: rgba(239, 68, 68, 0.9);
    color: #fecaca;
}

.cn-note-pill {
    max-width: 220px;
    padding: 0.2rem 0.45rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(55, 65, 81, 0.85);
    background: rgba(15, 23, 42, 0.9);
    color: #9ca3af;
}

/* =========================================
   Detail Layouts
   ========================================= */
.cn-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.1fr);
    gap: 1.1rem;
}

@media (max-width: 960px) {
    .cn-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cn-detail-section-title {
    font-size: 0.86rem;
    font-weight: 500;
}

.cn-detail-meta {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    font-size: 0.78rem;
}

.cn-detail-label {
    color: #9ca3af;
    font-size: 0.76rem;
}

.cn-detail-value {
    margin-top: 0.15rem;
}

.cn-notes-textarea {
    width: 100%;
    min-height: 120px;
    margin-top: 0.6rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
    padding: 0.7rem 0.9rem;
    font-size: 0.8rem;
    resize: vertical;
}

.cn-notes-textarea::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

.cn-tabs {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.cn-tab-pill {
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.72rem;
    color: #9ca3af;
}

.cn-tab-pill--active {
    color: #e5edff;
    background: linear-gradient(to right, rgba(37, 99, 235, 0.9), rgba(56, 189, 248, 0.85));
}

.cn-empty-state {
    padding: 1.3rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px dashed rgba(55, 65, 81, 0.9);
    font-size: 0.8rem;
    color: #9ca3af;
}

.cn-sidebar-header{
        margin: 19px;
}



/*new css */

/* Buttons */
.btn-cancel {
    border: none;
    border-radius: 0.9rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 550;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #6b7280;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background-color: #4b5563;
}


/* Primary button alignment */
.cn-primary-btn {
    width: auto;
    padding: 0.75rem 2rem;
}

/* Responsive Fix */
@media (max-width: 768px) {

    .footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cancel,
    .cn-primary-btn {
        width: 100%;
        justify-content: center;
    }

    .access-table th,
    .access-table td {
        padding: 0.8rem 0.6rem;
        font-size: 0.8rem;
    }

    .access-card {
        border-radius: 0.8rem;
        margin-top: 0.5rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {

    .access-table th {
        font-size: 0.7rem;
    }

    .access-table td {
        font-size: 0.75rem;
    }

    .footer-actions {
        padding: 1rem;
    }
}

/*personal css */

/* ===============================
   FINAL RESPONSIVE (FIXED)
   =============================== */

/* Sidebar stays dark gradient */
.cn-sidebar {
    width: 260px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), #020617 58%);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

/* Main should NOT be white */
.cn-main {
    flex: 1;
    background: transparent;
}

/* Topbar glass effect */
.cn-topbar {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

/* Menu button */
.cn-menu-btn {
    display: none;
    font-size: 20px;
    margin-right: 10px;
    background: transparent;
    border: none;
    color: #e5e7eb;
    cursor: pointer;
}

/* Logout button */
.cn-logout-btn {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #ef4444;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

.cn-logout-btn:hover {
    background: rgba(239,68,68,0.2);
}

/* Overlay */
.cn-overlay {
    display: none;
}

/* MOBILE */
@media (max-width: 992px) {

    .cn-menu-btn {
        display: block;
    }

    .cn-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100%;
        z-index: 999;
    }

    .cn-sidebar.active {
        left: 0;
    }

    .cn-overlay {
        display: none;
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }

    .cn-overlay.active {
        display: block;
    }
}
.cn-sidebar {
    padding: 1rem;
}
.cn-nav-item--active {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {

    .cn-table thead {
        display: none;
    }

    .cn-table,
    .cn-table tbody,
    .cn-table tr,
    .cn-table td {
        display: block;
        width: 100%;
    }

    .cn-table tr {
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 0.9rem;
        background: rgba(15, 23, 42, 0.9);
        border: 1px solid rgba(148, 163, 184, 0.2);
    }

    .cn-table td {
        text-align: right;
        padding: 0.5rem 0;
        position: relative;
        font-size: 0.8rem;
        border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
    }

    .cn-table td:last-child {
        border-bottom: none;
    }

    .cn-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        font-weight: 600;
        color: #9ca3af;
        font-size: 0.72rem;
    }

    .cn-actions-row {
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }
}
/* Column sizing */
.cn-table-access .col-select {
    width: 10%;
    text-align: center;
}

.cn-table-access .col-name {
    width: 40%;
}

.cn-table-access .col-location {
    width: 30%;
}

.cn-table-access .col-status {
    width: 20%;
    text-align: right;
}
/* Only apply to tables that actually have actions */
/*.cn-table.has-actions td:last-child::before {*/
/*    content: "Actions";*/
/*}*/
@media (max-width: 768px) {

    .cn-table-access td {
        text-align: right;
        padding-left: 50%;
    }

    .cn-table-access td::before {
        left: 0;
        width: 45%;
    }

    /* checkbox center fix */
    .cn-table-access .col-select {
        text-align: left;
    }

    /* status left align for readability */
    .cn-table-access .col-status {
        text-align: left;
    }
}
.cn-strong {
    font-weight: 600;
}

.cn-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.footer-actions {
    float: inline-end;
}




/*pagination */
/* 1. Reset and Center */
.pg-wrapper {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

/* 2. Hide the "Showing X of Y" text on mobile to save space */
.pg-nav p {
    display: none; 
}

/* 3. The List Layout */
.pg-nav ul.pagination {
    display: flex;
    flex-wrap: wrap; /* CRITICAL: Allows buttons to wrap on small screens */
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

/* 4. The Button Styling */
.pg-nav .page-item .page-link,
.pg-nav .page-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: #1a1e2e; /* Matches your dark theme */
    border: 1px solid #2d3748;
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: 0.2s;
}

/* 5. Active State */
.pg-nav .page-item.active .page-link {
    background: #3182ce; /* Blue highlight */
    border-color: #3182ce;
    color: white;
}

/* 6. Hover State */
.pg-nav .page-item:not(.active):hover .page-link {
    background: #2d3748;
    border-color: #4a5568;
}

/* 7. FIX THE MASSIVE ICONS */
.pg-nav svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor;
}

/* 8. MOBILE OPTIMIZATION */
@media (max-width: 480px) {
    .pg-nav .page-item .page-link,
    .pg-nav .page-item span {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
        padding: 0 5px;
    }
    
    /* Hide specific numbers if the list is too long on tiny screens */
    .pg-nav .page-item:not(.active):not(:first-child):not(:last-child):not(.disabled) {
        /* Optional: hide middle numbers on very small screens if preferred */
    }
}

.cn-filter-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* Mobile fix */
@media (max-width: 600px) {
    .cn-filter-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .cn-filter-form {
        width: 100%;
    }

    .cn-filter-form input {
        width: 100%;
    }
}

form.cn-filter-form {
    margin-bottom: 19px;
}