/* Custom CSS for AI Chatbot Admin Dashboard */

/* Login Sign In Title Styling */
.login-sign-in-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0.01em;
    vertical-align: middle;
}

/* Login Subtitle Styling */
.login-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0.01em;
   
    vertical-align: middle;
}

/* Form Label Styling */
.form-label, .form-control {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 100% !important;
    border-radius: 8px !important;
    vertical-align: middle !important;
}
.form-check .form-check-label{
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 100% !important;
    border-radius: 8px !important;
    vertical-align: middle !important;
}
.form-passwordreset .form-passwordreset-link{
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 100% !important;
    
    vertical-align: middle !important;
}
.form-passwordreset .form-passwordreset-link:hover{
    text-decoration: underline !important;
}
/* Global Font Family */
body, .login-card, .form-control, .btn {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400 !important;
}

/* Login Page Custom Background */
.login-page-background {
    background: #0C1421 !important;
}

/* Logo styling */
.logo a {
    text-decoration: none !important;
}

/* Company Info styling */
.company-info {
    background: rgba(67, 94, 190, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem;
    border: 1px solid rgba(67, 94, 190, 0.2);
}

.company-avatar {
    width: 40px;
    height: 40px;
    background: #435ebe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

/* Sidebar branding */
.sidebar-brand {
        color: #ffffff !important;
    font-weight: 700 !important;
    font-family: inter;
    font-size: 24px;
}

/* Page Title Styling */
.page-heading h3, .page-heading .h3 {
    font-weight: 700;
    font-size: 24px;
    font-weight: bold;
}

/* Header Search Box */
.header-search {
    max-width: 400px;
}

.header-search .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.header-search .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-right: none;
    padding: 8px 12px;
}

.header-search .form-control {
    border: 1px solid #dee2e6;
    border-left: none;
    padding: 8px 12px;
    font-size: 14px;
}

.header-search .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(67, 94, 190, 0.25);
    border-color: #435ebe;
}

.header-search .input-group-text i {
    color: #6c757d;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-actions .dropdown-toggle {
    border: 0px solid #dee2e6;
    background-color: white;
    color: #495057;
    font-size: 14px;
    padding: 8px 12px;
    height: 38px;
    display: flex;
    align-items: center;
}

.header-actions .dropdown-toggle:hover {
    background-color: #f8f9fa;
}

.header-actions .flag-icon {
    font-size: 16px;
}

/* Notification Icon */
.notification-icon a {
        color: #495057;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #F1F5F9;
    border-radius: 100%;
    background-color: #F1F5F9;
}

.notification-icon a:hover {
    background-color: #f8f9fa;
}

.notification-icon .notification-badge {
    font-size: 10px;
    padding: 2px 5px;
}

/* Trial Status */
.trial-status {
        border: 1px solid #135DDD;
    border-radius: 5px;
        padding: 8px 16px 6px 16px;
    background-color: #E4F2FF;
    /* height: 38px; */
    display: flex;
    align-items: center;
}

.trial-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.trial-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trial-days {
    font-size: 12px;
    color: #495057;
    font-weight: 500;
    line-height: 1;
}

.trial-label {
    font-size: 11px;
    color: #6c757d;
    line-height: 1;
}

.trial-progress {
    flex-shrink: 0;
}

.trial-status .progress {
    margin: 1px 0;
}

/* Upgrade Button */
.upgrade-btn {
    background-color: #435ebe;
    border: none;
        padding: 8px 16px 12px 16px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    
    display: flex;
    align-items: center;
}

.upgrade-btn:hover {
    background-color: #3448a3;
}

