@import url('../fonts/fonts.css');

:root {
    --bg: #ffffff;
    --text: #000000;
    --muted: #6b7280;
    --primary: #000000;
    /* black button on light */
    --card: #f8f9fb;
    --glass: rgba(0, 0, 0, 0.06);
    --radius: 0.75rem;
    --shadow: 0 0.375rem 1.125rem rgba(15, 23, 42, 0.06);
    --transition: 200ms cubic-bezier(.2, .9, .3, 1);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --accent: #1b1c20;
    --skeleton: linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.06) 50%, rgba(0, 0, 0, 0.04) 100%);
}

[data-theme="dark"] {
    --bg: #000000;
    --text: #ffffff;
    --muted: #9ca3af;
    --primary: #ffffff;
    /* white button on dark */
    --card: #0b0b0b;
    --glass: rgba(255, 255, 255, 0.12);
    --shadow: 0 0.375rem 1.125rem rgba(0, 0, 0, 0.6);
    --skeleton: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.03) 100%);
}

/* Reset & base */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: 'GT Walsheim Pro', sans-serif, system-ui, -apple-system;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.4;
    transition: background var(--transition), color var(--transition)
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 81.25rem;
    margin: 0 auto;
    padding: 5rem 1rem 1rem 1rem;
    transition: padding-bottom .18s
}

/* Added top padding for fixed header */

/* Header - FIXED */
header.appbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: var(--card);
    box-shadow: var(--shadow);
    z-index: 1000;
    backdrop-filter: blur(0.625rem);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem
}

.logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-weight: 700
}

.app-title {
    font-weight: 600
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease
}

.header-profile:hover {
    background: var(--glass)
}

.header-profile-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-weight: 600;
    font-size: 0.875rem
}

.profile-img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    /* keeps image proportion */
    border: 0.1875rem solid #ddd;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.feed-img {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
    /* keeps image proportion */
    border: 0.1875rem solid #ddd;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Layout */
.authlayout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 0
}

/* Removed margin-top since header is fixed */
.layout {
    display: grid;
    grid-template-columns: 16.25rem 1fr;
    gap: 1.25rem;
    margin-top: 0
}

/* Removed margin-top since header is fixed */
.sidebar {
    background: var(--card);
    padding: 1.125rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    height: calc(100vh - 7.5rem);
    position: sticky;
    top: 5rem;
    overflow: auto;
    transition: transform .18s
}

/* Adjusted for fixed header */
.sidebar.hidden {
    display: none
}

.content {
    min-height: 37.5rem;
    transition: padding-bottom .18s
}

/* Sidebar menu */
.menu {
    display: flex;
    flex-direction: column;
    gap: 0.375rem
}

.menu a {
    padding: 0.625rem;
    border-radius: 0.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.625rem
}

.menu a.active {
    background: var(--glass);
    font-weight: 600
}

/* Mobile toggle */
.mobile-toggle {
    display: none
}

/* Card */
.card {
    background: var(--card);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow)
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem
}

.form-control {
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--glass);
    background: var(--bg);
    color: var(--text);
    outline: none
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.625rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform .12s, opacity .12s
}

.btn:active {
    transform: translateY(0.0625rem)
}

.btn[disabled] {
    opacity: .6;
    cursor: not-allowed
}

.btn-primary {
    background: var(--primary);
    color: var(--bg)
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--glass);
    color: var(--text)
}

/* Forms & pages */
.page {
    display: none
}

.page.active {
    display: block
}

/* Grid utilities */
.row {
    display: grid;
    gap: 0.75rem
}

.cols-2 {
    grid-template-columns: repeat(2, 1fr)
}

.cols-3 {
    grid-template-columns: repeat(3, 1fr)
}

.cols-4 {
    grid-template-columns: repeat(4, 1fr)
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse
}

.table th,
.table td {
    padding: 0.625rem;
    text-align: left;
    border-bottom: 1px solid var(--glass)
}

.table thead th {
    font-weight: 700
}

.table-wrapper {
    overflow: auto
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
    flex-wrap: wrap
}

.page-btn {
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    border: 1px solid var(--glass);
    cursor: pointer;
    background: transparent;
    color: var(--text)
}

