body{
    overflow-x: hidden;
}

.min-160{
    min-width: 160px;
}

/* App Blade PHP */

.navbar .container {
    max-width: 100% !important;
    width: 100% !important;
}
#navbarDropdown{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid #0000001f;
    border-radius: 15px;
    padding: 10px 10px;
    margin-bottom: 10px;
}
#navbarDropdown .fa-user {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #1e98fb;
    background: #e4f3ff;
}
.user-details{
    display: flex;
    flex-direction: column;
}
.user-details p{
    margin-bottom: 0px;
    font-size: 16px;
    font-weight: 800;
}
.user-details span{
    font-size: 14px;
}
@media (min-width: 768px) {
    .navbar-expand-md .navbar-nav .dropdown-menu {
        left: 0;
    }
}
.sidebar {
    min-height: calc(100vh - 70px);
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    transition: all 0.3s;
    width: 250px;
    z-index: 1000;
}
.sidebar.collapsed {
    width: 60px;
}
.sidebar.collapsed .nav-link {
    text-align: center;
    padding: 0.75rem 0.5rem;
}
.sidebar.collapsed .nav-link .sidebar-text {
    display: none;
}
.sidebar.collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.25rem;
}
.sidebar .nav-link {
    display: flex;
    color: #333;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    position: relative;
    gap: 15px;
}
.sidebar .nav-link .sidebar-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sidebar .nav-link .sidebar-text p {
    margin-bottom: 0px;
    font-size: 16px;
    font-weight: 800;
}
.sidebar .nav-link .sidebar-text span {
    font-size: 13px;
    color: #b1b1b1;
}
.app-dark-theme .sidebar .nav-link.active .sidebar-text span {
    color: #e1e1e1;
}
.app-dark-theme .sidebar .nav-link:hover .sidebar-text span {
    color: #8b8b8b;
}
.app-dark-theme .sidebar .nav-link.active:hover .sidebar-text span {
    color: #e1e1e1;
}
.sidebar .nav-link i {
    margin-right: 0;
    width: 20px;
    text-align: center;
}
.sidebar .nav-link:hover {
    background-color: #e9ecef;
}
.sidebar .nav-link.active {
    background-color: #007bff;
    color: white;
    padding: 10px 10px;
    display: flex;
    align-items: center;
}
.sidebar.collapsed .nav-link:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 0;
    background: #007bff;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0 4px 4px 0;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
.main-content {
    transition: all 0.3s;
    margin-left: 0;
    position: relative;
    z-index: 1;
    padding: 0px;
    background-color: aliceblue;
}
.sidebar:not(.collapsed) + .main-content {
    margin-left: 0px;
}
.sidebar.collapsed + .main-content {
    margin-left: 0px;
}
.navbar .nav-item:hover .dropdown-menu {
    display: block;
}
.navbar .nav-item .dropdown-menu {
    margin-top: 0;
}
.toggle-password {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.navbar {
    padding-left: 0;
    padding-right: 0;
}
.navbar > .container {
    padding-left: 15px;
    padding-right: 15px;
}

body.login-page .navbar .nav-item:has(a[href*="login"]) {
    display: none;
}

/* Home Blade PHP */

.category-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
}

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

