/* 
* Abhivorn Technologies Pvt Ltd - Production Stylesheet
* Date: 2026-01-25
* Version: Final Release
*/

/* ==========================================================================
   1. CORE VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --secondary-color: #64748b;
    --success-color: #198754;
    --warning-color: #0d6efd;
    --danger-color: #dc2626;
    --info-color: #0ea5e9;

    /* Theme Colors (Legacy Support for Public Site) */
    --telecom-blue: var(--primary-color);
    --telecom-dark: #1e293b;
    --dark-color: #1e293b;

    /* Surface & Backgrounds */
    --bg-body: #ffffff;
    --bg-surface: #f8fafc;
    /* Unified Dashboard Background */
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-header: #ffffff;

    /* Typography */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 4rem;

    /* Offcanvas (Mobile Menu) - Light Mode */
    --offcanvas-bg: rgba(255, 255, 255, 0.95);
    --offcanvas-text: #0f172a;
    --offcanvas-text-muted: rgba(15, 23, 42, 0.7);
    --offcanvas-border: rgba(15, 23, 42, 0.12);
    --offcanvas-link-hover: rgba(15, 23, 42, 0.08);
    --offcanvas-active-bg: linear-gradient(90deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0.04));
    --offcanvas-close-filter: brightness(0);
    --offcanvas-icon-bg: rgba(15, 23, 42, 0.08);
    --offcanvas-title-gradient: linear-gradient(45deg, #0f172a, rgba(15, 23, 42, 0.7));
}

/* ==========================================================================
   2. GLOBAL RESETS & TYPOGRAPHY
   ========================================================================== */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    margin: 0;
    padding-top: 76px;
    /* Offset for Public Fixed Navbar */
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ==========================================================================
   3. COMPONENTS (PUBLIC & SHARED)
   ========================================================================== */

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1rem;
}

.btn-telecom {
    background-color: var(--telecom-blue);
    color: white;
    border: 1px solid transparent;
}

.btn-telecom:hover {
    background-color: var(--telecom-dark);
    color: white;
}

/* Modern Pagination */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border-radius: 50px !important;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.6rem 1.25rem;
    min-width: 46px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-surface);
    font-weight: 500;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.page-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.page-item.disabled .page-link {
    background-color: transparent;
    border-color: var(--border-color);
    opacity: 0.5;
    color: var(--text-muted);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Utility Classes */
.text-telecom {
    color: var(--telecom-blue);
}

.bg-telecom {
    background-color: var(--telecom-blue);
}

.section-padding {
    padding: var(--spacing-xxl) 0;
}

/* Navbar (Public) */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.navbar-brand {
    color: var(--text-main);
}

/* Shared brand lockup (header + footer) */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1;
    text-decoration: none;
}

.brand-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

/* Consistent page header title size */
.page-title {
    font-size: 1.9rem;
    line-height: 1.2;
    text-align: center;
}

.page-subtitle {
    max-width: 760px;
    margin: 0.6rem auto 0;
    text-align: center;
    color: var(--text-muted);
}

/* Inner pages: tighten space between page heading and first content block */
section.pt-5.pb-2 {
    padding-top: 2.5rem !important;
    padding-bottom: 0.5rem !important;
}

section.pt-5.pb-2+section.section-padding {
    padding-top: 2.25rem;
}

section.pt-5.pb-2+section.pt-3.pb-5 {
    padding-top: 1.25rem !important;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.6rem;
    }
}

.navbar-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 500 !important;
}

/* Footer (Public) */
footer {
    background-color: var(--telecom-dark);
    color: #e6f1ff;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(13, 110, 253, 0.1), transparent 40%);
    pointer-events: none;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: #fff;
    padding-left: 4px;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.social-icon-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: #fff;
    padding-left: 0;
}

/* Project Cards Specifics */
.project-card .card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color) !important;
}

.project-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.project-card .card-body {
    display: flex;
    flex-direction: column;
}

.project-card h5 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3rem;
    /* Fallback for clamp */
}

/* ==========================================================================
   4. DASHBOARD SYSTEM (ADMIN & CLIENT UNIFIED)
   ========================================================================== */

/* Dashboard Reset Override */
body.dashboard-page {
    padding-top: 0 !important;
    background-color: var(--bg-surface) !important;
    height: 100vh;
    overflow: hidden;
    /* Main layout handles scroll */
}

