body {
    background:#f4f6f9;
    font-family: math;
}

/* Header */
.header {
    height:60px;
    background:#1e293b;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
}

/* Layout */
.wrapper { display:flex; }

/* Sidebar */
.sidebar {
    width:220px;
    min-height:calc(100vh - 60px);
    background:#111827;
    transition: all 0.3s ease;
}

.sidebar.collapsed { width:70px; }

.sidebar a {
    display:flex;
    align-items:center;
    gap:10px;
    color:#cbd5e1;
    padding:12px 15px;
    text-decoration:none;
    position:relative;
}

.sidebar a i { font-size:18px; }

.sidebar a span { transition:0.2s; }
.sidebar.collapsed a span { display:none; }

/* Active highlight */
.sidebar a.active {
    background:#1f2937;
    color:#fff;
}

.sidebar a.active::before {
    content:"";
    position:absolute;
    left:0;
    top:0;
    height:100%;
    width:4px;
    background:#3b82f6;
}

.sidebar a:hover { background:#1f2937; }

/* Content */
.content {
    flex:1;
    padding:20px;
    transition: all 0.3s ease;
}

.content.collapsed { margin-left: -150px; }

/* Cards */
.card { border:none; border-radius:10px; }
.stat-card { padding:15px; border-radius:10px; color:#fff; }

.bg-blue{background:#3b82f6}
.bg-green{background:#10b981}
.bg-orange{background:#f59e0b}
.bg-red{background:#ef4444}

/* Mobile */
@media(max-width:768px){
    .wrapper{flex-direction:column}
    .sidebar{
        width:100%;
        display:flex;
        overflow-x:auto;
    }
    .sidebar a{
        flex:1;
        justify-content:center;
        font-size:12px;
    }
}

.login-card {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.brand-section {
    background: #1e293b;
    color: #fff;
    border-radius: 12px 0 0 12px;
}

.form-section {
    border-radius: 0 12px 12px 0;
}

.input-group-text {
    background: #f1f5f9;
    border: none;
}

.form-control {
    border-left: none;
}

@media(max-width:768px){
    .brand-section{
        display:none;
    }
    .form-section{
        border-radius:12px;
    }
}

/* Animation */
.login-card, .form-section {
    animation: fadeSlide 0.6s ease;
}

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

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.topbar {
    gap: 10px;
}

/* Keep everything in single line */
.flex-nowrap {
    flex-wrap: nowrap !important;
}

/* Search width */
.search-box, .user-filter {
    width: 260px;
    min-width: 220px;
}

/* Pills */
.pills-nowrap {
    white-space: nowrap;
}

.status-pill {
    padding: 6px 14px;
    border-radius: 20px;
    background: #f1f3f5;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.status-pill.active {
    background: #0d6efd;
    color: #fff;
}

/* Mobile fix → horizontal scroll instead of breaking */
@media (max-width: 768px) {
    .topbar {
        overflow-x: auto;
    }
}

.ck-editor__editable {
    min-height: 200px;
    overflow-y: auto;
}

.faq-item .ck-editor__editable {
    min-height: 100px;
    overflow-y: auto;
}

.media-card {
    border-radius: 12px;
    overflow: hidden;
}

.media-img-wrapper {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.media-img {
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
    cursor: pointer;
}

.media-card:hover .media-img {
    transform: scale(1.05);
}

/* Overlay */
.media-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background: rgba(0,0,0,0.6);
    padding: 6px;
    opacity: 0;
    transition: 0.2s;
}

.media-card:hover .media-overlay {
    opacity: 1;
}

/* Filename */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-table th {
    font-weight: 600;
    font-size: 14px;
}

.custom-table td {
    font-size: 13px;
    vertical-align: middle;
}

.custom-table tbody tr:hover {
    background: #f8f9fa;
}

.lead-info-compact div {
    line-height: 1.3;
}

.lead-info-full {
    font-size: 12px;
    margin-top: 5px;
    color: #6c757d;
}

.toggle-info {
    font-size: 12px;
}