.hover-shadow {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dashboard-stats {
    font-size: 0.9rem;
}

.category-image {
    transition: transform 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-card .text-dark,
.category-card .text-muted,
.category-card .text-dark:hover {
    color: inherit !important;
}

.btn-filter {
    transition: all 0.2s ease;
}

.btn-filter:hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .category-card {
        margin-bottom: 1rem;
    }

    .dashboard-stats {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .filter-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-buttons .btn {
        width: 100%;
    }
}

/* Login Blade PHP */



/* Register Blade PHP */

.toggle-password {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Header New Design */

/* Custom navbar styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 1rem;
}

#sidebarToggle {
    padding: 0.375rem 0.75rem;
    margin-left: 10px;
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
    #sidebar{
        display: none;
    }

    .sidebar-toggle-btn{
        display: none;
    }
}

/* Add some spacing for the user dropdown */
.navbar-nav .nav-item {
    margin-left: 0.5rem;
}

.navbar-nav .dropdown-menu {
    left: auto;
    right: 0;
}

/* Login Blade Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #86198f 100%);
    overflow: hidden;
}

.auth-panel {
    width: 100%;
    max-width: 480px;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: #f9fafb;
}

.auth-logo{
    width: 280px;
    display: block;
    margin: 0 auto 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.auth-subtitle {
    font-size: 1rem;
    color: #d1d5db;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #a5a5a5;
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.input-field:focus {
    outline: none;
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.3);
}

.input-field.has-error {
    border-color: #f43f5e;
}

.input-field.has-error:focus {
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3);
}

.error-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #f43f5e;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.link-button {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link-button:hover {
    color: #ffffff;
    text-decoration: underline;
}

.checkbox-field {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-input {
    display: none;
}

.checkbox-label {
    position: relative;
    padding-left: 28px;
    color: #d1d5db;
    user-select: none;
}

.checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.checkbox-label::after {
    content: '✔';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    font-size: 14px;
    color: #ffffff;
    transition: transform 0.2s ease-in-out;
}

.checkbox-input:checked + .checkbox-label::before {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.checkbox-input:checked + .checkbox-label::after {
    transform: translateY(-50%) scale(1);
}

.form-actions {
    margin-top: 1rem;
}

.submit-button {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 8px;
    background-color: #4f46e5;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.submit-button:hover {
    background-color: #4338ca;
}

.submit-button:active {
    transform: scale(0.98);
}

/*
============================================
NEW STYLES FOR APP LAYOUT (HEADER & SIDEBAR)
============================================
*/

/* --- Color Palette & Base Theme --- */
.app-dark-theme {
    --bg-dark: #ffffff;         /* Dark background for sidebar/header */
    --bg-content: #e7e7e7;       /* Slightly lighter for main content */
    --border-color: #e7e7e7;     /* Borders and dividers */
    --text-primary: #02073e;     /* Main text color */
    --text-secondary: #656e7c;   /* Muted text color */
    --accent-primary: #e5e5e5;   /* Main brand/accent color */
    --accent-hover: #4338ca;     /* Accent color on hover */
    background-color: var(--bg-content);
    color: var(--text-primary);
}

/* --- Header / Navbar --- */
.app-dark-theme .main-header {
    background-color: var(--bg-dark) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none !important;
    min-height: 70px;
}
.app-dark-theme .navbar-brand {
    color: var(--text-primary) !important;
}
.app-dark-theme .sidebar-toggle-btn {
    color: var(--text-secondary);
    border-color: var(--border-color);
}
.app-dark-theme .sidebar-toggle-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-content);
    border-color: var(--bg-content);
}

/* --- User Dropdown Menu --- */
.app-dark-theme .user-menu-toggle {
    color: var(--text-secondary) !important;
}
.app-dark-theme .user-menu-toggle:hover {
    color: var(--text-primary) !important;
}
.app-dark-theme .user-dropdown-menu {
    background-color: var(--bg-dark) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
}
.app-dark-theme .user-dropdown-menu .dropdown-item {
    color: var(--text-secondary) !important;
}
.app-dark-theme .user-dropdown-menu .dropdown-item:hover {
    background-color: var(--accent-primary) !important;
    color: var(--text-primary) !important;
}

/* --- Sidebar --- */
.app-dark-theme .sidebar {
    background-color: var(--bg-dark) !important;
    min-height: calc(100vh - 56px);
    border-right: 1px solid var(--border-color);
    width: 350px;
    transition: width 0.3s ease;
    padding: 0px 20px 0px 30px;
}
.app-dark-theme .sidebar .nav-link {
    color: var(--text-secondary);
    padding: 10px 10px;
    border-radius: 8px;
    margin: 5px 0px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.app-dark-theme .sidebar.collapsed .nav-link.active .sidebar-hide-arrow{
    display: none;
}
.app-dark-theme .sidebar.collapsed .nav-link:hover .sidebar-hide-arrow{
    display: none;
}
.app-dark-theme .sidebar .sidebar-hide-arrow{
    display: none;
}
.app-dark-theme .sidebar .nav-link.active .sidebar-hide-arrow{
    display: flex;
}
.app-dark-theme .sidebar .nav-link:hover .sidebar-hide-arrow{
    display: flex;
}
.app-dark-theme .sidebar .sidebar-textbox{
    display: flex;
    align-items: center;
    gap: 15px;
}
.app-dark-theme .sidebar .nav-link i {
    width: 24px;
    font-size: 1.1rem;
}
.app-dark-theme .sidebar .nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-content);
}
.app-dark-theme .sidebar .nav-link.active {
    color: #fff;
    background-color: #1d97fb;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
}

