/* === DESKTOP LAYOUT FIX - Kaggle Style === */
.dashboard {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: #111;
    color: #00FFFF;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    border-right: 1px solid #222;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.main-content {
    margin-left: 240px;
    flex: 1;
    background: #000;
    color: white;
    padding: 2rem;
    overflow-y: auto;
}

/* --- Sidebar Desktop Layout Fix --- */

/* Reset + base setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000000;
    color: #ffffff;
    padding: 0;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    color: #00FFFF;
}

header p {
    color: #bbbbbb;
    margin-top: 0.5rem;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Dataset Cards */
.card {
    background: #111111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0, 255, 255, 0.35);
}

.card h2 {
    font-size: 1.25rem;
    color: #00FFFF;
    margin-bottom: 0.3rem;
}

.card p {
    font-size: 0.95rem;
    color: #dddddd;
    margin-bottom: 1rem;
}

/* Download Button */
.download-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #00FFFF;
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #00cccc;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.75rem;
    }

    .card h2 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.85rem;
    }
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

#loader-text {
    text-align: center;
}

#typewriter {
    color: #00FFFF;
    font-size: 2.7rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #00FFFF;
    width: 0;
    animation: typing 2s steps(12, end) forwards;
}

#subtext {
    font-size: 1rem;
    font-style: italic;
    color: #ffffff;
    margin-top: 0.75rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 2.2s;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 13.5ch;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Filter/Search UI */
.filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

#searchInput {
    width: 100%;
    max-width: 720px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    outline: none;
    background: #1a1a1a;
    color: #00FFFF;
    box-shadow: 0 0 0 2px transparent;
    transition: all 0.25s ease-in-out;
    border: 1px solid #333;
}

#searchInput::placeholder {
    color: #888;
    font-style: italic;
}

#searchInput:focus {
    background: #222;
    box-shadow: 0 0 0 2px #00FFFF;
    border-color: #00FFFF;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.tag-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #00FFFF;
    background: transparent;
    color: #00FFFF;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tag-btn.active,
.tag-btn:hover {
    background: #00FFFF;
    color: #000;
}

.sidebar nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar nav li.active,
.sidebar nav li:hover {
    color: #00FFFF;
    font-weight: 600;
}

.page-header h1 {
    font-size: 2rem;
    color: #00FFFF;
}

.page-header p {
    color: #aaa;
    margin-top: 0.25rem;
}