/* Main Layout Grid */
.dashboard-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    color: var(--text-main);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease, background-color 0.3s ease;
    border-right: 1px solid var(--border-color);
}

.sidebar-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    /* Stability placeholder */
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-link i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
    border-left-color: var(--primary-color);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Internal scroll */
}

.main-content>.container-fluid {
    overflow-y: auto;
    padding: 1.5rem 2rem !important;
    /* Standardized Padding */
    height: 100%;
}

/* Dashboard Header */
.dashboard-header {
    height: 64px;
    background-color: var(--bg-header);
    /* Matches Sidebar for seamless look */
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-header .d-flex {
    align-items: center !important;
    /* Force vertical centering for left brand/toggle area */
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 100%;
    /* Occupy full header height to ensure alignment context */
}

.dashboard-header-right .user-profile-chip {
    order: 4;
}

.header-icon-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    padding: 0;
    /* Remove internal padding */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    /* Normalize line height for icon centering */
}

.header-icon-btn:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.header-icon-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Increased gap slightly for balance */
    padding: 6px 16px 6px 6px;
    /* Balanced padding */
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid transparent;
    height: 44px;
    /* Explicit height for alignment */
}

.user-profile-chip:hover {
    background: var(--bg-surface);
    border-color: var(--border-color);
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    /* Remove inline-block gap */
}

.user-info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically center text block */
    line-height: 1.2;
}

.user-name-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1;
    /* Tighten for better optical alignment */
    margin-bottom: 2px;
}

.user-role-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.3px;
}

/* Dashboard Components (Shared) */
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    /* Only subtle lift */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* KPI Cards */
.kpi-card {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.kpi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.kpi-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--text-main);
    letter-spacing: -1px;
}

/* Standardized Table */
.dashboard-table {
    margin: 0;
}

.dashboard-table thead th {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    border-top: none;
}

.dashboard-table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.9rem;
}

.dashboard-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Mobile Sidebar Toggle */
.sidebar-toggler {
    display: none;
}

@media (max-width: 768px) {
    .sidebar-toggler {
        display: inline-flex;
    }

    .sidebar {
        position: fixed;
        height: 100%;
        z-index: 1050;
        transform: translateX(-280px);
        transition: transform 0.3s ease;
    }

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

    .dashboard-header {
        padding: 0 1rem;
    }

    .main-content>.container-fluid {
        padding: 1rem !important;
    }

    .container-fluid>.d-flex h2 {
        font-size: 1.25rem !important;
    }

    /* Sidebar Overlay (Mobile) */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        backdrop-filter: blur(2px);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }
}

/* ==========================================================================
   5. UTILITIES
   ========================================================================== */
.chart-placeholder {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: var(--radius-md);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

/* Reports Page Styles */
.reports-content-wrapper {
    min-height: calc(100vh - 140px);
}

.reports-lead {
    max-width: 600px;
}

@media (max-width: 767.98px) {
    .reports-content-wrapper {
        min-height: auto;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .reports-title {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }

    .reports-lead {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }

    .countdown-box h2 {
        font-size: 1.5rem !important;
    }
}

/* Dark Mode Overrides (Minimal) */
[data-theme="dark"] .main-content {
    background-color: #0f172a;
}

[data-theme="dark"] .dashboard-card {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .dashboard-table tbody td {
    color: #e2e8f0;
    border-color: #334155;
}

[data-theme="dark"] .dashboard-table thead th {
    background-color: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

/* ==========================================================================
   6. THEME TOGGLE ENHANCEMENTS
   ========================================================================== */

/* Theme Toggle Button */
#theme-toggle {
    position: relative;
    transition: all 0.3s ease;
}

#theme-toggle i {
    transition: transform 0.3s ease, opacity 0.15s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

/* Smooth Theme Transitions */
body,
.dashboard-card,
.sidebar,
.dashboard-header,
.main-content,
.card,
.table,
.form-control,
.form-select,
.btn,
.badge,
.list-group-item,
.dropdown-menu {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Progress Bars */
.progress {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

[data-theme="dark"] .progress {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Avatar Groups */
.avatar-group img {
    margin-left: -8px;
    transition: transform 0.2s ease;
}

.avatar-group img:first-child {
    margin-left: 0;
}

.avatar-group img:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Enhanced Hover States */
.dashboard-card {
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

/* Improved Badge Styling */
.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
}

/* Better Focus States */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

[data-theme="dark"] .btn:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.35);
}

/* Theme Toggle Button Enhancement */
#theme-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none !important;
    transition: all 0.2s ease;
    color: var(--text-body);
    /* Ensure visibility in light mode */
}

#theme-toggle:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color) !important;
}

[data-theme="dark"] #theme-toggle {
    color: #ffffff !important;
    /* Ensure visibility in dark mode */
}

[data-theme="dark"] #theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fbbf24 !important;
    /* Warm yellow for sun icon */
}