/* --- Collapsed Sidebar --- */
.app-dark-theme .sidebar.collapsed {
    width: 100px;
}
.app-dark-theme .sidebar.collapsed .nav-link span {
    display: none;
}
.app-dark-theme .sidebar.collapsed .nav-link {
    justify-content: center;
}
.app-dark-theme .sidebar.collapsed .nav-link i {
    margin-right: 0;
}
.app-dark-theme .sidebar.collapsed .nav-link:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-left: 1rem;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

/* --- Main Content Area --- */
.app-dark-theme .main-content {
    transition: width 0.3s ease;
    padding: 2rem;
}

/*
============================================
NEW STYLES FOR DASHBOARD / HOME PAGE
============================================
*/

/* --- Dashboard Header --- */
.app-dark-theme .h1, .app-dark-theme .h3 {
    color: var(--text-primary);
    font-weight: 700;
}

.app-dark-theme .dashboard-stats .badge {
    padding: 0.5em 1em;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid transparent;
}

.app-dark-theme .dashboard-stats .badge.bg-primary {
    background-color: rgba(79, 70, 229, 0.2) !important;
    border-color: rgba(79, 70, 229, 0.5);
    color: #6472a9;
}

.app-dark-theme .dashboard-stats .badge.bg-success {
    background-color: rgba(22, 163, 74, 0.2) !important;
    border-color: rgba(22, 163, 74, 0.5);
    color: #45af7e;
}


/* --- Filter Panel --- */
.app-dark-theme .card {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
}

.app-dark-theme .filter-buttons a.btn {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.app-dark-theme .filter-buttons a.btn.btn-outline-primary {
    border-color: var(--border-color);
    color: var(--text-secondary);
}
.app-dark-theme .filter-buttons a.btn.btn-outline-primary:hover {
    background-color: var(--bg-content);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.app-dark-theme .filter-buttons a.btn.btn-primary {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
}


/* --- Category Cards --- */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color) !important;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: #1e97fb !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4), 0 0 20px rgba(79, 70, 229, 0.3) !important;
}

.category-card .card-body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card .card-body .text-dark {
    color: black !important;
    transition: color 0.3s ease;
}

.category-card .card-body .h5 {
    color: black !important;
    transition: color 0.3s ease;
    font-size: 16px;
    font-weight: 900;
    background-color: #e0cdff;
    padding: 10px 10px;
    border-radius: 4px;
    display: inline-block;
}

.category-card .category-image img {
    border-radius: 8px !important;
    transition: transform 0.3s ease;
}
.category-card:hover .category-image img {
    transform: scale(1.05);
}

/* --- Professional Category Cards --- */
.category-card {
    transition: all 0.2s ease-in-out;
    border: 1px solid #eaedf1 !important;
    border-radius: 12px;
    background: #ffffff;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
    border-color: #d1d5db !important;
}

