body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(180deg, #0f2238 0%, #112d4e 46%, #183a63 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

.sidebar-shell {
    color: #eaf2fb;
}

.sidebar-wrap {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 48px);
    padding: 0.9rem 0.9rem 1rem;
    overflow-y: auto;
}

.sidebar-brand-panel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.sidebar-brand-admin {
    box-shadow: 0 18px 35px rgba(8, 18, 31, 0.28);
}

.sidebar-brand-telecaller {
    box-shadow: 0 18px 35px rgba(6, 28, 29, 0.28);
}

.sidebar-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #fff;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #f0a500, #f76e11);
    box-shadow: 0 12px 24px rgba(240, 165, 0, 0.28);
}

.sidebar-brand-telecaller .sidebar-brand-icon {
    background: linear-gradient(135deg, #1dd3b0, #118ab2);
    box-shadow: 0 12px 24px rgba(17, 138, 178, 0.3);
}

.sidebar-brand-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sidebar-brand-subtitle {
    color: rgba(234, 242, 251, 0.72);
    font-size: 0.82rem;
}

.sidebar-section-label {
    margin: 0.2rem 0 0.65rem;
    padding: 0 0.4rem;
    color: rgba(234, 242, 251, 0.55);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-nav-list {
    gap: 0.35rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.82rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 16px;
    color: rgba(234, 242, 251, 0.86);
    font-weight: 600;
    transition: all 0.22s ease;
}

.sidebar-link:hover {
    color: #ffffff;
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.06);
}

.sidebar-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 26px rgba(8, 18, 31, 0.22);
}

.sidebar-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #d7e9fb;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.22s ease;
}

.sidebar-link.active .sidebar-link-icon,
.sidebar-link:hover .sidebar-link-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.sidebar-link-label {
    flex: 1;
}

.sidebar-footer-card {
    margin-top: auto;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    color: rgba(234, 242, 251, 0.86);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-footer-title {
    margin-bottom: 0.35rem;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
}

.sidebar-footer-text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(234, 242, 251, 0.72);
}

.main {
    padding-top: 1.5rem;
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table-responsive {
    overflow-x: auto;
}

.form-control, .form-select {
    padding: 0.5rem 0.75rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.ck-editor__editable {
    min-height: 200px;
}

@media (max-width: 767.98px) {
    .sidebar {
        padding-top: 56px;
    }

    .sidebar-wrap {
        height: auto;
        min-height: calc(100vh - 56px);
    }
}
