  :root {
            --sidebar-width: 250px;
            --topbar-height: 60px;
            --primary-blue: #5e72e4;
            --secondary-blue : #5065e1;
            --light-blue: #eaedff;
             --input-bg: #f9f9f9;
            --input-border: #e0e0e0;
            --body-bg: #f6f7fb;
            --primary-light: #818cf8;
            --dark: #1f2937;
            --light: #f9fafb;
            --gray: #9ca3af;
        }
        .text-primary{
            color: var(--primary-blue) !important;
        }
        /* General body styles */
        body {
            overflow-x: hidden;
            background-color: #f6f7fb;
            /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
            font-family: "Inter", sans-serif;
            width: 100%;


        }
        
        /* Sidebar Styles */
        #sidebar {
            width: var(--sidebar-width);
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            background-color: white;
            box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
            transition: all 0.3s;
            z-index: 1000;
            
        }
        
        .sidebar-header {
            padding: 10px;
            color: var(--primary-blue);
            background: white;
            border-bottom: 1px solid #e0e0e0;
            width: 85%;
            margin: 0 auto;
            box-sizing: border-box;
            height:60px;
        }
        .notify-badge{
            background-color: var(--primary-blue);
            padding: 5px;
            color: white;
            border-radius: 50%;
            font-size: 10px;
        }
        /* Projects Section Styles */
        .projects-section {
            margin-bottom: 20px;
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 15px;
            min-height: 250px;
        }
        
        .projects-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px 10px 20px;
            margin-bottom: 10px;
        }
        
        .user-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: var(--primary-blue); /* Bootstrap primary */
    color: white;
    font-weight: 600;
    font-size: 16px;
}


        .projects-title {
            font-weight: 600;
            color: #333;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .add-project-btn {
            background: none;
            border: none;
            color: var(--primary-blue);
            font-size: 1.1rem;
            cursor: pointer;
            padding: 2px;
            border-radius: 50%;
            transition: all 0.2s;
        }
        

        
        .projects-list {
            overflow-y: auto;
            padding: 0 10px;
            min-height: 200px;
        }
        
        .projects-list::-webkit-scrollbar {
            width: 4px;
        }
        
        .projects-list::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 2px;
        }
        
        .projects-list::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 2px;
        }
        
        .projects-list::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        
        .project-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 4px 6px;
            margin-bottom: 2px;
            border-radius: 6px;
            transition: all 0.2s;
            cursor: pointer;
        }
        
        .project-item:hover ,.project-item.active{
            background: var(--light-blue);
            color: var(--primary-blue);
        }
       .project-item.active .project-link,
        .project-item.active .project-name,
        .project-item.active .project-menu-btn i {
            color: var(--primary-blue); /* force links/icons inside to be white */
        }
        .project-name {
            font-size: 0.85rem;
            color: #555;
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding: 0;
            margin: 0;
            line-height: 1.2;
        }
        
        .project-link {
            text-decoration: none;
            color: inherit;
            flex: 1;
            display: flex;
            align-items: center;
            transition: all 0.2s;
            padding: 0;
            margin: 0;
            line-height: 1;
            height: auto;
        }
        
        .project-link:hover {
            text-decoration: none;
            color: var(--primary-blue);
        }
        
        .project-link {
            color: var(--primary-blue);
        }
        
     
        
        .project-link:hover .project-name {
            color: var(--primary-blue);
        }
        
        .project-actions {
            opacity: 1;
            transition: opacity 0.2s;
        }
        
        .project-item:hover .project-actions {
            opacity: 1;
        }
        
        .project-menu-btn {
            background: none;
            border: none;
            color: #666;
            font-size: 0.8rem;
            cursor: pointer;
            padding: 1px;
            border-radius: 3px;
            transition: all 0.2s;
        }
        
        .project-menu-btn:hover {
            background: rgba(0, 0, 0, 0.1);
            color: var(--primary-blue);
        }
        
        /* Project dropdown menu styles */
        .project-dropdown {
            position: absolute;
            right: 0;
            top: 100%;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            min-width: 120px;
            z-index: 1000;
            display: none;
            padding: 8px 0;
        }
        
        .project-dropdown.show {
            display: block;
        }
        
        .project-dropdown-item {
            display: block;
            width: 100%;
            padding: 8px 16px;
            border: none;
            background: none;
            text-align: left;
            font-size: 0.85rem;
            color: #555;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .project-dropdown-item:hover {
            background: var(--light-blue);
            color: var(--primary-blue);
        }
        
        .project-dropdown-item.delete {
            color: #dc3545;
        }
        
        .project-dropdown-item.delete:hover {
            background: #f8d7da;
            color: #dc3545;
        }
        
        .project-item {
            position: relative;
        }
        
        .sidebar-menu {
            padding: 0;
            list-style: none;
            margin-top: 10px;
        }
        
        .sidebar-menu li {
            position: relative;
            padding-top:5px;
        }
        
        .sidebar-menu li a {
            display: block;
            padding: 12px 20px;
            color: #333;
            text-decoration: none;
            transition: all 0.2s;
            border-left: 3px solid transparent;
             width: calc(100% - 20px);
             border-radius: 0px 6px 6px 0px;
        }
        
        .sidebar-menu li a:hover,
        .sidebar-menu li a.active {
            background: var(--light-blue);
            color: var(--primary-blue);
            /* border-left: 3px solid var(--primary-blue); */
        }
        
        .sidebar-menu li a i {
            margin-right: 10px;
            color: var(--primary-blue);
        }
        
        .sidebar-menu li a:hover i,
        .sidebar-menu li a.active i {
            color: var(--primary-blue);
        }
        
        /* Submenu Styles (not used in this template, but ready for future use) */
        .sidebar-menu .submenu {
            display: none;
            padding-left: 10px;
            background: #f8f9fa;
        }
        
        .sidebar-menu .submenu li a {
            padding: 10px 15px 10px 30px;
        }
        
        .sidebar-menu li.active > .submenu {
            display: block;
        }
        
        /* Main Content Styles */
        #content {
            padding: 10px 0 0 250px;
            /* padding-left: var(--sidebar-width); */
            min-height: 80vh;
            transition: all 0.3s;
            margin-top: 45px;
        }
        
        /* Topbar Styles */
        #topbar {
            height: var(--topbar-height);
            background: white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            position: fixed;
            top: 0;
            right: 0;
            left: var(--sidebar-width);
            z-index: 999;
            transition: all 0.3s;
        }
        
        /* Sidebar toggle button styles */
        #sidebarCollapse {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--primary-blue);
        }
        
        /* Collapsed Sidebar Styles */
        #sidebar.collapsed {
            left: calc(-1 * var(--sidebar-width));
        }
        /* change margin left to padding left */
        #sidebar.collapsed + #content,
        #sidebar.collapsed ~ #topbar {
            padding-left: 0;
            left: 0;
        }
        
        /* Responsive Styles for tablets and below */
        @media (max-width: 968px) {
            #sidebar {
                left: calc(-1 * var(--sidebar-width));
            }
            
            #sidebar.collapsed {
                left: 0;
            }
            /* change margin left to padding left */
            #content,
            #topbar {
                padding-left: 0;
                left: 0;
            }
            
            #sidebar.collapsed + #content,
            #sidebar.collapsed ~ #topbar {
                left: var(--sidebar-width);
            }
        }
        
        /* Card Styles for dashboard widgets */
        .card {
            border: none;
            border-radius: 10px;
            box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
            /* transition: transform 0.2s; */
        }
        
        /* .card:hover {
            transform: translateY(-5px);
        } */
        
        .card-header {
            background: var(--primary-blue);
            color: white;
            border-radius: 10px 10px 0 0 !important;
        }
        
        /* Badge Styles for notifications */
        .badge-blue {
            background: var(--primary-blue);
            color: white;
        }
       
        /* On mobile, keep the sidebar hidden when collapsed */
        @media (max-width: 968px) {
            #sidebar {
                left: calc(-1 * var(--sidebar-width));
            }
            #sidebar.collapsed {
                left: 0;
                width: var(--sidebar-width);
            }
            body.sidebar-collapsed #content,
            body.sidebar-collapsed #topbar {
                margin-left: 0 !important;
            }
        }
        /* Sidebar logo and title styles */
        .sidebar-logo {
            width: 40px;
            height: 40px;
            object-fit: contain;
            display: inline-block;
            vertical-align: middle;
            transition: all 0.3s;
        }
        .sidebar-title {
            font-size: 1rem;
            font-weight: bold;
            margin-left: 10px;
            vertical-align: middle;
            transition: opacity 0.3s, width 0.3s;
            display: inline-block;
            white-space: nowrap;
        }
        /* Collapsed sidebar styles for desktop */
        @media (min-width: 969px) {
            #sidebar.collapsed .sidebar-title {
                opacity: 0;
                width: 0;
                margin: 0;
                overflow: hidden;
                pointer-events: none;
            }
            #sidebar.collapsed .sidebar-logo {
                margin: 0 auto;
                display: block;
            }
      
            #sidebar.collapsed {
                width: 80px;
                left: 0;
            }
            /* change margin left to padding left */
            body.sidebar-collapsed #content,
            body.sidebar-collapsed #topbar {
                padding-left: 80px !important;
            }
            #sidebar.collapsed .sidebar-header {
                width: 100%;
                text-align: center;
                padding-left: 0;
                padding-right: 0;
            }
            #sidebar.collapsed .sidebar-menu li a span {
                display: none;
            }
            #sidebar.collapsed .sidebar-menu li a {
                text-align: center;
                padding-left: 0;
                padding-right: 0;
            }
            #sidebar.collapsed .sidebar-menu li a i {
                margin-right: 0;
                font-size: 1rem;
            }
            
            /* Collapsed sidebar projects section */
            #sidebar.collapsed .projects-section {
                display: none;
            }
        }