.upgrade-btn .upgrade-icon {
    width: 16px;
    height: 16px;
}
.notification-icon{
    border-radius: 100px;
}
.notification-icon .notification-bell-icon{
    width: 16px;
    height: 16px;
}
/* Stats cards */
.stats-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stats-primary {
    background: linear-gradient(135deg, #435ebe, #5a67d8);
}

.stats-success {
    background: linear-gradient(135deg, #198754, #28a745);
}

.stats-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stats-info {
    background: linear-gradient(135deg, #0dcaf0, #17a2b8);
}

/* Insight cards */
.insight-card {
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Alert customizations */
.alert {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Custom button styles */
.btn-gradient-primary {
    background: linear-gradient(135deg, #435ebe, #5a67d8);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #3a52a8, #4c59c2);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(67, 94, 190, 0.3);
    color: white;
}

/* Form enhancements */
.form-control:focus {
    border-color: #435ebe;
    box-shadow: 0 0 0 0.2rem rgba(67, 94, 190, 0.25);
}

.form-select:focus {
    border-color: #435ebe;
    box-shadow: 0 0 0 0.2rem rgba(67, 94, 190, 0.25);
}

/* Table enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(67, 94, 190, 0.05);
}

/* Badge customizations */
.badge {
    border-radius: 0.5rem;
    font-weight: 600;
}

/* Card enhancements */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .company-info {
        margin: 0.5rem;
        padding: 0.75rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .insight-card {
        margin-bottom: 1rem;
    }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(67, 94, 190, 0.3);
    border-radius: 50%;
    border-top-color: #435ebe;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notification styles */
.notification-badge {
    position: relative;
}

.notification-badge .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #435ebe;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a52a8;
}

/* OR Divider Styling */
.divider-container {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #E2E8F0;
    margin: 0 16px;
}

.divider-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Login Button Styling */
.social-btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.google-btn {
    background-color: #F3F9FA;
    color: #1f2937;
    border-color: #E2E8F0;
}

.google-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1f2937;
    transform: translateY(-1px);
}

.microsoft-btn {
    background-color: #0C1421;
    border-color: #0C1421;
}

.microsoft-btn:hover {
    background-color: #0099CC;
    border-color: #0099CC;
    transform: translateY(-1px);
}

/* Google Icon Styling */
.google-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

/* Microsoft Icon Styling */
.microsoft-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

/* Welcome Title Styling */
.welcome-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    font-size: 45px !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    text-align: center !important;
}

/* Mobile responsive welcome title */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 30px !important;
    }
}

/* Welcome Subtitle Styling */
.welcome-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
    font-size: 16px !important;
    line-height: 19.2px !important;
    letter-spacing: 0% !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* Custom Bootstrap spacing utilities (for CDN fallback) */
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2.5rem !important; }
.my-8 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }
.p-6 { padding: 1.5rem !important; }

/* Sidebar styling */
#sidebar {
    background-color: #135DDD !important;
    width: 80px !important; /* Reduced width for icon-only sidebar */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    overflow-y: hidden !important; /* Hide vertical scrollbar */
    overflow-x: hidden !important; /* Hide horizontal scrollbar */
    z-index: 1000 !important;
}
.sidebar-wrapper .menu {
    padding: 0 1rem;
}

#sidebar .sidebar-wrapper {
    background-color: #135DDD !important;
    width: 80px !important;
    height: 100% !important;
    overflow: hidden !important;
}

#sidebar .sidebar-menu {
    background-color: #135DDD !important;
    height: calc(100% - 80px) !important; /* Subtract header height */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* Internet Explorer 10+ */
}

/* Hide scrollbar for Chrome, Safari and Opera */
#sidebar .sidebar-menu::-webkit-scrollbar {
    display: none !important;
}

/* Hide Perfect Scrollbar elements in sidebar */
#sidebar .ps__rail-x,
#sidebar .ps__rail-y,
#sidebar .ps__thumb-x,
#sidebar .ps__thumb-y {
    display: none !important;
}

#sidebar .sidebar-header {
    background-color: #135DDD !important;
}

/* Hide text labels for icon-only sidebar */
#sidebar .sidebar-link span {
    display: none !important;
}

/* Hide sidebar titles */
#sidebar .sidebar-title {
    display: none !important;
}

/* Hide sidebar brand text */
#sidebar .sidebar-brand {
    display: none !important;
}

/* Center icons in sidebar */
#sidebar .sidebar-link {
    justify-content: center !important;
    padding: 0.7rem 0 !important;
}

/* Adjust logo area for icon-only view */
#sidebar .logo a {
    justify-content: center !important;
}

#sidebar .logo img {
    width: 45px !important;
    height: auto !important;
}
.sidebar-wrapper .menu .sidebar-link {
    display: block;
    padding: .7rem 1rem;
    font-size: 16px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    transition: all .5s;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Inter';
    font-weight: normal;
}
.sidebar-wrapper .menu .sidebar-title {
    padding: 0 1rem;
    margin: 1.5rem 0 1rem;
    font-size: 16px;
    list-style: none;
    font-weight: normal;
    color: #ffffff;
    font-family: 'Inter';
}
.sidebar-wrapper .menu .sidebar-item.active>.sidebar-link {
    background-color: #E5EDFC;
    color: #135DDD;
}
.sidebar-wrapper .menu .sidebar-item.active>.sidebar-link span {
    color: #135DDD;
}
.sidebar-wrapper .menu .sidebar-link svg, .sidebar-wrapper .menu .sidebar-link i {
    color: #ffffff;
}
.sidebar-wrapper .menu .sidebar-link:hover, .sidebar-wrapper .menu .sidebar-link:hover svg, .sidebar-wrapper .menu .sidebar-link:hover i  {
    
    color: #135DDD;
   
}
.sidebar-wrapper .menu .sidebar-item.active.has-sub .sidebar-link:after {
    content: url();
}