.page-actions {
    margin-top: 1rem;
    display: none;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.btn.gold {
    background: #00FFFF;
    color: #000;
}

.btn.gold:hover {
    background: #00cccc;
}

.btn.ghost {
    background: transparent;
    border: 1px solid #00FFFF;
    color: #00FFFF;
}

.btn.ghost:hover {
    background: #00FFFF;
    color: #000;
}

/* Responsive */

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar nav ul {
        margin-top: 0.6rem;
        gap: 0.4rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

}

.sidebar.active {
    left: 0;
}

.sidebar nav ul {
    margin-top: 0.6rem;
    gap: 0.4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar.active {
    left: 0;
}

/* Responsive Typography */

.page-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.page-header p {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}

.btn {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.card h2 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.card p {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
}

.download-btn {
    font-size: clamp(0.85rem, 1.3vw, 1rem);
}

#searchInput {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.tag-btn {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.6rem;
    }

    .card h2 {
        font-size: 1rem;
    }

}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar nav ul {
        margin-top: 0.6rem;
        gap: 0.4rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

}

.sidebar.active {
    left: 0;
}

.sidebar nav ul {
    margin-top: 0.6rem;
    gap: 0.4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar.active {
    left: 0;
}

.sidebar nav ul {
    margin-top: 0.8rem;
    /* ⬅️ very minimal space below title */
    gap: 0.5rem;
    /* ⬅️ very tight list gap */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === MOBILE SIDEBAR SLIDE-IN === */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -100vw;
        top: 0;
        height: 100vh;
        width: 220px;
        background: #111;
        z-index: 1000;
        padding: 3rem 1rem 1rem;
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-top: 3.5rem;
        padding: 1rem 0.75rem;
    }
}

/* === Responsive Typography === */
body,
button,
input,
.card p,
.card h2,
.page-header h1,
.page-header p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.page-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.card h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

/* === Responsive Sidebar === */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100vw;
        height: 100vh;
        width: 220px;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.data-card {
    background: #111;
    color: white;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.data-card h3 {
    color: #00FFFF;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.vote-box {
    margin-top: 1rem;
}

.upvote-btn {
    background: transparent;
    color: #00ffff;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #00ffff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upvote-btn:hover {
    background: #00ffff;
    color: #000;
}

.upvote-btn.clicked {
    background: #00cccc;
    color: #000;
    border-color: #00cccc;
}

.card-description {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* show 3 lines max */
    -webkit-box-orient: vertical;
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    color: #ccc;
    margin-bottom: 0.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-bottom: 1rem;
    position: relative;
}

.card-footer {
    border-top: 1px solid #222;
    padding-top: 0.75rem;
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.scroll-table {
    overflow: auto;
    max-height: 600px;
    border: 1px solid #333;
    border-radius: 8px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table th,
.preview-table td {
    padding: 0.6rem 0.8rem;
    border: 1px solid #444;
    font-size: 0.95rem;
    color: #ddd;
}

.preview-table th {
    background-color: #00FFFF;
    color: #000;
    position: sticky;
    top: 0;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.dataset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.dataset-search {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #00FFFF;
    font-size: 1rem;
    max-width: 500px;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.dataset-info h1 {
    color: #00FFFF;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dataset-preview {
    margin-top: 1rem;
}

.scroll-table {
    overflow: auto;
    max-height: 70vh;
    border: 1px solid #333;
}

#previewTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #111;
    color: #fff;
}

#previewTable th,
#previewTable td {
    border: 1px solid #333;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.upvote-btn {
    background: transparent;
    border: 1px solid #00FFFF;
    color: #00FFFF;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
}

.upvote-btn.active {
    background: #00FFFF;
    color: #000;
}

.download-btn {
    background: #00FFFF;
    color: #000;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
}

.dropout-container {
    padding: 2rem;
    color: #fff;
    background: #000;
}

.dropout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dataset-search {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid #00ffff;
    background: #111;
    color: #00ffff;
    font-size: 1rem;
    outline: none;
}

.dataset-search::placeholder {
    color: #777;
}

.actions {
    display: flex;
    gap: 1rem;
}

.upvote-btn,
.download-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    background: #00ffff;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.dataset-title {
    margin-top: 2rem;
    text-align: left;
}

.dataset-title h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #00ffff;
}

.dataset-title p {
    margin-top: 0.5rem;
    color: #ccc;
}

.dataset-preview {
    overflow-x: auto;
    margin-top: 2rem;
}

.preview {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    border: 1px solid #222;
}

.preview th,
.preview td {
    border: 1px solid #333;
    padding: 0.5rem;
    text-align: left;
    color: #ddd;
}

.preview th {
    background: #1a1a1a;
    color: #00ffff;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    border-top: 1px solid #00FFFF33;
    padding-top: 0.75rem;
}

.download-btn {
    background: #00FFFF;
    color: #000;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #00cccc;
}

.upvote-btn {
    background: transparent;
    border: 1px solid #00FFFF;
    color: #00FFFF;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.upvote-btn:hover {
    background-color: #00ffff22;
}

#searchInput {
    width: 100%;
    max-width: 720px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    border: none;
    border-radius: 999px;
    /* ← Rounded pill style */
    outline: none;
    background: #1a1a1a;
    color: #00FFFF;
    box-shadow: 0 0 0 2px transparent;
    transition: all 0.25s ease-in-out;
    border: 1px solid #333;
}

#searchInput::placeholder {
    color: #888;
    font-style: italic;
}

#searchInput:focus {
    background: #222;
    box-shadow: 0 0 0 2px #00FFFF;
    border-color: #00FFFF;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.sidebar nav li:hover {
    color: #00FFFF;
}

.sidebar nav svg {
    width: 20px;
    height: 20px;
    stroke: #bbb;
    transition: stroke 0.3s ease;
}

.sidebar nav li:hover svg {
    stroke: #00FFFF;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.sidebar nav li:hover {
    color: #00FFFF;
}

.sidebar nav svg {
    width: 20px;
    height: 20px;
    stroke: #bbb;
    transition: stroke 0.3s ease;
}

.sidebar nav li:hover svg {
    stroke: #00FFFF;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar nav li:hover {
    color: #00FFFF;
}

.sidebar nav svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: #bbb;
    transition: stroke 0.3s ease;
}

.sidebar nav li:hover svg {
    stroke: #00FFFF;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    width: 100%;
}

.sidebar nav li:hover {
    color: #00FFFF;
}

.sidebar nav svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: flex-start;
}

.sidebar nav li:hover {
    color: #00FFFF;
}

.sidebar nav svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2;
}

/* === Dataset Grid Responsive === */
.grid-container {
    display: grid;
    gap: 1.5rem;
    padding: 1rem;
}

@media (min-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .card h2 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    .card-footer button {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }
}

/* Card styling */
.card {
    background: #111;
    color: white;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.1);
}