/* ---------------------------------------------------------------------------------------------- */
        /* dashboard main content css */
/* ---------------------------------------------------------------------------------------------- */
           
        .stats-card {
        background-color: var(--card-bg, #ffffff);
        border-radius: 12px;
        padding: 1rem 1.25rem;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
        transition: transform 0.2s ease;
        }

        .stats-card:hover {
            transform: translateY(-3px);
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: #212529;
        }

        .stat-label {
            color: var(--text-muted, #6c757d);
            font-size: 0.9rem;
        }
        .icon-circle {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nav-pills .nav-link.active {
            background-color: var(--primary-color);
        }
        
    .project-card {
        background-color: var(--card-bg, #ffffff);
        border-radius: 12px;
        padding: 1rem 1.25rem;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
        transition: transform 0.2s ease;
        }
        
        /* Tag badge styles for project creation modal */
        .tag-badge {
            display: inline-block;
            background-color: var(--primary-blue);
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
            margin: 2px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .tag-badge:hover {
            background-color: #4a5fd1;
        }
        
        .remove-tag {
            margin-left: 4px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .remove-tag:hover {
            color: #ff6b6b;
        }
        
        /* Modal custom styles */
        .modal-content {
            border-radius: 12px;
            border: none;
            box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
        }
        
        .modal-header {
            border-bottom: 1px solid #e9ecef;
            background-color: white;
            border-radius: 12px 12px 0 0;
        }
        
        .modal-footer {
            border-top: 1px solid #e9ecef;
            background-color: white;
            border-radius: 0 0 12px 12px;
        }
/* -------------------------------------------------------------------------------------------------------- */
        /* add project model */
        /* Modal Styling */
 /* ------------------------------------------------------------------------------------------------ */
.project-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border: none;
}

.project-modal-header {
    background: white;
    border-radius: 16px 16px 0 0;
    /* border: none; */
}

.project-modal-footer {
    background: white;
    border-radius: 0 0 16px 16px;
    /* border-top: none; */
}

/* Form Inputs */
.project-label {
    color:white;
    font-weight: 500;
}
.keyword-tag {
  background-color: var(--primary-blue);   
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;         /* pill style */
  font-size: 0.85rem;
  cursor: default;
}
.keyword-tag i {
  margin-left: 6px;
  cursor: pointer;
  color: white;
}
.keyword-tag i:hover {
  color: #dc3545; /* red on hover for delete */
}


.project-input {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.project-input-left {
    border-radius: 8px 0 0 8px;
    border: 1px solid #e0e0e0;
}
/* Disable Bootstrap green success state */
.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: #ced4da !important;   /* reset to default border */
  padding-right: 0.75rem !important;  /* normal padding */
  background-image: none !important;  /* remove green check icon */
  box-shadow: none !important;        /* no glow */
}





/* Switch + Help Text */
.project-switch {
    border-color: #5e72e4;
}

.project-subtext {
    color: #f3f4f5;
    margin-left: 2.5rem;
}

/* Buttons */
.project-btn-cancel {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    border: none;
}
.project-btn-cancel:hover {
    border-radius: 8px;
    border: none;
    background-color: #f3f4f5;
}

.plan-upgrade-close-btn {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    border: none;
}
.plan-upgrade-close-btn:hover {
    border-radius: 8px;
    border: none;
    background-color: #f3f4f5;
}

.buy-upvotes-close-btn{
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    border: none;
}

.buy-upvotes-close-btn{
    border-radius: 8px;
    border: none;
    background-color: #f3f4f5;
}
.project-modal-title {
    font-weight: 600;
}
   .form-label {
            font-weight: 500;
        }
        .form-control {
            background: white;
            border: 1px solid var(--input-border);
            border-radius: 0.5rem;
            padding: 0.55rem 1rem;
        }
        
        .form-control:focus {
            box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
            border-color: var(--primary-blue) !important;
            outline: none !important;
            /* background: var(--input-bg); */
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .btn-primary {
            background: var(--primary-blue);
            border: none;
            font-weight: 600;
            letter-spacing: 0.5px;
            border-radius: 0.5rem;
            transition: background 0.2s;
        }
        .btn-primary:hover {
            background: #5e72e4;
        }
        .form-check-label {
            font-size: 0.97rem;
        }
        .form-text {
            font-size: 0.9rem;
            color: #6c757d;
        }

        /* Change the switch (checkbox) color when enabled */
input.form-check-input:checked {
    background-color: #5e72e4;
    border-color: #5e72e4;
}

/* Optional: Change focus ring to match primary */
input.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(94, 114, 228, 0.25);
}
/* --------------------------------------------------------------------------- */
/* project details page css */
/* -------------------------------------------------------------------------- */

.dashboard-header{
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    margin-bottom: 20px;
}
.btn-edit-project, 
.project-btn-save, 
.project-tag-btn, 
.comment-approve-btn,
.custom-btn {
   background-color: var(--primary-blue);
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    border: none;
   
}
.project-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px; /*match roughly your button’s height (8px padding top+bottom + font)*/
    padding: 8px 12px; /* horizontal padding similar to button*/
    border-radius: 8px; /* same as button */
    font-size: 0.9rem; /* same as button */
    font-weight: 600;
    color: white;
}

.post-limit-card{
    border-radius: 10px;
    border: 1px solid var(--primary-blue);
    padding: 15px;
}
.comment-regenerate-btn ,.border-btn{
   background-color: white;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.comment-actions-btn {
    background: #ffffff;
    color: #5c6c74;
    padding: 5px 8px;
    font-size: 12px;
    border: 0;
    transition: background-color 0.2s;
    border-radius: 15px;
}

.comment-actions-btn:hover,.comment-actions-btn:focus,.comment-actions-btn:active {
    background: #0000001c;
    color: #000000;
}


.btn-edit-project:hover,
.btn-edit-project:active,
.btn-edit-project:focus{
    background-color: #5e72e4;
    color: white;
    outline: none;
    box-shadow: none;
}
 
 
        /* Minimal spinner overlay styles */
        .post-spinner{
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.75);
            z-index: 10;
        }
      
.tag{
    background-color: var(--light-blue);
    padding: 8px;
    border-radius: 10px;
}

/* filter section ui  */
.filter-card{
            border: none;
            border-radius: 10px;
            box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
            background-color: white;
}
.form-select:focus {
    box-shadow: none !important;
    border-color: var(--primary-blue) !important;  /* or your theme primary */
}
/* Customize select dropdown to match app theme */
.custom-select {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease-in-out;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

/* Replace default focus style */
.custom-select:focus {
    outline: none;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

/* Optional: subtle hover effect */
.custom-select:hover {
    background-color: #f9f9f9;
}


.custom-select option:hover,
.custom-select option:focus {
  background-color: #f8f9fa !important; /* your app's neutral color */
  color: #333;
}
/* post section UI */
.post-card {
    border-radius: 10px;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    padding: 15px;
}

.post-title {
    color: #333;
    font-size: 1rem;
}

.post-meta {
    font-size: 0.8rem;
    color: #888;
}

.post-stats span {
    font-size: 0.85rem;
    color: #555;
}

.visitors {
    color: var(--primary-blue);
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

.btn-theme {
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
}

.btn-theme:hover {
    background-color: #4e61d1;
}

.btn-outline-theme {
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    background-color: transparent;
}

.btn-outline-theme:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

.btn-view-comment {
    background-color: var(--primary-blue);
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    border: none;
    position: relative;
    z-index: 9;
}
.btn-search {
    background-color: var(--primary-blue);
    color: #fff;
    border:none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    border: none;
    position: relative;
    z-index: 9;
    height: 41px;
}

.btn-view-comment:hover,
.btn-view-comment:focus,
.btn-view-comment:active {
    background-color: #4e5ed9; /* slightly darker shade of your --primary-blue */
    color: #fff;
    outline: none;
    box-shadow: none;
}

.btn-generate-comment{

    background-color: white;
    color: var(--primary-blue);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    border: none;
    position: relative;
    z-index: 9;
}

.comment-regenerate-btn img{
    width: 20px;
    height: 20px;
    margin-right: 2px;
}
.btn-generate-comment:hover,
.btn-generate-comment:focus,
.btn-generate-comment:active {
    background-color: #e2e4f8; /* slightly darker shade of your --primary-blue */
    outline: none;
    box-shadow: none;
}
.visitors{
    color: var(--primary-blue);
}

/* Badge positioning */
.post-status-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 1;
}

/* Badge styling */
.badge {
    font-size: 0.75rem;
    padding: 8px 13px;
    border-radius: 8px;
    font-weight: 600;
}

.badge.replied {
    background-color: rgba(25, 135, 84, 0.1); /* light green */
    color: #198754; /* Bootstrap success */
}

.badge.unreplied {
    background-color: rgba(255, 193, 7, 0.1); /* light yellow */
    color: #ffc107; /* Bootstrap warning */
}

.comment_question{
    border: 1px solid var(--primary-blue);
    border-radius: 10px;
    padding: 10px 10px;
    
}

.comment_question h3{
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}
    /* Flat layout (optional) */
    .nav-pills .nav-link {
        border-radius: 0;
        background-color: transparent;
        color: #000; /* Default text color */
        border-radius: 8px;
    }

    /* Active tab styling */
    .nav-pills .nav-link.active {
        background-color: #eaedff !important;
        color: #5e72e4 !important;
    }




/* ----------------------------------------------------------------------------------------------- */
/* project page UI  */
/* ----------------------------------------------------------------------------------------------- */
/* Remove border and use white background */
.custom-modal-header,
.custom-modal-footer {
    background-color: #ffffff;
    /* border: none; */
}

/* Optional: Add padding or shadow for better aesthetics */
.custom-modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;

}

/* Vertically and horizontally center already handled by Bootstrap */






/* -----------------------------------------  selecty only css custom */

.custom-dropdown {
  position: relative;
  width: 100%;
    font-family: "Inter", sans-serif;
}

.custom-dropdown.is-invalid .dropdown-selected {
  border: 1px solid #dc3545; /* Bootstrap danger red */
}

.dropdown-selected {
  padding: 8px 14px;
  background-color: white;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: #333;
  transition: border-color 0.3s;
}



.dropdown-options {
  display: none;
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  list-style: none;
  margin: 5px 0 0 0;
  padding: 4px 0;
  z-index: 999;
}

.dropdown-options li {
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #333;
}

.dropdown-options li:hover {
  background-color: #f0f0f0;
}

.check-icon {
  display: none;
  color: #4C75F2; /* App primary color */
}
.dropdown-toggle::after {
    display: none; /* removes Bootstrap's default caret */
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.custom-dropdown .dropdown-selected:focus,
.custom-dropdown .dropdown-selected:active,
.custom-dropdown .dropdown-selected.show {
  border-color: var(--primary-blue);
  outline: 0;
    box-shadow: 0 0 0 2px rgba(94, 114, 228, 0.10);

}

/* ------------------------------------------------------------------------------------- */
/* upvotes index page  */
/* ------------------------------------------------------------------------------------ */

.upvote-card{
    background-color: #fff;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    transition: box-shadow 0.2s ease-in-out;
    height: 100%;
    padding: 20px;
}
.current-balance-text{
    background-color: var(--primary-blue);
    padding: 10px;
    color: white;
    border-radius: 8px;
} 
.upvote-order-card{
        border: none;
        border-radius: 10px;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
        background-color: white;
        padding: 20px;
}
 .filter-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
  }

  .filter-btn.active {
    background-color: #5e72e4;
    color: #fff;
  }

  .filter-btn:hover:not(.active) {
    background-color: rgba(94, 114, 228, 0.1);
  }
.table-responsive {
    min-height: 250px;  /* adjust as needed */
}
/* Disable hover effect on "no-hover" row */
/* Remove hover background only for no-hover row */
.table-hover tbody tr.no-hover:hover {
    background-color: transparent !important;
    cursor: default;
}

  /* Badge base */
  .badge-count {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 5px;
    margin-left: 4px;
    background-color: #f8f9fa; /* light grey */
    color: #000;
  }
  /* Custom colors */
  .badge-count.pending {
    background-color: #fff3cd; /* light yellow */
    color: #856404;
  }

  .badge-count.in-progress {
    background-color: #d1ecf1; /* light blue */
    color: #0c5460;
  }

  .badge-count.completed {
    background-color: #d4edda; /* light green */
    color: #155724;
  }

  .badge-count.partial {
    background-color: #e2e3e5; /* light grey */
    color: #383d41;
  }

  .badge-count.canceled {
    background-color: #f8d7da; /* light red */
    color: #721c24;
  }

    .dropdown-scroll {
    max-height: 160px;
    overflow-y: auto;
  }

  /* Light scroll style */
  .dropdown-scroll::-webkit-scrollbar {
    width: 6px;
  }
  .dropdown-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(209, 209, 211, 0.664);
    border-radius: 0 4px 4px 0;
  }
  .dropdown-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(211, 217, 253, 0.7);
  }
  .dropdown-scroll::-webkit-scrollbar-track {
    background: transparent;
  }
  .dropdown-scroll::-webkit-scrollbar-track {
  background: #fff; /* Changed from transparent to white */
}

  /* Item hover effect */
  .dropdown-item:hover {
    background-color: rgba(94, 114, 228, 0.1);
  }

/* -------------------------------------------------------------------------- */
/* verify-email page UI  */
/* -------------------------------------------------------------------------- */
.center-container {
    display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;     /* vertical centering */
    height: 90vh;           /*full viewport height*/
    background-color: #f8f9fa; /* optional */
  }
    .verification-card {
      max-width: 400px;
      /* margin: 0 auto; */
      padding: 30px;
      border-radius: 10px;
      background-color: #fff;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
      text-align: center;

    }
    .btn-primary {
      background-color: var(--primary-blue);
      border-color: var(--primary-blue);
    }
    .btn-primary:hover {
      background-color: #4A5CD1;
      border-color: #4A5CD1;
    }
    #edit-email-input {
      display: none;
      margin-bottom: 10px;
    }
    .edit-link {
      color: var(--primary-blue);
      text-decoration: underline;
      cursor: pointer;
      display: inline-block;
      margin-top: 15px;
    }




/* ------------------------------------------------------------------------------- */
/* Forgot password, Login, SignUp Page UI auth/forgot_password/forgot-password.balde.php*/
/* ------------------------------------------------------------------------------- */

    
        .forgot-card,.login-card,.register-card {
            background: white;
            border-radius: 1.25rem;
            box-shadow: 0 4px 32px rgba(0,0,0,0.08);
            padding: 2.5rem 2rem;
            max-width: 400px;
            width: 100%;
            margin: 2rem auto;
        }
        .forgot-title,.login-title,.register-title {
            color: var(--primary-blue);
            font-weight: 700;
            margin-bottom: 1.5rem;
            letter-spacing: 1px;
        }
        .form-label {
            font-weight: 500;
        }
        .form-control {
            /* background: var(--input-bg); */
            border: 1px solid var(--input-border);
            border-radius: 0.5rem;
            padding: 0.5rem 1rem;
        }
        .form-control:focus {
            box-shadow: 0 0 0 2px rgba(94, 114, 228, 0.10);
            border-color: var(--primary-blue) !important;
            outline: none !important;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
       
        .forgot-footer a, .login-footer a, .register-footer a {
            color: var(--primary-blue);
            font-weight: 600;
            text-decoration: none;
        }
        .forgot-footer a:hover ,.login-footer a:hover, .register-footer a:hover {
            text-decoration: underline;
        }
        .alert {
            border-radius: 0.5rem;
        }
        /* Ensure invalid state shows red border (even when focused) and hide icon */
        .form-control.is-invalid, .was-validated .form-control:invalid {
            background-image: none !important;
            border-color: #dc3545 !important;
            box-shadow: none !important;
        }
        .form-control.is-invalid:focus, .was-validated .form-control:invalid:focus {
            border-color: #dc3545 !important;
            box-shadow: none !important;
        }
        /* Ensure keywords input always shows red border when invalid */
        #keywords_input.is-invalid,
        #keywords_input.is-invalid:focus {
            border-color: #dc3545 !important;
            box-shadow: none !important;
        }
     
        .toggle-password-btn {
            position: absolute;
            right: 1.05rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            outline: none;
            padding: 0;
            color: #aaa;
            display: flex;
            align-items: center;
            height: 2.5rem; /* Match your input height if needed */
            color: var(--primary-blue);
        }

        /* -------------------------------------------------------------------------- */
        /* profile page UI */
        /* -------------------------------------------------------------------------- */
.profile-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
        background-color: var(--primary-blue);

    color: #fff;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

   
     /* -------------------------------------------------------------------------- */
        /* social account page UI */
        /* -------------------------------------------------------------------------- */
   
        .account-card {
    position: relative; /* Needed for status positioning */
    padding: 12px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.account-status {
    position: absolute;
    top: 12px;
    right: 12px; /* moved from left to right */
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    color: #fff;
    background-color: #28a745; /* green for active by default */
    text-transform: uppercase;
}

.account-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.account-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
}

.account-info {
    flex-grow: 1;
}

.account-username {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.account-label {
    font-size: 0.75rem;
    color: #424548;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 4px;
}

.connection-date {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 2px;
}

.account-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}
.disconnect-btn {
    background-color: #dc3545;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    border: none;
    color:white;
}
 .custom-btn.disabled {
    background-color: #7f8fe6;
    color: #ffffff;
    border-color: #7f8fe6;
}
/* ---------------------------------------------------------------------------------- */
/* view comment page UI */
/* ---------------------------------------------------------------------------------- */

.social-account.selected {
border: 1px solid #5e72e4 !important;
}


/* ---------------------------------------------------------------------------------- */
/* billing index page */
/* ---------------------------------------------------------------------------------- */

/* plan showing section.. */
    .pricing-section {
            padding: 3rem 1rem;
            background-color: var(--light-gray);
        }


  /* Center the toggle bar */
.pricing-toggle {
    border: none;
    background: #fff;
    border-radius: 10px;
    display: inline-flex;   /* shrink to fit content */
    padding: 6px;
    margin: 0 auto;         /* center horizontally */
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;

}

/* Tab buttons */
.pricing-toggle .nav-link {
    border: none;
    color: #333;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Active button */
.pricing-toggle .nav-link.active {
    background: #eaedff;
    color: var(--primary-blue);
}
/* Inline badge after text */
.badge-free {
    background-color: #ff9800; /* Bootstrap primary color */
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 5px;
    margin-left: 6px; /* space from the text */
}




        /* Pricing Cards */
        .pricing-card {
            border: 2px solid #e5e7eb;
            border-radius: 16px;
            padding: 2rem;
            background: #fff;
            text-align: center;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
            position: relative;
        }

        .pricing-card:hover {
            border-color: var(--primary-blue);
        }

        .pricing-card h3 {
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .pricing-card .price {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 1rem;
        }

        .pricing-card .price span {
            font-size: 1rem;
            font-weight: 400;
            color: #6b7280;
        }

        .pricing-features {
            list-style: none;
            padding: 0;
            margin: 1.5rem 0;
            text-align: left;
            flex-grow: 1;
        }

        .pricing-features li {
            margin-bottom: .75rem;
            display: flex;
            align-items: flex-start;
        }

        .pricing-features li:before {
            content: "✔";
            color: #10b981;
            margin-right: 8px;
            font-weight: bold;
        }

        .btn-subscribe {
            border: 2px solid var(--primary-blue);
            color: var(--primary-blue);
            border-radius: 8px;
            padding: .75rem;
            font-weight: 600;
            transition: all 0.3s;
            background-color: white;
        }

        .btn-subscribe:hover {
            background: var(--primary-blue);
            color: #fff;
        }

        .btn-filled {
            background: var(--primary-blue);
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: .75rem;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-filled:hover {
            background: var(--secondary-blue);
        }

        .current-plan-btn {
                   /* Reduce opacity */
            cursor: not-allowed;      /* Show disabled cursor */
            pointer-events: none;     /* Disable hover/click effects */
            border: none;
            background-color: var(--light-blue); /* Light gray background */
        }



        .popular {
            border: 2px solid var(--primary-blue);
            box-shadow: 0 0 0 2px rgba(94,114,228,0.2);
            position: relative;
        }

        .popular::before {
            content: "Most Popular";
            position: absolute;
            top: -14px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--primary-blue);
            color: #fff;
            font-size: 0.8rem;
            padding: 4px 12px;
            border-radius: 20px;
            font-weight: 600;
        }

        .yearly-savings {
            font-size: 0.9rem;
            color: #10b981;
            font-weight: 600;
            margin-top: -10px;
            margin-bottom: 15px;
        }

        @media (max-width: 767.98px) {
            .pricing-card {
                margin-bottom: 1.5rem;
            }
            .toggle-option {
                padding: 8px 16px;
                font-size: 0.9rem;
            }
            .pricing-toggle {
                width: 240px;
            }
        }
/* ---------------------------------------------------------------------------------- */
/* billing index page  */
/* ---------------------------------------------------------------------------------- */
        

        /* .dashboard-container {
            max-width: 1200px;
            margin: 0 auto;
        } */
        
        .compact-card {
            background: #fff;
            border-radius: 12px;
            box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
            overflow: hidden;
        }
        
        .compact-header {
            background: linear-gradient(120deg, var(--primary-blue), var(--primary-light));
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        



        .plan-title {
            font-size: 1.2rem;
            font-weight: 700;
            margin: 0;
        }
        
        .price-tag {
            font-size: 15px;
            font-weight: 600;
            opacity: 0.9;
            margin: 3px 0 0;

        }
        
        .plan-details-toggle-btn {
            background: white;
            color: var(--primary-blue);
            font-weight: 700;
            padding: 5px 12px;
            border:none;
            border-radius: 20px;
            font-size: 0.9rem;
        }
        
        .compact-content {
            padding: 15px 20px;
        }
        
        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }
        
        .metric-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 12px;
            background: #f8f9fa;
            border-radius: 8px;
            transition: all 0.2s ease;
        }
        
        .metric-item:hover {
            background: #e9ecef;
        }
        
        .metric-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .metric-icon {
            width: 30px;
            height: 30px;
            background: rgba(99, 102, 241, 0.1);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-blue);
            font-size: 14px;
        }
        
        .metric-name {
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .metric-value {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--dark);
        }
        
        .metric-description {
            font-size: 0.7rem;
            color: var(--gray);
            margin-top: 2px;
        }
        
        .compact-footer {
            background: #f8f9fa;
            padding: 12px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .billing-info {
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        
        @media (max-width: 992px) {
            .metrics-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .metrics-grid {
                grid-template-columns: 1fr;
            }
            
            .compact-header {
                flex-direction: column;
                text-align: center;
                gap: 10px;
            }
            
            .compact-footer {
                flex-direction: column;
                text-align: center;
                gap: 10px;
            }
        }
        
        @media (max-width: 576px) {
            .compact-content {
                padding: 12px 15px;
            }
            
            .metric-item {
                padding: 8px 10px;
            }
            
            .metric-icon {
                width: 26px;
                height: 26px;
            }
        }
        .plan-badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0.5rem; /* pill-shaped */
}

.plan-badge.active {
    background-color: #c1d6cb; /* light green */
    color: #065f46; /* dark green text */
}

.plan-badge.expired {
    background-color: #fee2e2; /* light red */
    color: #991b1b; /* dark red text */
}


/* -------------------------------------------------------------------------------------------------- */
/* enterprice plan quote form UI */
/* -------------------------------------------------------------------------------------------------- */

.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.info-card, .form-card {
    flex: 1 1 auto; /* stretch to fill height */
}

.info-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #6d7fd9 100%);
    color: white;
    padding: 40px 30px;
    text-align: left;
}

.info-card h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.info-card p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.form-card {
    padding: 40px 30px;
    background: white;
    min-height: 450px;
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}
/* Remove red exclamation mark in invalid fields */
 
/* Remove red exclamation mark for select without removing arrow */
.form-select:invalid {
    box-shadow: none;           /* remove red glow */
    -webkit-appearance: none;   /* remove default browser icon in Chrome/Safari */
    -moz-appearance: none;      /* remove default icon in Firefox */
    appearance: none;           /* remove default icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath fill='%23333' d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); 
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    padding-right: 2.5rem;      /* make space for custom arrow */
}
.iti{
    width: 100%;
}
/* Font size for inputs and selects */ #enterpriseForm .form-control, #enterpriseForm .form-select { font-size: 13px; /* adjust to desired size */ padding: 0.5rem 0.75rem; /* optional: adjust padding for better appearance */ } #enterpriseForm .form-label{ font-size:13px; }
@media (max-width: 992px) {
    .col-lg-5, .col-lg-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