/* Standardize Logo Display */
.category-card .logo-wrapper {
    height: 100px; /* Fixed height container */
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card .category-img {
    max-height: 100%;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(10%); /* Optional: Slightly mutes logos for cohesion until hovered */
    transition: filter 0.3s ease;
}

.category-card:hover .category-img {
    filter: grayscale(0%);
}

/* Clean Typography */
.category-card .card-title {
    font-size: 1.05rem;
    letter-spacing: -0.3px;
}

.category-card .text-muted {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Subtle Action Buttons */
.category-card .btn-light {
    background-color: #f8f9fa;
    border: 1px solid #eaedf1;
    color: #4b5563 !important; /* Dark gray */
    transition: background-color 0.2s;
}

.category-card:hover .btn-light {
    background-color: #eef2f6;
    color: #0d6efd !important; /* Brand blue on hover */
}

.category-card-a{
    max-width: 250px;
}

.category-card .badge {
    width: 170px;
    white-space: normal; /* Allows the text to wrap to the next line */
    overflow-wrap: break-word; /* Prevents long unbreakable words from overflowing */
    text-align: center; /* Keeps the wrapped text looking neat */
    line-height: 1.4; /* Adds a bit of breathing room between lines */
}

/*
============================================
NEW STYLES FOR SUBCATEGORY PAGE
============================================
*/

/* --- Page Header & Back Button --- */
.app-dark-theme h2 {
    color: var(--text-primary);
    font-weight: 600;
}

.app-dark-theme h4 {
    color: black;
    font-weight: 600;
}

.app-dark-theme .btn-secondary {
    background-color: var(--border-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}
.app-dark-theme .btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
    color: white;
}

/* --- Main Category Info Panel --- */
.app-dark-theme .card-header {
    /* background-color: #f8f9fa; */
    border-bottom: 1px solid #dee2e6;
}
.card-space{
    padding: 20px !important;
}
.app-dark-theme .card-header h4 {
    color: #212529; /* Dark text for light header */
    margin-bottom: 0;
}

/* --- Subcategory Cards --- */
.subcategory-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subcategory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.05) !important;
}

.subcategory-card .card-img-top {
    padding: 1rem; /* Give the logo some space */
    /* background-color: #f8f9fa; */
    border-bottom: 1px solid #e5e7eb;
}

.subcategory-card .card-body {
    text-align: center;
}
.subcategory-card .card-title {
    color: #111827;
    font-weight: 600;
}

.card-body{
    padding: 5px 10px;
}

.subcategory-card .card-footer {
    background-color: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border: var(--bs-border-width) solid var(--bs-border-color);
}

#website-card {
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#category-card .card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.subcategory-card .card-footer .btn-sm{
    margin-right: 5px;
    width: 100%;
}
/* Style the admin action buttons for a cleaner look */
.subcategory-card .card-footer .admin-actions {
    display: flex;
    gap: 0;
}

.img-fluid {
    max-width: 100%;
    height: 100px;
}

.cat-img-box{
    display: flex;
    justify-content: center;
    align-items: center;
}

.cat-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* My CSS */

.cat-card .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-img-top{
    padding: 10px;
    height: 100px;
    width: 150px;
    margin: auto;
    object-fit: contain;
}

.cat-home-image{
    height: 50px;
    object-fit: contain;
    width: 100%;
    max-width: 195px;
}

/* Home Cards Section */

.btn-primary {
    background-color: #1e97fb;
}
.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);
}
.icon-container {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
}
.midicon{
    font-size: 24px;
    color: #fff;
}
.icon-container {
    background: #1d98fa;
}
.card-title {
    font-size: 0.9rem;
    color: #5a5c69;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: center;
}
.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2e3a59;
    margin-bottom: 5px;
}
.header-title {
    color: #2e3a59;
    font-weight: 700;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .card-value {
        font-size: 1.5rem;
    }
}

:root {
    --primary-color: #1d98fa;
    --primary-light: #e8f4ff;
    --primary-dark: #0a7dd6;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 12px 12px 0 0 !important;
    padding: 15px 20px;
    border-bottom: none;
}

.card-header h4 {
    margin: 0;
    font-weight: 600;
}

.card-space {
    padding: 25px;
}

.subcategory-card {
    width: 265px;
    overflow: hidden;
    border: 1px solid rgba(29, 152, 250, 0.15);
}

.subcategory-card .card-img-top {
    padding: 20px;
    background-color: var(--primary-light);
    transition: background-color 0.3s ease;
}