.card h2 {
    color: #00FFFF;
    font-size: 1.2rem;
}

.card p {
    color: #bbb;
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer button {
    background: #00FFFF;
    color: #000;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.card-footer button:hover {
    background: #00cccc;
}

/* Pagination styling */
.pagination {
    text-align: center;
    margin: 2rem auto;
}

.pagination button {
    background: transparent;
    border: 1px solid #00FFFF;
    color: #00FFFF;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    cursor: pointer;
}

.pagination button.active,
.pagination button:hover {
    background: #00FFFF;
    color: #000;
}

.page-btn,
.pagination button {
    background-color: transparent;
    border: 1px solid #00FFFF;
    color: #00FFFF;
    margin: 5px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-btn.active,
.pagination button.active {
    background-color: #00FFFF;
    color: black;
}

/* Cards Grid Layout */
.grid-container {
    display: grid;
    gap: 1.5rem;
    justify-content: center;
    padding: 1rem;
}

/* Desktop: 4 per row */
@media (min-width: 1025px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet: 3 per row */
@media (min-width: 768px) and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 per row */
@media (max-width: 767px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    gap: 0.5rem;
}

.pagination button {
    background-color: transparent;
    border: 1px solid #00ffff;
    color: #00ffff;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.pagination button.active,
.pagination button:hover {
    background-color: #00ffff;
    color: #000;
}

.tag-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #00FFFF;
    background: transparent;
    color: #00FFFF;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tag-btn.active,
.tag-btn:hover {
    background: #00FFFF;
    color: #000;
}

/* === FIXED SIDEBAR FONT === */
.sidebar h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    color: #00FFFF;
}

.sidebar h2 span {
    font-size: 1.2rem;
    color: #ffffff;
}

.sidebar nav li {
    font-size: 1.2rem;
    font-weight: 600;
    color: #dddddd;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 🔥 aligns icon + text together */
    gap: 0.75rem;
    cursor: pointer;
}

.sidebar nav li:hover,
.sidebar nav li.active {
    color: #00FFFF;
}

/* 🔥 Force-hide page-actions using animation cancel + reset all props */
.page-actions {
    all: unset !important;
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    z-index: -999 !important;
}

/* Hide dashboard initially */
.dashboard {
    display: none;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000;
    color: #fff;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* Sidebar - Desktop */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: #111;
    color: #00FFFF;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    border-right: 1px solid #222;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Sidebar Logo/Text */
.sidebar h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    color: #00FFFF;
}

.sidebar h2 span {
    font-size: 1.2rem;
    color: #fff;
}

/* Sidebar Navigation */
.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.sidebar nav li:hover,
.sidebar nav li.active {
    color: #00FFFF;
}

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: #00FFFF;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Main Content - Desktop */
.main-content {
    margin-left: 240px;
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #00FFFF;
}

.page-header p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: #bbbbbb;
    margin-top: 0.5rem;
}

/* Search and Filter Bar */
.filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

#searchInput {
    width: 100%;
    max-width: 720px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    border: 1px solid #333;
    border-radius: 12px;
    background: #1a1a1a;
    color: #00FFFF;
    outline: none;
    transition: all 0.25s ease-in-out;
}

#searchInput::placeholder {
    color: #888;
    font-style: italic;
}

#searchInput:focus {
    background: #222;
    box-shadow: 0 0 0 2px #00FFFF;
    border-color: #00FFFF;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.tag-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #00FFFF;
    background: transparent;
    color: #00FFFF;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tag-btn.active,
.tag-btn:hover {
    background: #00FFFF;
    color: #000;
}

/* Cards Grid Layout */
.grid-container {
    display: grid;
    gap: 1.5rem;
    justify-content: center;
    padding: 1rem;
}

/* Desktop: 4 per row */
@media (min-width: 1025px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet: 3 per row */
@media (min-width: 768px) and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 per row */
@media (max-width: 767px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dataset Card */
.card {
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0, 255, 255, 0.35);
}

.card h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #00FFFF;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: #dddddd;
    margin-bottom: 1rem;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 0.75rem;
    margin-top: auto;
}

/* Download Button */
.download-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #00FFFF;
    color: #000;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #00cccc;
}

/* Upvote Button */
.upvote-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid #00FFFF;
    border-radius: 8px;
    color: #00FFFF;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upvote-btn:hover {
    background: #00ffff22;
    color: #000;
}

.upvote-btn.clicked {
    background: #00cccc;
    color: #000;
    border-color: #00cccc;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    gap: 0.5rem;
}

