* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #2d2e3a !important;
    color: #ececf1;
    display: flex;
    min-height: 100vh;
}

a {
    text-decoration: none !important;
}


/* body {
    background: var(--color-body);
    color: var(--color-light);
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-family);
} */

/* Sidebar */
.sidebar {
    width: 80px;
    background: #2a2a2a;
    padding: 20px 0;
    overflow-y: auto;
    position: fixed;
    height: 100%;
}

.sidebar-item {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #888;
    cursor: pointer;
}

.sidebar-item.active {
    background: #3a3a3a;
    color: #fff;
}

/* Main Content */
main {
    margin-left: 80px;
    flex: 1;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

header {
    padding: 10px 9px 10px 4px;
    box-sizing: border-box;
    height: 47px;
    align-items: center;
    z-index: 16;
    position: fixed;
    width: 100%;
    top: 0;
    background: #00000045;
    box-shadow: 0 0 2px 1px #00000045;
    color: #ececf1;
    border: 1px solid #444c5b;
    background: #2d2e3a;
}

.free-mode {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.free-mode span {
    margin-right: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 34px;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked+.slider {
    background: #34c759;
}

input:checked+.slider:before {
    transform: translateX(14px);
}

.auth-buttons .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.auth-buttons .login {
    background: transparent;
    color: #fff;
    margin-right: 10px;
}

.auth-buttons .signup {
    background: #34c759;
    color: #fff;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero .short-url {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero h1 sup {
    font-size: 20px;
    vertical-align: super;
}

.hero .stats {
    font-size: 12px;
    color: #ff9500;
    margin-bottom: 10px;
}

.hero .sponsor {
    font-size: 14px;
    margin-bottom: 20px;
}

.hero .sponsor a {
    color: #ff9500;
    text-decoration: underline;
}



.hero .tagline {
    font-size: 12px;
    color: #727586;
    line-height: 20px;
    margin-bottom: 20px;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.category-buttons .btn {
    padding: 8px 16px;
    border: 1px solid #444;
    border-radius: 20px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tabs .tab {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    /* background: #2a2a2a; */
    background: transparent;
    color: #888;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.tabs .tab.active {
    background: #fff;
    color: #000;
}

.tabs .tab:hover:not(.active) {
    background: #2a2a2a;
    color: #888;
}

.tabs.my-home-tabs {
    display: inline-flex;
    background-color: #373846e3;
    border-radius: 30px !important;
    padding: 10px;
    overflow: hidden;
    box-shadow: 0 0 2px 1px #00000045;
    color: #ececf1;
    border: 1px solid #444c5b;
    /* max-width: calc(100% - 39px); */
    /* padding-left: 10px; */
    margin-left: auto;
    margin-right: auto;
}




/* Just Released Section */
.just-released {
    margin-bottom: 45px;
}

.just-released h2 {
    font-size: 24px;
    /* margin-bottom: 20px; */
}


/* Responsive Design */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
    }

    .sidebar-item {
        display: inline-block;
        margin: 0 10px;
    }

    main {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar input,
    .search-bar .voice-btn,
    .search-bar .search-btn {
        width: 100%;
        border-radius: 25px;
        margin-bottom: 10px;
    }

    .category-buttons,
    .tabs {
        flex-wrap: wrap;
    }




}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .just-released h2 {
        font-size: 20px;
    }

}





/* Tool Card */
:root {
    --bg-dark: #2F3136;
    --text-light: #E0E0E0;
    --text-gray: #A0A0A0;
    --card-bg: #3C3F46;
    --button-bg: #4A4D54;
    --button-hover-bg: #5A5D64;
    --accent-color: #B5B5B5;
    /* Adjust based on exact button active state */
    --orange-tag: #FF8C00;
    /* Approximate for "Text humanization" */
    --pink-tag: #FF69B4;
    /* Approximate for "Productivity" */
    --yellow-tag: #FFD700;
    /* Approximate for "Answer engine" */
    --icon-color: #909090;
    /* For small bell/person icons */
}


.tool-div-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    margin: 10px;
    box-sizing: border-box;
    /* background : linear-gradient(90deg, transparent, #4243549e); */
    background-image: linear-gradient(45deg, #3e4050, #373846);
    /* box-shadow: 0 0 4px 0 #1a1b27ad; */
    box-shadow: 0 0 4px 0 #0a0a10;
    border-radius: 12px;
    /* padding: 20px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    /* Adjust as needed */
    /* overflow: hidden; */
}


/* Style for the video container (added in HTML) */
.video-container {
    /* margin-top: 15px;
    margin-bottom: 15px; */
    /* Ensure the video itself respects the card's border radius, especially at the top */
    border-radius: 8px;
    /* Match tool-card border-radius */
    /* overflow: hidden;  */
    padding-left: 20px;
    padding-right: 20px;
}

/* Bootstrap's responsive embed classes are crucial */
/* You typically don't need to define these if Bootstrap's CSS is included */

.embed-responsive {
    border-radius: 15px;
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive.embed-responsive-16by9 {
    padding-bottom: 56.25%;
}

.embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}



.tool-card .firstleveldiv {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.tool-card .lastleveldiv {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.tool-card-separator {
    width: 100%;
    /* Or calc(100% - 40px) if you want padding on the sides */
    height: 1px;
    background-color: #4A4D54;
    /* A slightly darker line color than card background */
    margin: 15px 0;
    /* Space above and below the line */
    border-top: 1px solid #1d1d33;
}


.tool-card:hover {
    background: #444556;
    box-shadow: 0 0 3px 0 #6e6f76;
}

.tool-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tool-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: #5A5D64;
    /* A placeholder background for the icon area */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 2em;
    /* For placeholder icon */
    color: var(--text-light);
    overflow: hidden;
    /* Ensure image fits */
}

.tool-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-card-title-group {
    flex-grow: 1;
}

.tool-card-title {
    font-weight: 600;
    font-size: 1.1em;
    margin: 0;
    color: var(--text-light);
}

.tool-card-tag {
    background-color: var(--button-bg);
    /* Default tag background */
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
}

.tool-card-tag i {
    margin-right: 5px;
    font-size: 0.9em;
    color: var(--icon-color);
}

.tool-card-tag.tag-orange {
    background-color: rgba(255, 140, 0, 0.2);
    color: var(--orange-tag);
}

.tool-card-tag.tag-pink {
    background-color: rgba(255, 105, 180, 0.2);
    color: var(--pink-tag);
}

.tool-card-tag.tag-yellow {
    background-color: #3e3f4f;
    color: #ececf1;
    margin-right: 5px;
    box-shadow: 0 0 1px 0 #0000008c;
    border: 1px solid #4c5462;
}


.tool-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* margin-top: 10px; */
    padding: 3px;
    font-size: 0.85em;
    color: #ececf1;
}

.tool-card-meta div {
    display: flex;
    align-items: center;
}

.tool-card-meta div i {
    margin-left: 10px;
    margin-right: 3px;
    color: #ececf1;
    font-size: 1.1em;
}


.tool-card {
    transition: transform 0.2s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-card-grid {
        grid-template-columns: 1fr;
    }
}



/* Custom CSS for SweetAlert2 */

/* For the entire modal popup (card) */
.my-custom-swal-popup {
    background-color: #3b3b54 !important;
    /* A darker shade for the card */
    color: #e0e0e0 !important;
    /* Light text color */
    border: 1px solid #5a5a8a !important;
    /* Optional: subtle border */
}

/* For the confirm button */
.my-custom-swal-confirm-button {
    background-color: #3b82f6 !important;
    /* Your desired blue color for the button */
    color: #ffffff !important;
    /* White text on the button */
    border: none !important;
    font-weight: 600 !important;
}

.my-custom-swal-confirm-button:hover {
    background-color: #2563eb !important;
    /* Slightly darker blue on hover */
}

/* Optional: For the cancel button if you use it */
.my-custom-swal-cancel-button {
    background-color: #4B4B6F !important;
    /* Example: a greyish color for cancel */
    color: #e0e0e0 !important;
}

.my-custom-swal-cancel-button:hover {
    background-color: #3b82f6 !important;
    border-color: #3b82f6;
    color: white;
}

/*Primary Btn */
.btn-primary {
    background-color: #5a4a7a;
    cursor: pointer;
    background-color: #5a4a7a;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: #6a5a8a !important;
    /* This is the key part */
}

.btn-secondary-custom:hover,
.btn-secondary-custom:active,
.btn-secondary-custom:focus {
    background-color: #6a5a8a !important;
}

.btn-primary-custom:hover,
.btn-primary-custom:active,
.btn-primary-custom:focus {
    background-color: #6a5a8a !important;
}

/*Load More */
#load-more-btn.hidden {
    display: none !important;
}


/* bottom bar */

.bottom-bar {
    overflow-y: hidden;
    border: 1px solid #444c5b;
    height: 60px;
    /* Increased height slightly for better spacing */
    background-color: #2d2e3a;
    /* Dark background for the bar */
    color: #ffffff;
    /* White text color */
    display: flex;
    align-items: center;
    overflow-x: auto;
    /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    white-space: nowrap;
    /* Prevent items from wrapping */
    border-top-left-radius: 15px;
    /* Rounded top-left corner */
    border-top-right-radius: 15px;
    /* Rounded top-right corner */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    /* Subtle shadow above the bar */
}

.bottom-bar .nav-item {
    flex-shrink: 0;
    /* Prevent items from shrinking */
    padding: 0 15px;
    /* Spacing between items */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 80px;
    /* Minimum width for each item to ensure touch target size */
}

.bottom-bar .nav-link {
    color: #ffffff;
    /* Icon and text color */
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 0;
    /* Padding for clickability */
    border-radius: 8px;
    /* Rounded corners for clickable area */
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Smooth transition on hover/focus */
}

.bottom-bar .nav-link:hover,
.bottom-bar .nav-link:focus {
    background-color: #495057;
    /* Slightly lighter background on hover/focus */
    /* color: #ffc107; */
    /* Highlight color on hover/focus */
}

.bottom-bar .nav-link i {
    font-size: 1.5rem;
    /* Icon size */
    margin-bottom: 5px;
    /* Space between icon and text */
}

.bottom-bar .nav-link span {
    font-size: 0.75rem;
    /* Text size */
    font-weight: 500;
}

/* Hide scrollbar for a cleaner look, but still allow scrolling */
.bottom-bar::-webkit-scrollbar {
    display: none;
    /* For Chrome, Safari, and Opera */
}

.bottom-bar {
    -ms-overflow-style: none;
    /* For Internet Explorer and Edge */
    scrollbar-width: none;
    /* For Firefox */
}

/* Media Query to hide the sidebar on mobile layouts */
@media (max-width: 768px) {

    /* Adjust breakpoint as needed (e.g., 576px for sm, 768px for md) */
    #menu {
        display: none !important;
        /* Hide the sidebar */
    }
}

#bottommenu {
    display: none !important;
    /* Hide the sidebar */
}

/* Media Query to hide the sidebar on mobile layouts */
@media (max-width: 768px) {

    /* Adjust breakpoint as needed (e.g., 576px for sm, 768px for md) */
    #bottommenu {
        display: block !important;
        /* Hide the sidebar */
    }

    .voice-btn {
        display: none;
    }

    .tabs.my-home-tabs {
        display: contents !important;
    }
}