.subcategory-card:hover .card-img-top {
    background-color: rgba(29, 152, 250, 0.1);
}

.subcategory-card .card-body {
    padding: 5px 15px;
    text-align: center;
}

.subcategory-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.subcategory-card .card-footer {
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 15px 0 15px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 6px;
    font-weight: 500;
    padding: 5px 12px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.container-fluid{
    padding: 0;
}

.btn-sm {
    padding: 10px 15px;
    border-radius: 20px;
}

.alert-info {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.row {
    margin: -10px;
}

.col-md-auto {
    padding: 10px;
}

@media (max-width: 576px) {
    .col-md-auto {
        width: 100%;
    }

    .subcategory-card {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

#subcategory-list .card-header h4 {
    color: #ffffff;
}

#home-stats-cards .card-title {
    text-align: left !important;
    font-size: 16px;
    font-weight: 900;
    color: #939393;
    margin-bottom: 0px;
}

#home-stats-cards .card-value {
    font-size: 30px;
    font-weight: 900;
    color: black;
}

.filter-search {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.filter-search .card-title {
    font-size: 25px;
    font-weight: 900;
}

.filter-search .card-title::before {
    content: '\f0b0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #1d98fa;
    font-size: 24px;
}

.search-form{
    max-width: 400px;
    width: 100%;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background-color: transparent;
}

.search-form button{
    border: none;
    background-color: #1d98fa;
    color: white;
    padding: 10px 15px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    transition: background-color 0.3s ease;
}

.search-form input{
    background: transparent;
    border-radius: 50px 0px 0px 50px;
}

.btn-group {
    display: flex;
    gap: 10px;
    max-width: 300px;
}

.btn-group .btn-primary {
    border-radius: 20px 20px 20px 20px !important;
}

.btn-group .btn-warning {
    border-radius: 20px 20px 20px 20px !important;
}

.main-content .row{
    justify-content: center;
}

#subcategory-details td, #subcategory-details th {
    width: 100%;
}

#subcategory-details td:nth-child(1), #subcategory-details th:nth-child(1) {
    width: 130px;
}

#subcategory-details td:nth-child(2), #subcategory-details th:nth-child(2) {
    width: 180px;
}

#subcategory-details td:nth-child(3), #subcategory-details th:nth-child(3) {
    width: 200px;
}

#subcategory-details td:nth-child(4), #subcategory-details th:nth-child(4) {
    width: 500px;
}

#subcategory-details td:nth-child(5), #subcategory-details th:nth-child(5) {
    width: 300px;
}

.text-truncate{
    max-width: 100%;
}

table th, table td {
    vertical-align: middle;
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: center;
}

table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.text-left{
    text-align: left !important;
}

#category-filter .card-title{
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 15px;
}

#profile-details .card-header h4 {
    color: #ffffff;
    font-size: 25px;
    margin-bottom: 10px;
}

#profile-details .card-header p {
    font-size: 16px;
    color: #e1e1e1;
    margin-bottom: 0px;
}

#profile-details .card-body {
    padding: 20px;
}


.cat-card .card {
    position: relative;
}

.admin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.cat-card:hover .admin-actions {
    opacity: 1;
    visibility: visible;
}

.grouped-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-width: 350px;
}

.search-input-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    pointer-events: none;
}

#grouped-search-input {
    padding-left: 40px !important;
}

#grouped-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 8px 25px rgba(0, 40, 90, 0.1);
    max-height: 450px;
    overflow-y: auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#grouped-search-results .searchbar-list-box {
    padding: 16px;
    border-bottom: 1px solid #f0f3f7;
    transition: background-color 0.2s ease-in-out;
}

#grouped-search-results .searchbar-list-box:last-child {
    border-bottom: none;
}

#grouped-search-results .searchbar-list-box h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #495057;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#grouped-search-results .searchbar-list-box h3 a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: color 0.2s ease-in-out;
}

#grouped-search-results .searchbar-list-box h3 a::before {
    content: '\f07c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #adb5bd;
}

#grouped-search-results .searchbar-list-box h3 a:hover {
    color: #1d98fa;
}