.pagination button,
.page-btn {
    background-color: transparent;
    border: 1px solid #00FFFF;
    color: #00FFFF;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.pagination button.active,
.pagination button:hover,
.page-btn.active {
    background-color: #00FFFF;
    color: #000;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

#loader-text {
    text-align: center;
}

#typewriter {
    color: #00FFFF;
    font-size: 2.7rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #00FFFF;
    width: 0;
    animation: typing 2s steps(12, end) forwards;
}

#subtext {
    font-size: 1rem;
    font-style: italic;
    color: #fff;
    margin-top: 0.75rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 2.2s;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 13.5ch;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Layout (Mobile) */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        left: -100vw;
        width: 220px;
        height: 100vh;
        padding: 3rem 1rem 1rem;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem 1rem;
        margin-top: 3rem;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000;
    color: #fff;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* Sidebar - Desktop */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: #111;
    color: #00FFFF;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    border-right: 1px solid #222;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Sidebar Logo/Text */
.sidebar h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    color: #00FFFF;
}

.sidebar h2 span {
    font-size: 1.2rem;
    color: #fff;
}

/* Sidebar Navigation */
.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.sidebar nav li {
    font-size: 1.2rem;
    font-weight: 600;
    color: #dddddd;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 🔥 aligns icon + text together */
    gap: 0.75rem;
    cursor: pointer;
}

.sidebar nav li:hover,
.sidebar nav li.active {
    color: #00FFFF;
}

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: #00FFFF;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Main Content - Desktop */
.main-content {
    margin-left: 240px;
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #00FFFF;
}

.page-header p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: #bbbbbb;
    margin-top: 0.5rem;
}

/* Search and Filter Bar */
.filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

#searchInput {
    width: 100%;
    max-width: 720px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    border: 1px solid #333;
    border-radius: 12px;
    background: #1a1a1a;
    color: #00FFFF;
    outline: none;
    transition: all 0.25s ease-in-out;
}

#searchInput::placeholder {
    color: #888;
    font-style: italic;
}

#searchInput:focus {
    background: #222;
    box-shadow: 0 0 0 2px #00FFFF;
    border-color: #00FFFF;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.tag-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #00FFFF;
    background: transparent;
    color: #00FFFF;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tag-btn.active,
.tag-btn:hover {
    background: #00FFFF;
    color: #000;
}

/* Cards Grid Layout */
.grid-container {
    display: grid;
    gap: 1.5rem;
    justify-content: center;
    padding: 1rem;
}

/* Desktop: 4 per row */
@media (min-width: 1025px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet: 3 per row */
@media (min-width: 768px) and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 per row */
@media (max-width: 767px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dataset Card */
.card {
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0, 255, 255, 0.35);
}

.card h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #00FFFF;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: #dddddd;
    margin-bottom: 1rem;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 0.75rem;
    margin-top: auto;
}

/* Download Button */
.download-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #00FFFF;
    color: #000;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #00cccc;
}

/* Upvote Button */
.upvote-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid #00FFFF;
    border-radius: 8px;
    color: #00FFFF;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upvote-btn:hover {
    background: #00ffff22;
    color: #000;
}

.upvote-btn.clicked {
    background: #00cccc;
    color: #000;
    border-color: #00cccc;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    gap: 0.5rem;
}

.pagination button,
.page-btn {
    background-color: transparent;
    border: 1px solid #00FFFF;
    color: #00FFFF;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.pagination button.active,
.pagination button:hover,
.page-btn.active {
    background-color: #00FFFF;
    color: #000;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

#loader-text {
    text-align: center;
}

#typewriter {
    color: #00FFFF;
    font-size: 2.7rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #00FFFF;
    width: 0;
    animation: typing 2s steps(12, end) forwards;
}

#subtext {
    font-size: 1rem;
    font-style: italic;
    color: #fff;
    margin-top: 0.75rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 2.2s;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 13.5ch;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Layout (Mobile) */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        left: -220px;
        width: 220px;
        height: 100vh;
        padding: 3rem 1rem 1rem;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem 1rem;
        margin-top: 3rem;
    }
}

/* Hide dashboard initially (until loader completes) */
.dashboard {
    display: none;
}

/*Mobile UI*/
@media (max-width: 768px) {
    #datasetGrid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .card {
        flex: 0 0 calc(50% - 0.75rem);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        min-height: 320px;
        box-sizing: border-box;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        background: #121212;
    }

    .card h2 {
        font-size: 1rem;
        line-height: 1.3;
        min-height: 2.8rem;
        /* force same space for title */
        margin-bottom: 0.5rem;
    }

    .card-description {
        font-size: 0.85rem;
        line-height: 1.4;
        flex-grow: 1;
        min-height: 3.4rem;
        /* reserve space for 2 lines */
        margin-bottom: 0.8rem;
    }

    .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .download-btn {
        padding: 0.5rem;
        font-size: 0;
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.6rem;
        height: 2.6rem;
    }

    .download-btn i {
        font-size: 1.4rem;
        color: #00ffff;
    }

    .upvote-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        border-radius: 0.5rem;
    }

    .vote-count {
        font-size: 0.9rem;
    }

    .card h2 {
        font-size: 1rem;
        line-height: 1.4;
        color: #00ffff;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* 🔥 max 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0.5rem;
        min-height: 2.8rem;
        /* fixed space for 2 lines */
    }

}