/* Progress bar */
.progress {
    background: var(--glass);
    height: 0.625rem;
    border-radius: 999px;
    overflow: hidden
}

.progress>i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--muted));
    transition: width 600ms ease
}

/* FIXED: Center modal (highest z-index to appear above everything) */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    /* highest z-index */
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s
}

.modal.open {
    opacity: 1;
    pointer-events: auto
}

.modal .dialog {
    background: var(--bg);
    padding: 1.125rem;
    border-radius: 0.75rem;
    min-width: 20rem;
    max-width: 92vw;
    box-shadow: var(--shadow);
    z-index: 10000
}

/* FIXED: Bottom Sheet (lower z-index than modals) */
.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform .22s var(--transition);
}

.sheet.open {
    transform: translateY(0)
}

.sheet .sheet-panel {
    background: var(--bg);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 -0.5rem 1.875rem rgba(0, 0, 0, .25);
    max-height: 85vh;
    overflow: auto;
}

.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s
}

.sheet-backdrop.open {
    opacity: 1;
    pointer-events: auto
}

/* Alerts */
.alert {
    padding: 0.75rem;
    border-radius: 0.625rem;
    margin-bottom: 0.75rem
}

.alert.info {
    background: linear-gradient(90deg, #e8f0ff, #f7fbff);
    color: #044;
}

/* Auth pages styles - IMPROVED: Center auth content */
.auth-wrap {
    min-height: 50rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem
}

.auth-card {
    width: 100%;
    max-width: 26.25rem;
    background: var(--card);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow)
}

/* FIXED: Bottom nav for mobile (proper z-index and positioning) */
.bottom-nav {
    display: none;
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    background: var(--card);
    padding: 0.75rem 0.5rem;
    border-radius: 1.25rem;
    justify-content: space-around;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
    z-index: 1500;
    /* above content but below sheets and modals */
    backdrop-filter: blur(0.625rem);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.bottom-nav a.active {
    background: var(--glass);
    color: var(--primary);
    font-weight: 600;
}

.bottom-nav a i {
    font-size: 1.125rem;
}

/* Responsive */
@media(max-width:61.25rem) {
    .authlayout {
        grid-template-columns: 1fr;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -20rem;
        top: 0;
        height: 100vh;
        z-index: 3000;
        width: 16.25rem;
        transition: transform .18s;
        transform: translateX(0)
    }

    .sidebar.open {
        transform: translateX(20rem)
    }

    .mobile-toggle {
        display: inline-flex
    }

    .mobile-only {
        display: inline
    }

    .desktop-only {
        display: none
    }

    .bottom-nav {
        display: flex
    }

    .mobile-hide {
        display: none
    }

    /* FIXED: give content proper padding so bottom nav doesn't cover content */
    .content {
        padding-bottom: 6.25rem
    }

    .container {
        padding-bottom: 6.25rem
    }

    /* Hide header on auth pages for mobile */
    .auth-page .appbar {
        display: none
    }

    .notif-dropdown {
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
        max-width: calc(100% - 1.5rem);
    }
}

@media(min-width:61.3125rem) {
    .mobile-toggle {
        display: none
    }

    .bottom-nav {
        display: none
    }
}

/* utility small text */
.muted {
    color: var(--muted);
    font-size: 0.8125rem
}

/* blank page */
.empty {
    min-height: 25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted)
}

/* Social feed */
.feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem
}

.post {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--shadow)
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem
}

.avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-weight: 700;
    font-size: 1.125rem
}

.post-content {
    margin-bottom: 0.75rem
}

.post-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass)
}

.post-action {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease
}

.post-action:hover {
    background: var(--glass);
    color: var(--text)
}

.post-action.active {
    color: var(--primary)
}

.comment-list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem
}

.comment {
    background: var(--glass);
    padding: 0.75rem;
    border-radius: 0.5rem
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem
}

.comment-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--muted), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-weight: 600;
    font-size: 0.875rem
}

.follow-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 1.25rem;
    border: 1px solid var(--glass);
    background: transparent;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease
}

.follow-btn:hover {
    background: var(--primary);
    color: var(--bg)
}

.follow-btn.following {
    background: var(--primary);
    color: var(--bg)
}

.media-preview {
    max-width: 100%;
    border-radius: 0.75rem;
    margin-top: 0.75rem
}