#grouped-search-results .searchbar-list-box ul {
    list-style: none;
    padding-left: 24px;
    margin: 0;
}

#grouped-search-results .searchbar-list-box ul li a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #02073e;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

#grouped-search-results .searchbar-list-box ul li a::before {
    content: '\f0c1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    font-size: 0.9em;
    opacity: 0.6;
}

#grouped-search-results .searchbar-list-box ul li a:hover {
    background-color: rgba(29, 152, 250, 0.1);
    color: #0c7cd5;
}

#grouped-search-results .search-no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.web-container #website-card{
    max-width: 273px;
}

.web-container .card-body .col {
    max-width: 273px;
}

.active-user-section .card-title {
    font-size: 20px;
    color: white;
}

#content-dashboard{
    margin-bottom: 30px
}

.fa-users-line{
    margin-bottom: 0px !important;
}

/* Custom Category Badge Placement */
.custom-img-wrapper {
    position: relative;
    display: inline-block; /* Hugs the image tightly for accurate absolute positioning */
}

.cat-count-badge {
    position: absolute;
    top: -5px; /* Adjust slightly up */
    right: -10px; /* Adjust slightly right */
    border-radius: 50% !important; /* Make it a perfect circle */
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1.5px solid #ffffff; /* Gives it a nice white border against the image */
}

.cat-count-badge {
    width: 22px !important;
}

/* =========================================
   MODERN DASHBOARD CATEGORY CARDS (LIGHT THEME)
   ========================================= */

.modern-dash-card {
    background-color: #ffffff; /* White to match your dashboard */
    border: 1px solid #e5e7eb; /* Soft gray border */
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02); /* Very subtle shadow */
}

.modern-dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(29, 151, 251, 0.15); /* Soft blue shadow on hover */
    border-color: #1e97fb; /* Your app's primary blue */
}

.card-top-content {
    display: flex !important;
    flex-direction: row !important; /* Forces horizontal layout */
    align-items: center; /* Vertically centers the text with the icon */
}

/* =========================================
   MODERN DASHBOARD CATEGORY CARDS (REFINED LIGHT THEME)
   ========================================= */

.modern-dash-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px; /* Reduced from 24px to tighten the card */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.modern-dash-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(29, 151, 251, 0.12);
    border-color: #1e97fb;
}

/* Squircle Icon Container */
.modern-icon-wrapper {
    position: relative;
    width: 60px; /* Shrunk from 76px */
    height: 60px;
    background-color: #f8f9fa;
    border: 1px solid #f0f2f5;
    border-radius: 16px; /* Slightly smaller radius */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0; /* Removed bottom margin since text is next to it */
    padding: 10px;
}

/* Prevents text from pushing past the card edge */
.card-text-wrapper {
    flex-grow: 1;
    overflow: hidden;
}

.modern-cat-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Slightly smaller badge to match the 60px icon */
.modern-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #1e97fb;
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(29, 151, 251, 0.3);
    border: 2px solid #ffffff;
}

/* Typography tweaks for horizontal layout */
.modern-card-title {
    color: #111827;
    font-size: 1.05rem; /* Slightly smaller to fit perfectly */
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
    white-space: nowrap; /* Keeps title on one line */
    overflow: hidden;
    text-overflow: ellipsis; /* Adds '...' if the name is too long */
}

.modern-card-subtitle {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds '...' if the label is too long */
}

/* Bottom Button - Base State */
.modern-btn {
    background-color: #f0f7ff;
    color: #1e97fb;
    border: 1px solid #d6ebff;
    border-radius: 10px;
    padding: 10px 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    /* Optional: ensures the button itself stays relative under the stretched link */
    position: relative;
}

/* NEW: Trigger the button's hover state when the ENTIRE CARD is hovered */
.modern-dash-card:hover .modern-btn {
    background-color: #1e97fb;
    color: #ffffff;
    border-color: #1e97fb;
}

.modern-btn:hover {
    background-color: #1e97fb;
    color: #ffffff;
    border-color: #1e97fb;
}