@media (min-width: 986px) and (max-width: 1492px) {
    #datasetGrid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: stretch;
        gap: 1rem;
        padding: 0 1rem;
    }

    .card {
        flex: 0 0 calc(25% - 1rem);
        min-height: 340px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        background: #121212;
    }

    .card h2 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        min-height: 2.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-description {
        font-size: 0.95rem;
        line-height: 1.4;
        flex-grow: 1;
        margin-bottom: 0.8rem;
    }

    .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .download-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        background-color: #00ffff;
        color: #000;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .download-btn i {
        margin-right: 0.4rem;
        font-size: 1rem;
    }

    .upvote-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.95rem;
        border-radius: 0.5rem;
    }

    .vote-count {
        font-size: 0.95rem;
    }
}

@media (min-width: 721px) and (max-width: 986px) {
    #datasetGrid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .card {
        flex: 0 0 calc(50% - 0.75rem);
        min-height: 340px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        background: #121212;
    }

    .card h2 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        min-height: 2.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-description {
        font-size: 0.9rem;
        line-height: 1.4;
        flex-grow: 1;
        margin-bottom: 0.9rem;
    }

    .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .download-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        background-color: #00ffff;
        color: #000;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .download-btn i {
        margin-right: 0.4rem;
        font-size: 1rem;
    }

    .upvote-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.95rem;
    }

    .vote-count {
        font-size: 0.95rem;
    }
}

/* 986px to 1492px (Small laptops / large tablets) */
@media (min-width: 987px) and (max-width: 1492px) {
    #datasetGrid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
        padding: 0 1rem;
    }

    .card {
        flex: 0 0 calc(25% - 1rem);
        min-height: 340px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        background: #121212;
    }

    .card h2 {
        font-size: 1.05rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        min-height: 2.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-description {
        font-size: 0.95rem;
        line-height: 1.4;
        flex-grow: 1;
        margin-bottom: 0.9rem;
    }

    .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .download-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        background-color: #00ffff;
        color: #000;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .download-btn i {
        margin-right: 0.4rem;
        font-size: 1rem;
    }

    .upvote-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.95rem;
    }

    .vote-count {
        font-size: 0.95rem;
    }
}

@media (min-width: 986px) and (max-width: 1200px) {
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .upvote-btn {
        width: 100%;
        justify-content: center;
    }
}

/*Sidebar Layout Fix*/
.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 🔥 centers content horizontally */
    padding: 2rem 0;
    text-align: center;
}

.sidebar h1 {
    font-size: 1.8rem;
    margin: 0;
}

.sidebar h2 {
    font-size: 1rem;
    margin-top: 0.25rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.sidebar ul,
.sidebar .nav-links {
    list-style: none;
    padding: 0;
    width: 100%;
    text-align: center;
}

.sidebar .nav-links li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1rem;
}

.sidebar {
    width: 220px;
    background-color: #111;
    height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* center align content */
    text-align: center;
    box-sizing: border-box;
}

.sidebar h1 {
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    color: #ccc;
    font-weight: 600;
    margin: 0;
}

.sidebar h2 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 800;
    margin: 0.1rem 0 2rem;
    color: #ffffff;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    gap: 0.7rem;
    transition: all 0.2s ease-in-out;
}

.nav-links a:hover {
    color: #00ffff;
}

.nav-links a.active {
    color: #00ffff;
}

@media (max-width: 768px) {
    .sidebar {
        padding: 1rem 1rem 2rem;
        align-items: center;
    }

    .sidebar h1 {
        margin-top: 0.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        color: #ccc;
    }

    .sidebar h2 {
        font-size: 1.4rem;
        font-weight: 800;
        margin: 0.2rem 0 1rem;
        /* 🔥 tighter spacing below */
        color: #ffffff;
    }

    .nav-links {
        gap: 1rem;
        margin-top: 0.2rem;
        /* 🔥 remove large top spacing */
    }

    .nav-links a {
        font-size: 1.05rem;
    }
}

.card h2 {
    font-size: 1.1rem;
    line-height: 1.4;
    white-space: normal;
    /* allow line wrapping */
    overflow: visible;
    text-overflow: unset;
    display: block;
    max-height: none;
}