.poll-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--glass);
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease
}

.poll-option:hover {
    background: var(--glass)
}

.poll-result {
    background: var(--glass);
    height: 0.25rem;
    border-radius: 0.125rem;
    margin-top: 0.375rem
}

.poll-result-bar {
    background: var(--primary);
    height: 100%;
    border-radius: 0.125rem;
    transition: width 0.3s ease
}

/* VTU specific styles */
.vtu-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 0.75rem;
    margin-top: 1rem
}

.vtu-plan {
    background: var(--card);
    border: 0.125rem solid var(--glass);
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease
}

.vtu-plan:hover {
    border-color: var(--primary);
    transform: translateY(-0.125rem)
}

.vtu-plan.selected {
    border-color: var(--primary);
    background: var(--glass)
}

.vtu-plan-title {
    font-weight: 600;
    margin-bottom: 0.5rem
}

.vtu-plan-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary)
}

.vtu-plan-desc {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.25rem
}

/* Profile styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem
}

.profile-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-weight: 700;
    font-size: 2rem
}

.profile-info h2 {
    margin: 0 0 0.5rem 0
}

.profile-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem
}

.profile-stat {
    text-align: center
}

.profile-stat-number {
    font-size: 1.25rem;
    font-weight: 700
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--muted)
}

/* small helpers for icons */
.fa {
    font-size: 0.875rem;
}

.icon-sm {
    width: 1.125rem;
    text-align: center;
    display: inline-block
}

/* Composer styles */
.composer {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow)
}

.composer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem
}

.composer-textarea {
    width: 100%;
    min-height: 5rem;
    border: none;
    background: transparent;
    color: var(--text);
    resize: vertical;
    outline: none;
    font-family: inherit
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass)
}

.composer-tools {
    display: flex;
    gap: 0.5rem
}

.composer-tool {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: 1px solid var(--glass);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease
}

.composer-tool:hover {
    background: var(--glass);
    color: var(--text)
}

.composer-tool.active {
    background: var(--primary);
    color: var(--bg)
}

/* Poll composer */
.poll-composer {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--glass);
    border-radius: 0.5rem
}

.poll-option-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--glass);
    border-radius: 0.375rem;
    background: transparent;
    color: var(--text);
    margin-bottom: 0.5rem
}

/* Network selection with images */
.network-select {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.network-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 0.125rem solid var(--glass);
    cursor: pointer;
    transition: all 0.2s ease;
}

.network-option:hover {
    border-color: var(--primary);
}

.network-option.selected {
    border-color: var(--primary);
    background: var(--glass);
}

.network-option img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

.network-option span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.content .skeleton-content {
    display: none;
}

.content.loading .skeleton-content {
    display: block;
}

.content.loading .real-content {
    display: none;
}

.skeleton {
    background-color: #f3f4f6;
    border-radius: 0.25rem;
    position: relative;
    overflow: hidden;
}

.skeleton::before {
    content: '';
    display: block;
    position: absolute;
    left: -9.375rem;
    top: 0;
    height: 100%;
    width: 9.375rem;
    background: linear-gradient(to right, transparent 0%, #E8E8E8 50%, transparent 100%);
    animation: load 1s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes load {
    from {
        left: -9.375rem;
    }

    to {
        left: 100%;
    }
}

.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    width: 100%;
    box-sizing: border-box;
    /* include padding in width */
    padding-right: 3rem;
    /* reserve space for the icon (adjust as needed) */
}

/* icon button positioned inside the input area */
.input-with-icon .icon-btn {
    position: absolute;
    right: 0.5rem;
    /* distance from right edge */
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0.375rem;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    /* sits above the input */
    color: inherit;
}

/* visible focus for keyboard users */
.input-with-icon .icon-btn:focus {
    outline: 0.125rem solid Highlight;
    outline-offset: 0.125rem;
    border-radius: 0.25rem;
}

/* Notification button & dropdown */
.notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.625rem;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: background .18s, transform .12s;
    font-weight: 600;
}

.notif-btn:hover {
    background: var(--glass);
}

.notif-bell {
    font-size: 1rem;
    display: inline-block;
    width: 1.125rem;
    color: var(--text);
    text-align: center;
}