/* Page Transition Animations */
body {
    animation: fadeIn 0.3s ease-in;
}

body.page-transitioning {
    animation: fadeOut 0.2s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }

}

/* -------------------------------------------------------------------------- */
/*                            Image Sizing                                    */
/* -------------------------------------------------------------------------- */
.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.blog-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.blog-details-img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

/* -------------------------------------------------------------------------- */
/*                         Home Icon (Login/Register)                        */
/* -------------------------------------------------------------------------- */
.btn-link.text-muted {
    transition: all 0.2s ease;
}

.btn-link.text-muted:hover {
    opacity: 1 !important;
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

[data-theme="dark"] .btn-link.text-muted {
    color: rgba(226, 232, 240, 0.8) !important;
}

[data-theme="dark"] .btn-link.text-muted:hover {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* -------------------------------------------------------------------------- */
/*                         Mobile View Optimizations                          */
/* -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {

    /* Smaller hamburger toggle on mobile/tablet */
    .navbar .navbar-toggler {
        padding: 0.2rem 0.45rem;
        font-size: 1rem;
        border-radius: 0.5rem;
    }

    .navbar .navbar-toggler-icon {
        width: 1.1rem;
        height: 1.1rem;
        background-size: 1.1rem 1.1rem;
    }

    /* Navbar Collapse Styling */
    .navbar-collapse {
        background-color: #ffffff;
        padding: 1rem;
        border-radius: var(--radius-lg);
        margin-top: 0.75rem;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
    }

    [data-theme="dark"] .navbar-collapse {
        background-color: var(--bg-card);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .navbar-nav .nav-link {
        padding: 0.6rem 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 1rem;
        margin-bottom: 0.15rem;
    }

    [data-theme="dark"] .navbar-nav .nav-link {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }

    .navbar-nav .nav-link.active {
        border-bottom: 2px solid var(--primary-color) !important;
        color: var(--primary-color) !important;
    }

    /* Navbar Bottom Actions (Buttons) */
    .navbar-collapse .d-flex {
        margin-top: 0.75rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        display: flex !important;
    }

    [data-theme="dark"] .navbar-collapse .d-flex {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .navbar-collapse .d-flex .btn {
        width: 100%;
        padding: 0.6rem;
        justify-content: center;
        display: flex;
        align-items: center;
        margin: 0 !important;
    }

    /* Theme Toggle alignment in mobile */
    #theme-toggle {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Desktop adjustments */
    @media (min-width: 992px) {
        .navbar .ms-auto {
            margin-left: 0 !important;
        }
    }

    /* Hero Section Mobile Spacing */
    .hero-section {
        padding-top: 2rem;
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    /* Footer Mobile Adjustments */
    footer .col-6 {
        margin-bottom: 1.5rem;
    }
}

/* Tablet navbar: keep hamburger pinned to the right */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar > .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar .navbar-toggler {
        margin-left: auto !important;
        margin-right: 0 !important;
    }
}

/* Payment Icons Hover Colors */
.payment-icon {
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-icon:hover {
    transform: translateY(-3px);
    opacity: 1 !important;
}

.payment-icon.fa-cc-visa:hover {
    color: #f9f9f9;
}

/* White for Visa on Dark Background */
.payment-icon.fa-cc-mastercard:hover {
    color: #eb001b;
}

/* Mastercard Red */
.payment-icon.fa-cc-paypal:hover {
    color: #00457C;
}

/* Paypal Blue */
.payment-icon.fa-cc-stripe:hover {
    color: #6772e5;
}

/* Stripe Blurple */

/* Home 2 "Used by" brand icons */
.used-by-brands .brand-icon {
    color: #8a9199;
    transition: color 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.used-by-brands .brand-icon:hover {
    transform: translateY(-1px);
}

.used-by-brands .brand-google:hover {
    color: #4285f4;
}

.used-by-brands .brand-amazon:hover {
    color: #ff9900;
}

.used-by-brands .brand-microsoft:hover {
    color: #00a4ef;
}

/* Home 2 hero CTA sizing */
.hero-cta-actions .hero-cta-btn {
    font-size: 1rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.75rem;
}

@media (max-width: 991.98px) {
    .hero-cta-actions .hero-cta-btn {
        font-size: 0.95rem;
        padding: 0.42rem 0.78rem;
    }
}

.footer-brand-link {
    transition: color 0.3s ease;
}

.footer-brand-link:hover {
    color: var(--primary-color) !important;
}

/* ==========================================================================
   MOBILE MENU STYLES (Offcanvas)
   ========================================================================== */
@media (max-width: 991.98px) {

    .offcanvas,
    .offcanvas-lg {
        background-color: var(--offcanvas-bg) !important;
        /* Balanced transparency with blur */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        color: var(--offcanvas-text);
        border-right: none;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    }

    .offcanvas-header {
        border-bottom: none;
        padding: 1.5rem;
        background-color: transparent !important;
    }

    .offcanvas-title {
        font-size: 1.5rem;
        letter-spacing: -0.5px;
        font-weight: 700;
        background: var(--offcanvas-title-gradient);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .offcanvas-title .brand-lockup {
        gap: 0.55rem;
    }

    .offcanvas-title .brand-name {
        font-size: 1.5rem;
        color: var(--offcanvas-text);
        background: none;
        -webkit-text-fill-color: currentColor;
    }

    .offcanvas-body {
        padding: 1.5rem;
    }

    .offcanvas .nav-link {
        color: var(--offcanvas-text-muted) !important;
        padding: 0.85rem 1.25rem 0.85rem 1.75rem;
        font-size: 1.1rem;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 12px;
        margin-bottom: 0.25rem;
        position: relative;
    }

    .offcanvas .nav-link:hover {
        color: var(--offcanvas-text) !important;
        background: var(--offcanvas-link-hover);
        padding-left: 2rem;
    }

    /* Active State - Glass Pill */
    .offcanvas .nav-link.active {
        background: var(--offcanvas-active-bg) !important;
        color: var(--primary-color) !important;
        border: none;
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    }

    /* Fixed alignment for dropdown arrow */
    .offcanvas .dropdown-toggle::after {
        margin-left: auto;
        vertical-align: middle;
    }

    /* Side Indicator for Active */
    .offcanvas .nav-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 25%;
        height: 50%;
        width: 4px;
        background: var(--primary-color);
        border-radius: 0 4px 4px 0;
        box-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
    }

    /* Sub-menu (Dropdown) inside Offcanvas */
    .offcanvas .dropdown-menu {
        background: var(--offcanvas-link-hover);
        border: none;
        border-radius: 12px;
        margin: 0.5rem 0 1rem 1rem;
        padding: 0.5rem;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
    }

    .offcanvas .dropdown-item {
        color: var(--offcanvas-text-muted);
        padding: 0.6rem 1rem;
        border-radius: 8px;
        transition: all 0.2s;
    }

    .offcanvas .dropdown-item:hover,
    .offcanvas .dropdown-item:focus {
        background: var(--offcanvas-link-hover);
        color: var(--offcanvas-text);
    }

    /* Close Button - Enhanced */
    .btn-close {
        filter: var(--offcanvas-close-filter);
        opacity: 0.6;
        transition: all 0.3s;
        background-size: 0.8rem;
    }

    .btn-close:hover {
        opacity: 1;
        transform: rotate(90deg);
    }

    /* Login Button Area - Premium Blur */
    .offcanvas .mt-4 {
        border-top: none;
        padding-top: 1.5rem;
        margin-top: 1.5rem !important;
    }

    .offcanvas .auth-mobile-actions {
        justify-content: center;
        align-items: center;
        gap: 0.65rem !important;
        flex-wrap: wrap;
    }

    .offcanvas .auth-mobile-actions .btn-group {
        flex: 0 0 auto;
    }

    .offcanvas .auth-mobile-actions .btn-auth {
        min-width: 82px;
    }

    .offcanvas .auth-mobile-actions .btn-auth-split {
        min-width: 34px;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .offcanvas .auth-mobile-actions .dropdown-menu {
        min-width: 210px;
        left: 0 !important;
        right: auto !important;
    }

    /* Global auth dropdown fixes for all pages in offcanvas */
    .offcanvas .offcanvas-body .d-flex.gap-2 {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .offcanvas .offcanvas-body .d-flex.gap-2 .btn-group {
        flex: 0 0 auto;
        position: relative;
    }

    .offcanvas .offcanvas-body .d-flex.gap-2 .btn-group .dropdown-menu {
        width: auto !important;
        min-width: 220px;
        max-width: calc(100vw - 3rem);
        margin: 0.35rem 0 0 !important;
        left: 0 !important;
        right: auto !important;
        z-index: 1080;
        background: #ffffff;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }

    .offcanvas .offcanvas-body .d-flex.gap-2 .btn-group .dropdown-item {
        color: var(--text-dark);
        white-space: nowrap;
    }

    [data-theme="dark"] .offcanvas .offcanvas-body .d-flex.gap-2 .btn-group .dropdown-menu {
        background: #0f172a;
        border-color: rgba(255, 255, 255, 0.12);
    }

    [data-theme="dark"] .offcanvas .offcanvas-body .d-flex.gap-2 .btn-group .dropdown-item {
        color: #e2e8f0;
    }

    /* Toggle buttons in header */
    .mobile-header-icons .btn-link {
        color: var(--offcanvas-text) !important;
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: var(--offcanvas-icon-bg);
        margin-left: 0.25rem;
        transition: all 0.3s;
        border: none;
        text-decoration: none;
    }

    .mobile-header-icons .btn-link i {
        color: inherit;
        opacity: 0.8;
    }

    .mobile-header-icons .btn-link:hover {
        background: var(--offcanvas-link-hover);
        color: var(--offcanvas-text) !important;
        transform: translateY(-2px);
    }

    .mobile-header-icons .btn-link:hover i {
        opacity: 1;
    }
}

/* --- Telecom Style Footer --- */
.footer-new {
    background-color: #0d121f;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.footer-new h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-new .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer-new .brand-name {
    color: #ffffff;
}

.footer-new .brand-lockup:hover {
    padding-left: 0;
}

.footer-new .social-circle-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 10px;
}

.footer-new .social-circle-btn:hover {
    background: var(--bs-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-new .footer-link-v2 {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-new .footer-link-v2:hover {
    color: #ffffff;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-contact-item i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    padding-top: 4px;
}

.footer-contact-item h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer-contact-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-powered-by {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-powered-by a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
}

.footer-powered-by a:hover {
    color: #ffffff;
}

/* Auth Buttons Standardized Width */
.btn-auth {
    min-width: 78px;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Keep auth split buttons joined in both LTR and RTL */
.navbar .btn-group > a[href="login.html"].btn {
    border-inline-end: 0 !important;
}

[dir="rtl"] .navbar .btn-group,
[dir="rtl"] .offcanvas .offcanvas-body .btn-group {
    direction: ltr;
}

@media (max-width: 991.98px) {
    .dashboard-header-right {
        gap: 0.75rem;
    }

    .dashboard-header-right .user-profile-chip {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        border: 1px solid var(--border-color);
        background: var(--bg-surface);
    }

    .dashboard-header-right .user-profile-chip .user-avatar-sm {
        display: none;
    }

    .dashboard-header-right .user-profile-chip .user-info-text {
        display: none !important;
    }

    .dashboard-header-right .user-profile-chip::before {
        content: "\f007";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.9rem;
        color: var(--text-muted);
    }

    .dashboard-header-right .user-profile-chip:hover::before {
        color: var(--text-main);
    }
}

.btn-auth-split {
    min-width: 34px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.btn-auth.dropdown-toggle-split {
    min-width: 34px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    border-inline-start: 0 !important;
}

/* Navbar auth group fallback for pages without btn-auth classes */
.navbar .btn-group>.dropdown-toggle-split {
    min-width: 34px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-inline-start: 0 !important;
}

.navbar .btn-group>.dropdown-menu {
    min-width: 220px;
    z-index: 1080;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.navbar .btn-group .dropdown-item {
    color: var(--text-dark);
}

[data-theme="dark"] .navbar .btn-group>.dropdown-menu {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .navbar .btn-group .dropdown-item {
    color: #e2e8f0;
}
/* Dashboard Header Actions */
.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