.card-description {
    font-size: 0.85rem;
    /* 🔽 smaller font */
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* max 4 lines */
    -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
    .card {
        width: calc(50% - 1rem);
        height: 100%;
        min-height: 330px;
        max-height: 360px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem;
        border-radius: 12px;
        box-sizing: border-box;
    }

    .card h2 {
        font-size: clamp(1.05rem, 2.8vw, 1.15rem);
        /* Title font larger */
        font-weight: 700;
        line-height: 1.4;
        color: #00ffff;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        display: block;
        /* Allows full wrapping */
        margin-bottom: 0.4rem;
    }

    .card-description {
        font-size: 0.82rem;
        /* Smaller than title */
        line-height: 1.45;
        color: #ccc;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        /* Always trimmed nicely */
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 1rem;
    }

    .card-footer {
        margin-top: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.5rem;
    }
}

@media (max-width: 414px) {
    .card {
        width: calc(50% - 1rem);
        padding: 0.75rem;
        min-height: 300px;
        max-height: 340px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .card h2 {
        font-size: 1.02rem;
        line-height: 1.35;
        font-weight: 600;
        white-space: normal;
        text-overflow: unset;
        overflow: visible;
    }

    .card-description {
        font-size: 0.75rem;
        line-height: 1.4;
        color: #ccc;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0.75rem;
    }

    .card-footer {
        margin-top: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.5rem;
    }
}

.card-description {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #ccc;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Always 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    height: 3.9em;
    /* 1.3 * 3 lines */
    margin-bottom: 1rem;
}

/* Sidebar Title Styling */
.sidebar h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-weight: 700;
    margin: 1.5rem 0 1.2rem;
    /* reduced bottom margin */
    line-height: 1.2;
}

.sidebar h2::first-line {
    color: #00ffff;
    font-size: 1.4rem;
    font-weight: 700;
}

.sidebar h2 span {
    font-size: 1.2rem;
    /* increased from 1.1rem */
    font-weight: 700;
    background: linear-gradient(to right, #ff9933, #ffffff, #138808);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0.25rem;
}

/* Center align sidebar options */
.sidebar nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* center align */
    gap: 1.2rem;
}

.page-header .bhawan-title {
    white-space: nowrap;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin: 1.5rem 0 0.5rem;
}

.page-header .blue-text {
    color: #00ffff;
}

.page-header .flag-gradient {
    background: linear-gradient(to right, #ff9933, white, #138808);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.loader-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}

.loader-title .blue-text {
    color: #00ffff;
}

.loader-title .flag-gradient {
    background: linear-gradient(to right, #ff9933, white, #138808);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* FINAL FIX - Sidebar Logo + Color + Centering */
.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
}

.sidebar-logo {
    margin-bottom: 2rem;
}

.sidebar-line1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #00ffff;
    margin-bottom: 0.1rem;
}

.sidebar-line2 {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
}

.sidebar-line2 .flag-gradient {
    background: linear-gradient(to right, #ff9933, white, #138808);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-line2 .awan-text {
    color: #00ffff !important;
    /* 🟢 finally force cyan */
}

/* Sidebar Nav Items Centered */
.sidebar nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* ✅ vertical center */
    width: 100%;
}

.sidebar nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    list-style: none;
}

.sidebar nav li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ddd;
    cursor: pointer;
}

.sidebar nav li.active,
.sidebar nav li:hover {
    color: #00ffff;
}

.sidebar-line2 {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    line-height: 1.1;
}

.sidebar-line2 .flag-gradient {
    background: linear-gradient(to right, #ff9933, white, #138808);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.sidebar-line2 .awan-text {
    color: #00ffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}

.sidebar nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 🔥 Center logo and menu in sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Top content placement */
    padding: 2.5rem 1rem;
    text-align: center;
}

/* Center the logo */
.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

/* Cyan title */
.sidebar-line1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #00ffff;
    margin-bottom: 0.25rem;
    text-align: center;
}

/* Gradient + cyan subtitle */
.sidebar-line2 {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    text-align: center;
}