.notif-badge {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.3125rem;
    border-radius: 999px;
    background: var(--error);
    color: white;
    font-size: 0.6875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.12);
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 0.625rem);
    right: 0;
    width: 20rem;
    max-height: 26.25rem;
    overflow: auto;
    background: var(--card);
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 2.5rem rgba(15, 23, 42, 0.12);
    padding: 0.625rem;
    z-index: 1600;
    display: none;
    backdrop-filter: blur(0.5rem);
}

.notif-dropdown.open {
    display: block;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0.5rem;
    border-bottom: 1px solid var(--glass);
    margin-bottom: 0.5rem;
}

.notif-title {
    font-weight: 700;
}

.notif-actions button {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.375rem 0.25rem;
}

.notif-empty {
    text-align: center;
    color: var(--muted);
    padding: 1.5rem;
}

/* Notification item */
.notif-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.625rem;
    align-items: flex-start;
    transition: background .12s;
    margin-bottom: 0.25rem;
}

.notif-item.unread {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.06), transparent);
}

/* Clickable variation */
.notif-item.clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notif-item.clickable:hover {
    background-color: var(--hover-bg, rgba(0, 0, 0, 0.05));
}

/* Type indicators (left border) */
.notif-item.notif-chat {
    border-left: 0.1875rem solid var(--primary, #007bff);
}

.notif-item.notif-alert {
    border-left: 0.1875rem solid var(--danger, #dc3545);
}

.notif-item.notif-system {
    border-left: 0.1875rem solid var(--success, #28a745);
}

.notif-item.notif-info {
    border-left: 0.1875rem solid var(--info, #17a2b8);
}

/* Small indicator (right-side) */
.notif-indicator {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--primary, #007bff);
    border-radius: 50%;
    margin-left: auto;
    flex-shrink: 0;
}

/* Avatar & content */
.notif-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--muted));
    color: var(--bg);
    flex-shrink: 0;
}

.notif-content,
.notif-content * {
    box-sizing: border-box;
}

/* ensure consistent sizing */
.notif-content {
    flex: 1;
    min-width: 0;
}

/* Time and small text */
.notif-time {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.375rem;
}

/* Chat notification summary (special card) */
.chat-notification-summary {
    background: linear-gradient(135deg, var(--primary, #007bff), var(--primary-dark, #0056b3));
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-notification-summary .chat-icon {
    font-size: 1.5rem;
    opacity: 0.9;
    color: var(--bg);
}

.chat-notification-summary .chat-info h4 {
    margin: 0;
    color: var(--bg);
    font-size: 1rem;
    font-weight: 600;
}

.chat-notification-summary .chat-info p {
    margin: 0.25rem 0 0;
    opacity: 0.9;
    color: var(--bg);
    font-size: 0.875rem;
}

.chat-notification-summary .chat-action {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-notification-summary .chat-action:hover {
    background: rgba(255, 255, 255, 0.3);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#airtime_network option[value="mtn"],
#data_network option[value="mtn"] {
    background: url('/assets/images/data/mtn.jpg') left center no-repeat;
    background-size: 1.25rem;
    padding-left: 1.875rem;
}

#airtime_network option[value="glo"],
#data_network option[value="glo"] {
    background: url('/assets/images/data/glo.jpeg') left center no-repeat;
    background-size: 1.25rem;
    padding-left: 1.875rem;
}

#airtime_network option[value="airtel"],
#data_network option[value="airtel"] {
    background: url('/assets/images/data/airtel.jpg') left center no-repeat;
    background-size: 1.25rem;
    padding-left: 1.875rem;
}

#airtime_network option[value="9mobile"],
#data_network option[value="9mobile"] {
    background: url('/assets/images/data/9mobile.jpeg') left center no-repeat;
    background-size: 1.25rem;
    padding-left: 1.875rem;
}

.spinner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-size: 0.1875rem;
}

.spinner {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.spinner-loader {
    border-top: 1.1em solid #fff;
    border-right: 1.1em solid #000;
    border-bottom: 1.1em solid #fff;
    border-left: 1.1em solid #000;
    position: relative;
    width: 10em;
    height: 10em;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}

.spinner-loader,
.spinner-loader:after {
    border-radius: 50%;
}

@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}