/* Tooltip for icon-only sidebar */
#sidebar .sidebar-link {
    position: relative;
}

#sidebar .sidebar-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 85px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s;
    pointer-events: none;
}
.sidebar-wrapper .menu .sidebar-item.active>.sidebar-link svg, .sidebar-wrapper .menu .sidebar-item.active>.sidebar-link i {
    fill: #135DDD;
    color: #135DDD;
}
/* Mobile responsive styles */
@media (max-width: 767px) {
    .welcome-title {
        font-size: 30px !important;
    }
}

/* Adjust main content for icon-only sidebar */
#main {
    margin-left: 80px !important;
    width: calc(100% - 80px) !important;
    min-height: 100vh !important;
    position: relative !important;
    display: block !important;
    padding: 0 !important;
}

/* Fix main content positioning */
#main header {
    
    padding: 1rem 1.5rem !important;
        border-bottom: 1px solid #CCCCCC;
}

/* Reduce excessive spacing in main content */
#main .page-heading {
    
}

#main .page-content {
    padding: 0 1.5rem 1.5rem 1.5rem !important;
    margin: 0 !important;
}

/* Ensure proper layout flow */
.page-title {
    margin-bottom: 0.5rem !important;
}

/* Remove any default margins that might cause spacing */
.page-title .row {
    margin: 0 !important;
}

/* Hide submenu in icon-only mode */
#sidebar .submenu {
    display: none !important;
}

/* Submenu panel that appears on click */
.submenu-panel {
    position: fixed;
    left: 98px;
    width: 250px;
    background-color: #135DDD;
    border-radius: 5px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: none;
    overflow: hidden;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 50px 9px 50px 15px;
}

.submenu-panel.active {
    display: block !important;
}

.submenu-panel .panel-header {
    padding: 12px 0px 12px 13px;
    border-bottom: none;
    margin-bottom: 10px;
    position: relative;
}

.submenu-panel .panel-header::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 96px;
    right: 13px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
}

.submenu-panel .panel-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
}

.submenu-panel .panel-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0.25rem 0 0 0;
}

.submenu-panel .submenu-item {
    list-style: none;
    margin: 0;
}

.submenu-panel .submenu-item a {
    color: #ffffff ;
        padding: 12px 0px 12px 13px;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s;
    border-radius: 5px;
    font-size: 14px;
}

.submenu-panel .submenu-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.submenu-panel .submenu-item.active a {
        background-color: #E5EDFC;
    font-weight: normal;
    color: #135DDD;
}

/* Hide tooltips when submenu panel is active */
#sidebar .sidebar-link.has-submenu-open:hover::after {
    display: none !important;
}

/* No layout shift when submenu panel is open */
#main.submenu-open {
    /* Remove layout adjustments */
}

/* Responsive adjustments for mobile */
@media (max-width: 1199px) {
    #main {
        margin-left: 0 !important;
    }
    
    #sidebar {
        width: 250px !important;
        overflow-y: auto !important; /* Allow scrolling on mobile if needed */
    }
    
    #sidebar .sidebar-wrapper {
        width: 250px !important;
        overflow: visible !important;
    }
    
    #sidebar .sidebar-menu {
        height: auto !important;
        overflow: visible !important;
    }
    
    #sidebar .sidebar-menu::-webkit-scrollbar {
        display: block !important; /* Show scrollbar on mobile if needed */
    }
    
    #sidebar .sidebar-link span {
        display: inline !important;
    }
    
    #sidebar .sidebar-title {
        display: block !important;
    }
    
    #sidebar .sidebar-brand {
        display: block !important;
    }
    
    #sidebar .sidebar-link {
        justify-content: flex-start !important;
        padding: 0.7rem 1rem !important;
    }
    
    #sidebar .logo a {
        justify-content: flex-start !important;
    }
    
    #sidebar .logo img {
        width: 25% !important;
    }
    
    /* Restore submenu display on mobile */
    #sidebar .submenu {
        display: block !important;
        position: static !important;
        background-color: transparent !important;
        box-shadow: none !important;
        min-width: auto !important;
    }
    
    #sidebar .has-sub:hover .submenu {
        position: static !important;
        left: auto !important;
        top: auto !important;
    }
    
    /* Hide tooltips on mobile */
    #sidebar .sidebar-link:hover::after {
        display: none !important;
    }
}