.sidebar-line2 .flag-gradient {
    background: linear-gradient(to right, #ff9933, white, #138808);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.sidebar-line2 .awan-text {
    color: #00ffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}

/* Align the nav menu vertically center below logo */
.sidebar nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.sidebar nav ul {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
}

/* 🔥 Sidebar logo - final fix */
.sidebar-line2 {
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-block;
    text-align: center;
    margin-top: -0.2rem;
}

.sidebar-line2 .flag-gradient,
.sidebar-line2 .awan-text {
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
    display: inline;
}

.sidebar-line2 .flag-gradient {
    background: linear-gradient(to right, #ff9933, white, #138808);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-line2 .awan-text {
    color: #00ffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    margin-left: 0;
    /* Remove spacing between BH and awan */
}

/* 🔥 Sidebar nav option spacing reduced */
.sidebar nav ul {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* reduced from 1.5rem */
    align-items: center;
}

/* 🔥 Sidebar nav item alignment fix */
.sidebar nav li {
    font-size: 1.1rem;
    font-weight: 600;
    color: #dddddd;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.sidebar nav li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    margin-top: 1px;
    /* 🔥 Align vertically */
}

.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    height: 100vh;
    width: 240px;
    background: #111;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

.sidebar-logo {
    margin-bottom: 1rem;
}

.sidebar-menu {
    flex: 1;
    /* 🔥 Push menu block to take full height */
    display: flex;
    justify-content: center;
    /* 🔥 Vertically center nav inside this block */
    width: 100%;
}

.sidebar-menu nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 0;
}

.card-description {
    font-size: 0.95rem !important;
    color: #ccc;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* show max 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.2em;
    /* fallback for non-webkit */
}

/*SCROLLABLE ROWS*/

.category-section::-webkit-scrollbar {
    display: none;
}

.category-section .card {
    flex: 0 0 auto;
    width: 280px;
    /* 👈 fixed width */
    min-height: 320px;
    /* 👈 ensures consistent height */
    max-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-description {
    min-height: 100px;
    /* Force description height */
    overflow: hidden;
}

.card {
    border-bottom: none !important;
}

.card {
    position: relative;
    z-index: 1;
}

.card:hover {
    z-index: 10;
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0, 255, 255, 0.35);
}

.card h2 {
    margin-bottom: 1rem;
}

.card {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    z-index: 10;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 255, 255, 0.4);
}

/* Ensure card hover doesn't get cut */
.card {
    position: relative;
    z-index: 1;
}

.card:hover {
    z-index: 10;
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0, 255, 255, 0.35);
}

/* Spacing between section title and cards */
.category-header {
    font-size: 1.5rem;
    color: #fff;
    margin-left: 0.5rem;
    font-weight: 700;
}

.category-block {
    margin-bottom: 2rem;
    overflow-x: visible;
    overflow-y: visible;
}

.category-header {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
    font-weight: 700;
}

/* 🔥 Horizontal Scroll Row */

.category-section::-webkit-scrollbar {
    display: none;
}

/* 🔥 Fixed width per card for scroll */
.category-section .card {
    flex: 0 0 auto;
    width: 280px;
    min-height: 320px;
    max-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-section::-webkit-scrollbar {
    display: none;
}

.category-section .card {
    flex: 0 0 auto;
    width: 280px;
    min-height: 320px;
    max-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
}

.category-block {
    overflow: visible;
    /* 👈 Yeh sabse important hai */
    position: relative;
}

.category-section {
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding-left: 0.5rem;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    position: relative;
    /* optional for z-index stacking */
}

.card {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    z-index: 10;
    box-shadow: 0 6px 24px rgba(0, 255, 255, 0.35);
}

.category-block {
    overflow: visible;
    position: relative;
}

.category-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.category-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
    position: relative;
}

.card {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0, 255, 255, 0.35);
    z-index: 10;
}

.category-block,
.category {
    margin-bottom: 1rem;
    /* 👈 Previously 2rem or more */
}

.category-header,
.category h2 {
    margin-bottom: 0.25rem;
    /* 👈 Heading and content gap tighter */
}

@media (max-width: 600px) {

    .category-block,
    .category {
        margin-bottom: 0.75rem;
    }
}

.category-section {
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding-left: 0.5rem;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

/* 🟢 Maintain consistent height & spacing for all cards */
.card {
    flex: 0 0 auto;
    width: 260px;
    min-height: 320px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #111;
    padding: 1.2rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    z-index: 10;
    box-shadow: 0 6px 24px rgba(0, 255, 255, 0.35);
}

.card {
    width: 280px;
    height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem;
    background: #111;
    border-radius: 1rem;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

.card h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.card-description {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 3);
    /* 3 lines */
}

.card-footer {
    border-top: 1px solid #333;
    padding-top: 0.8rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===============================
   ✅ FINAL CARD DESIGN OVERRIDES
   =============================== */
.card {
    flex: 0 0 280px;
    background: #111;
    border-radius: 12px;
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 0 transparent;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    min-height: 300px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.25);
    z-index: 10;
}

.card h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #00ffff;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3rem;
    /* for alignment */
}

.card-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100vw;
        /* ← full viewport width hide */
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .sidebar.active {
        left: 0;
    }
}

.contributor-body {
    background: #111;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.form-container {
    position: relative;
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.form-container h1 {
    font-size: 2rem;
    color: cyan;
}

.form-container .highlight {
    background: linear-gradient(to right, orange, white, green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-container h2 {
    margin: 10px 0 20px;
    font-weight: 400;
    color: #aaa;
}

.form-container input {
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #333;
    color: #fff;
}

.form-container button {
    background: cyan;
    color: black;
    border: none;
    padding: 12px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 6px;
}

#status {
    margin-top: 15px;
    color: lime;
}

.sidebar-contributor {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.sidebar-contributor li {
    list-style: none;
    cursor: pointer;
}

.contributor-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contributor-inner:hover {
    color: cyan;
}

.contributor-text {
    line-height: 1.2;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 22px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
}

.modal-close:hover {
    color: cyan;
}

.modal-content input,
.modal-content button {
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #333;
    color: #fff;
}

.modal-content button {
    background: cyan;
    color: black;
    font-weight: bold;
    cursor: pointer;
}

.modal-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
    /* 👈 reduced space below heading */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.1rem;
    /* 👈 reduced spacing between inline parts */
}

.modal-subtitle {
    font-size: 1rem;
    /* 👈 slightly smaller font */
    font-weight: 500;
    margin-top: 0;
    /* 👈 remove extra top spacing */
    margin-bottom: 1rem;
    color: #ccc;
}

.cyan-text {
    color: cyan;
}

.flag-gradient {
    background: linear-gradient(90deg, #ff9933, white, green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.awan-text {
    color: cyan;
    font-weight: bold;
}

.flag-gradient,
.cyan-text {
    display: inline;
    /* NOT inline-block */
    margin: 0;
    /* Ensure no gap */
    padding: 0;
}

.error-msg {
    color: #00ff00;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.4rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Fix the white dropdown */
.iti {
    width: 100%;
}

.iti__country-list {
    background-color: #222;
    /* dark background */
    color: #fff;
    /* white text */
    border: 1px solid #333;
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.2);
    max-height: 200px;
    overflow-y: auto;
}

.iti__country-list .iti__country {
    padding: 8px 10px;
}

.iti__country-list .iti__country:hover {
    background-color: #333;
}

.iti__flag-container {
    background-color: #222;
    border-right: 1px solid #444;
}

.iti--separate-dial-code input {
    padding-left: 52px !important;
    /* to avoid overlap */
    background-color: #2a2a2a;
    color: #fff;
    border: none;
    border-radius: 6px;
}

.iti input {
    background-color: #2a2a2a;
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    width: 100%;
}

.iti {
    width: 100%;
}

.iti input {
    padding-left: 52px !important;
    /* avoid overlap */
    background-color: #2b2b2b;
    color: #fff;
    border: none;
}

.iti__flag-container {
    background-color: transparent;
}

.iti__country-list {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid #333;
}

.iti__country:hover {
    background-color: #333 !important;
}

.iti__country-name {
    color: #fff !important;
}

.iti__dial-code {
    color: #aaa !important;
}

input::placeholder {
    color: #aaa;
}

.iti {
    width: 100%;
    position: relative;
}

.iti input {
    padding-left: 60px !important;
    /* ensures text starts after dial code */
    background-color: #2b2b2b;
    color: #fff;
    border: none;
    height: 45px;
    line-height: 45px;
    /* aligns text vertically */
    font-size: 16px;
}

input::placeholder {
    color: #ccc;
    font-size: 15px;
    line-height: 45px;
}

/* country list dropdown dark */
.iti__country-list {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid #333;
}

.iti__country:hover {
    background-color: #333 !important;
}

.iti__country-name,
.iti__dial-code {
    color: #fff !important;
}

/* Strong override for phone input inside intl-tel-input */
.iti input[type="tel"] {
    padding-left: 85px !important;
    /* was 70px before */
    line-height: 45px !important;
    height: 45px;
    font-size: 16px;
    color: #fff;
    background-color: #2b2b2b;
    border: none;
}

/* Align placeholder */
.iti input[type="tel"]::placeholder {
    color: #ccc;
    font-size: 15px;
    line-height: 45px;
}

/* Country dropdown menu styling */
.iti__country-list {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid #333;
    z-index: 9999;
}

.iti__country:hover {
    background-color: #333 !important;
}

.iti__country-name,
.iti__dial-code {
    color: #fff !important;
}

.contributor-icon {
    width: 48px;
    height: auto;
    margin-bottom: 8px;
    display: block;
}

#userProfileIcon {
    z-index: 1001;
}

#profileDropdown {
    z-index: 1002;
    background: white;
    color: black;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-width: 120px;
}