/* =================== PROFILE ICON =================== */
.profile-icon-container {
    position: absolute; /* Ensures correct placement */
    top: 10px; /* Adjusted for better positioning */
    right: 18px; /* Keeps it aligned to the right */
    display: flex;
    justify-content: flex-end; /* Aligns content to the right */
    align-items: center; /* Centers vertically */
    z-index: 1050; /* Ensures it stays on top */
}

/* 🔹 Profile & Dropdown Container */
.profile-menu-container {
    position: relative;
    display: flex;
    justify-content: end;
    width: 180px;
	gap:10px;
    align-items: center;
    z-index: 1000;
}
.profile-icon .requires-guest {
    width: fit-content;
    white-space: nowrap;
    padding: 7px 16px;
    font-weight: 500;
    font-size: medium;
    color: #3465f0;
    background: #82a3ff61;
    border-radius: 28px;
}

body.dark-theme .profile-icon .requires-guest {
    color: #3988be;
    background: #3988be36;
}


.profile-icon .requires-login {
    white-space: nowrap;
    padding: inherit;
    background: inherit;
    border-radius: 50%;
}

/* 🔹 Profile Picture */
.profile-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
}
.Search-icon-header {
    cursor: pointer;
    display: flex;
    align-items: center;
}
.gamtha-create-container {
  position: relative;
  display: inline-block;
}
#create-dropdown {
  display: block;
  position: absolute;
    right: 0px;
    min-width: 300px;
    padding: 10px;
  background: #f2f2f2;
  border-radius: 24px;
    border: 1px solid #848484;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  animation: fadeIn 0.25s ease-in-out;
    color: #222;
}

.create-item {
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: system-ui;
	display: flex;
	align-items:center;
	gap:10px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s ease, color 0.3s ease;
}

.create-item:hover {
  background: rgba(0, 0, 0, 0.1);
}

.create-header {
    font-weight: bold;
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    cursor: default;
}

/* Dark Theme Support */
body.dark-theme #create-dropdown {
  background-color: #1e1e1e;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.05);
}

body.dark-theme .create-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .create-header {
  color: #aaa;
}

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Drag Handle for Mobile UX */
.drag-handle {
  width: 40px;
  height: 5px;
  background: #ccc;
  border-radius: 10px;
  margin: 0 auto 12px auto;
  display: none;
}

/* Responsive Scroll Bottom Position */
@media (max-width: 768px) {
  #create-dropdown {
    top: unset;
    left: 50%;
    right: unset;
    bottom: 0;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 500px;
    height: 40vh;
    border-radius: 20px 20px 0 0;
    position: fixed;
    overflow-y: auto;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  #gamtha-create-overlay.visible #create-dropdown {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .drag-handle {
    display: block;
  }

  /* Scrollbar */
  #create-dropdown::-webkit-scrollbar {
    width: 0px;
  }
}

/* Reset on larger screens */
@media (min-width: 768px) {
  #create-dropdown {
    transform: translateY(-10px);
    bottom: unset;
    top: 50px;
    left: auto;
    right: 20px;
    width: 320px;
    height: auto;
    pointer-events: auto;
  }

  .drag-handle {
    display: none;
  }
}



/* 🔎 Search Icon */
.Search-icon-header {
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    width: 40px;
    height: 40px;
    align-items: center;
    color: #777777;
    font-weight: bold;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, background-color 0.3s ease;
}
/* Dark Mode Focus Effect */
body.dark-theme .Search-icon-header {
	color: #b9b9b9;
}

/* 🎭 Hover & Active Effects */
.Search-icon-header:hover {
    transform: translateY(0%) scale(1.0) rotate(0deg);
    filter: brightness(0.9);
}

body.dark-theme .Search-icon-header:hover {
    transform: translateY(0%) scale(1.0) rotate(0deg);
    filter: brightness(1.3);
}


/* Overlay background */
#gamtha-search-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 75%);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2147483647; /* Maximum z-index */
    height: 100vh;
  pointer-events: all;
}

/* 📌 Small Tablets & Mobile (Up to 768px) */
@media (max-width: 768px) {
.overlay-create-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 75%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2147483647; /* Maximum z-index */
  pointer-events: all;
}
}
.hidden {
  display: none;
}
/* 🔲 Search Box Container */
.gamtha-search-box {
  background: #f6f8fc;
  width: 90%;
    max-width: 594px;
    max-height: 70%;
    overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  position: relative; /* important for absolutely positioned dropdowns inside */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: ;
}

/* 🔘 Type Selector Wrapper */
.gamtha-search-type-container {
  padding-bottom: 6px;
}
/* 🔘 Type Buttons Row */
.gamtha-search-types {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

/* 🔍 Input Field Wrapper */
.gamtha-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.search-Responsive {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    flex-direction: row;
}

/* 📌 Search Suggestions Dropdown */
.search-suggestions-home {
  top: 100%;
  left: 0;
  width: 100%;
  overflow-y: auto;
  z-index: 1000;
  animation: fadeIn 0.2s ease-in-out;
}


/* Dark Theme */
body.dark-theme .gamtha-search-box {
  background: #1f1f1f;
}

/* Chrome, Edge, Safari */
.gamtha-search-types::-webkit-scrollbar {
  height: 6px;
}

.gamtha-search-types::-webkit-scrollbar-track {
  background: transparent;
}

.gamtha-search-types::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
  transition: background-color 0.3s;
}

.gamtha-search-types::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

/* Dark Theme Scrollbar */
body.dark-theme .gamtha-search-types {
  scrollbar-color: #555 transparent;
}

body.dark-theme .gamtha-search-types::-webkit-scrollbar-thumb {
  background-color: #555;
}

body.dark-theme .gamtha-search-types::-webkit-scrollbar-thumb:hover {
  background-color: #777;
}


.search-type-btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  border-radius: 20px;
  cursor: pointer;
    margin-bottom: 5px;
  transition: background 0.2s;
  white-space: nowrap;
  color: #000;
}

.search-type-btn:hover {
  background-color: #e0e0e0;
}

.search-type-btn.active {
  background-color: #000;
  color: white;
}

/* Dark Theme Buttons */
body.dark-theme .search-type-btn {
  border: 1px solid #444;
  background-color: #2b2b2b;
  color: #fff;
}

body.dark-theme .search-type-btn:hover {
  background-color: #3c3c3c;
}

body.dark-theme .search-type-btn.active {
  background-color: #fff;
  color: #000;
}

.prefix-label {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 16px;
  pointer-events: auto;
}

body.dark-theme .prefix-label {
  color: #bbb;
}

.gamtha-search-input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 30px;
  outline: none;
  background-color: #e9eef6;
  color: #000;
}

body.dark-theme .gamtha-search-input {
  border: 1px solid #555;
  background-color: #2b2b2b;
  color: #f1f1f1;
}



/* 🔹 Category Header */
.search-category-header {
    font-size: 14px;
    font-weight: bold;
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #e6e6e6;
    align-items: center;
    color: #333;
}

.icon-Suggestions-Header {
    align-items: center;
    gap: 6px;
    display: flex;
}

/* 🔹 Suggestion Item */
.suggestion-item-home {
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ✅ Suggestion Content */
.suggestion-content {
    display: flex;
    flex-direction: column;
}

/* ✅ Snippet (Short Description) */
.suggestion-snippet {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

/* 🌟 Hover Effect */
.suggestion-item-home:hover {
    background: #e8f0fe;
    transform: scale(1.001);
}

/* 🌙 Dark Mode */
body.dark-theme .search-suggestions-home {
}

body.dark-theme .search-category-header {
    background: #333;
    color: #fff;
}

body.dark-theme .suggestion-item-home {
    color: #ddd;
}

body.dark-theme .suggestion-item-home:hover {
    background: #2a2a2a;
}

/* ✅ Custom Scrollbar */
.search-suggestions-home::-webkit-scrollbar {
    width: 5px;
}

.search-suggestions-home::-webkit-scrollbar-thumb {
    background-color: rgb(135 135 135);
    border-radius: 10px;
}

.search-suggestions-home::-webkit-scrollbar-thumb:hover {
    background-color: gray;
}

	.search-main-wrapper {
    gap: 10px;
    display: flex;
    padding: 24px;
    flex-direction: column;
	}

/* 📌 Small Tablets & Mobile (Up to 768px) */
@media (max-width: 768px) {
	.gamtha-search-box {
		width:100%;
		max-width: 100%;
		min-height: 100vh;
		max-height: 100vh;
		height: 100vh;
		border: none;
		gap:0px;
        padding: 0px 0px 0px 0px;
		border-radius: 0px;
	}
	.gamtha-search-types::-webkit-scrollbar {
    height: 0px;
     }
	.search-main-wrapper {
		padding: 12px;
    gap: 10px;
    display: flex;
    flex-direction: column;
	}
}




.profile-pic {
    width: 44px; /* Slightly increased for visibility */
    height: 44px;
    border-radius: 50%; /* Circular shape */
    object-fit: cover; /* Ensures image fits properly */
    border: 2px solid #b1b1b1eb; /* Placeholder for gradient */
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ✅ Hover Effect */
.profile-pic:hover {
    transform: scale(1.0);
    border-color: #66b3ff;
}

/* 🌙 Dark Mode */
body.dark-theme .profile-pic {
    border-color: #444;
}
/* 🌙 Dark Mode */
body.dark-theme .profile-pic:hover {
    border-color: #888;
	
}

/* 🌍 Fully Responsive Adjustments */

/* 📌 Large Tablets & Medium Screens (Up to 1024px) */
@media (max-width: 1024px) {
    .profile-icon-container {
        top: 10px;
        right: 15px;
    }
    .profile-pic {
        width: 42px;
        height: 42px;
    }
}

/* 📌 Small Tablets & Mobile (Up to 768px) */
@media (max-width: 768px) {
    .profile-icon-container {
        top: 20px;
        right: 12px;
    }
    .profile-pic {
        width: 40px;
        height: 40px;
    }
}

/* 📌 Small Screens (Up to 480px) */
@media (max-width: 480px) {
    .profile-icon-container {
        top: 20px;
        right: 10px;
    }
    .profile-pic {
        width: 38px;
        height: 38px;
    }
}

/* 📌 Extra Small Screens (Up to 360px) */
@media (max-width: 360px) {
    .profile-icon-container {
        top: 15px;
        right: 8px;
    }
    .profile-pic {
        width: 36px;
        height: 36px;
    }
}

/* =================== PROFILE DROPDOWN MENU =================== */
.profile-dropdown {
    position: absolute;
    top: 60px;
    right: 1%;
    background: #f2f2f2; /* Light background color */
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default */
    flex-direction: column;
    min-width: 300px;
    border: 1px solid #ccc;
    padding: 10px;
    overflow: hidden;
    z-index: 1100; /* Ensures it's above other elements */
}

/* 🔹 Dropdown Items */
.profile-dropdown a {
    display: block;
    padding: 12px 16px;
	border-radius: 6px;
    cursor: pointer;
    font-family: system-ui;
    color: #222; /* Dark text color */
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ✅ Hover Effect */
.profile-dropdown a:hover {
    background: rgba(0, 0, 0, 0.1); /* Light hover background color */
}

/* 🌞 Light Mode */
.profile-dropdown {
    background: #f2f2f2; /* Light background color */
    border: 1px solid #ccc;
}
body.dark-theme .profile-dropdown {
    border: 1px solid #676767;
}

.profile-dropdown a {
    color: #222; /* Dark text color */
}

.profile-dropdown a:hover {
    background: rgba(0, 0, 0, 0.1); /* Light hover background color */
}

/* 🌙 Dark Mode */
body.dark-theme .profile-dropdown {
    background: #222; /* Dark background color */
}

body.dark-theme .profile-dropdown a {
    color: #fff; /* Light text color */
}

body.dark-theme .profile-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1); /* Dark hover background color */
}

/* =================== THEME TOGGLE & SETTINGS =================== */

/* 🎨 Theme Toggle Button */
#toggleTheme {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

/* 🌞 Light Mode */
#toggleTheme {
    color: #222;
}

/* 🌙 Dark Mode */
body.dark-theme #toggleTheme {
    color: #fff;
}

/* 🌓 Theme Radio Buttons */
.theme-settings {
    display: none;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50px;
    right: 10px;
    background: var(--dropdown-bg);
    z-index: 1000;
}

.theme-settings label {
    display: block;
    padding: 8px;
    cursor: pointer;
}

.theme-settings input {
    margin-right: 8px;
}

/* =================== RESPONSIVE DESIGN =================== */


/* 📌 Small Tablets & Mobile (Up to 768px) */
@media (max-width: 768px) {
    .profile-dropdown {
        top: 55px;
        right: 5px;
    }
}


/* 📌 Header Container */
.header-container {
    position: sticky; /* Stays at the top on large screens */
    top: 0;
    left: %; /* Leaves space for sidebar on Windows */
    width: 100%; /* Remaining width after sidebar */
    background: transparent;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 20px;
    z-index: 1000;
}


/* 📌 Adjust Sidebar & Header for Medium Screens (Tablets & Laptops) */
@media (max-width: 1024px) {
    .header-container {
        width: 100%; /* Full width for better fit */
        left: 0; /* No sidebar on medium screens */
    }

    .search-container2 {
        max-width: 450px;
    }
}

/* 📌 Small Screens (Tablets & Mobile) – No Sidebar, Fixed Header */
@media (max-width: 768px) {
    .header-container {
        position: fixed; /* Fixed at the top */
        left: 0; /* No sidebar */
        width: 100%;
        border-bottom: none;
        background: #fdfdfd;
		height: 60px;
        padding: 10px 15px;
        display: flex;
        justify-content: space-between; /* Proper spacing */
        align-items: center;
        z-index: 1050; /* Ensure header stays on top */
    }
	/* 🌙 Dark Mode */
body.dark-theme .header-container {
        background: #070708;
        border-bottom: none;
}

    /* 🔹 Adjust Search Bar */
    .search-container2 {
        max-width: 380px;
    left: inherit;
    transform: none;
    }

    .search-input1 {
        font-size: 15px;
        padding: 10px 40px 10px 12px;
    }

    .search-icon1 {
        width: 32px;
        height: 32px;
    }


    .profile-icon {
        margin-left: 15px;
    }
}/* 📌 Extra Small Screens (480px and below) */
@media (max-width: 480px) {
    .header-container {
        padding: 6px 8px; /* Adjust padding for compact fit */
    }

    .search-container2 {
        max-width: 75%; /* Slightly smaller for better spacing */
        padding: 0 6px; /* Minimize padding for compact fit */
    }

    .search-input1 {
        font-size: 14px; /* Reduce font size slightly */
        padding: 10px 32px 10px 10px; /* Adjust spacing for icon */
    }

    .search-icon1 {
        width: 28px; /* Adjust for smaller screens */
        height: 28px;
    }

    /* 🔹 Profile & Menu Icon Adjustments */
    .profile-icon {
        margin-left: 8px; /* Ensure proper spacing */
    }

    #menu-icon {
        font-size: 22px; /* Resize for better visibility */
        left: 8px; /* Keep consistent positioning */
    }
}

/* 📌 Ultra Small Screens (360px and below) */
@media (max-width: 360px) {
    .search-container2 {
        width: 100%;
    }

    .search-input1 {
        font-size: 12.5px; /* Optimize for very small screens */
        padding: 8px 28px 8px 8px; /* Adjust for smaller layout */
    }

    .search-icon1 {
        width: 26px;
        height: 26px;
    }

    /* 🔹 Optimize spacing for profile & menu icons */
    .profile-icon {
        margin-left: 6px;
    }

    #menu-icon {
        font-size: 20px;
        left: 6px;
    }
}


.profile-dropdown-divider {
    border: none;
    height: 1px;
    background: rgb(0 0 0 / 20%); /* Light separator */
    margin: 3px 5px;
}

body.dark-theme .profile-dropdown .profile-dropdown-divider {
    background: rgba(255, 255, 255, 0.2); /* Lighter divider for dark mode */
}



.sidebar-more-btn {
    position: sticky;
    bottom: 0px;
  left: 16px;
  width: calc(240px - 32px); /* match sidebar width minus padding */
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #9ab4ff; /* Light theme background */
  color: #111827cc; /* Light theme text color */
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 14px;
  z-index: 1000;
}

.sidebar-more-btn:hover {
  background-color: #b2c6ff;
}

/* Dark Theme Styles */
body.dark-theme .sidebar-more-btn {
  background: #1f2937;
  color: #ffffffcc;
}

body.dark-theme .sidebar-more-btn:hover {
  background-color: #374151;
}

.sidebar-more-btn .icon {
    font-size: medium;
    display: flex;
    gap: 10px;
    align-items: center;
}
@media screen and (max-width: 1024px) {
    .sidebar-more-txt {
        display: none;
    }
.sidebar-more-btn {
    left: 10px;
    width: unset;
}
	
}
.gamtha-more-wrapper {
  position: relative;
  width: 100%;
}.gamthamore-dropdown2 {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 300px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    background: #f2f2f2;
    color: #111827;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 12px;
    z-index: 10000001;

    /* Animation */
    opacity: 0;
    transform: translateY(10px); /* Default for larger screens */
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;

    /* Hide scrollbars */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
/* Drag Handle for Mobile */
.drag-handle-mobile {
    display: none; /* Hidden by default */
    width: 40px;
    height: 4px;
    background-color: #ccc; /* Light grey for the handle */
    border-radius: 2px;
    margin: 8px auto 16px auto; /* Center it, add space below */
    cursor: grab; /* Indicate it's draggable */
    touch-action: none; /* Prevent browser default touch actions like scroll */
    transition: background-color 0.2s ease; /* For hover/active states */
}

/* Dark theme for drag handle */
body.dark-theme .drag-handle-mobile {
    background-color: #555;
}

/* Show drag handle only on small screens */
@media (max-width: 768px) {
    .drag-handle-mobile {
        display: block; /* Show on small screens */
    }

    /* Adjust padding for the dropdown itself to accommodate the handle */
    .gamthamore-dropdown2 {
        padding-top: 8px; /* Give some space above the handle */
    }
}
.gamthamore-dropdown2::-webkit-scrollbar {
    display: none;
}

body.dark-theme .gamthamore-dropdown2 {
    background-color: #1f2937;
    color: #ffffffcc;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gamthamore-dropdown2 ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gamthamore-dropdown2 ul li {
    padding: 11px 11px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 15px;
    margin: unset;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}

.gamthamore-dropdown2 ul li a {
    color: inherit;
    text-decoration: none;
    width: 100%;
    padding: 0;
    display: flex;
    gap: inherit;
    justify-content: flex-start;
}

.gamthamore-dropdown2 ul li:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark-theme .gamthamore-dropdown2 ul li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Base show-dropdown for larger screens */
.gamthamore-dropdown2.show-dropdown {
    opacity: 1;
    transform: translateY(0); /* For larger screens, brings it up from 10px */
    pointer-events: auto;
}


/* Responsive adjustments for small screens (max-width 768px) */
@media (max-width: 768px) {
    .gamthamore-dropdown2 {
        top: auto; /* Allow bottom to control position */
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%; /* Ensure full width */
        border-radius: 12px 12px 0 0; /* Rounded top corners, flat bottom */
        transform: translateY(100%); /* Initially off-screen bottom */
        transition: transform 0.3s ease-out; /* Smooth slide up/down */
        max-height: 70vh; /* Adjust max height for mobile */
        box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.1); /* Shadow on top */
    }

    body.dark-theme .gamthamore-dropdown2 {
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
    }

    .gamthamore-dropdown2.show-dropdown {
        transform: translateY(0); /* Slides up into view */
        opacity: 1; /* Keep opacity at 1 when shown */
    }
}
/* === Overlay === */
#spark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(1px);
}

/* Hide overlay when not active */
#spark-overlay.spark-overlay-hidden {
  display: none;
}

/* === Modal === */
#spark-modal {
  background: #fff;
  color: #000;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

/* === Dark Theme Support === */
body.dark-theme #spark-modal {
  background: #1a1a1a;
  color: #f2f2f2;
}

body.dark-theme .spark-tag {
  background: #333;
  color: #f2f2f2;
}

body.dark-theme #spark-submit {
  background: #f2f2f2;
  color: #000;
}

/* === Header === */
#spark-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 10px;
}

/* === Text Area === */
#spark-text {
  padding: 10px;
  margin-bottom: 10px;
    font: message-box;
    font-family: system-ui;
  border-radius: 8px;
  resize: none;
  border: 1px solid #ccc;
  background: #fafafa;
  color: #000;
}

body.dark-theme #spark-text {
  background: #222;
  border: 1px solid #444;
  color: #f2f2f2;
}

/* === Tags === */
#spark-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.spark-tag {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  display: flex;
  gap:5px;
    font-family: system-ui;
  align-items: center;
  background: #eee;
  cursor: pointer;
}

/* === Privacy + Submit === */
#spark-privacy {
  margin-bottom: 10px;
}

#spark-submit {
  width: 100%;
  padding: 10px;
  background: black;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.spark-tag.active {
    background: #deedff;
    color: #009fff;
    font-family: system-ui;
    font-weight: bolder;
}

body.dark-theme .spark-tag.active {
    background: #1b2c4f;
    color: #008fff;
    font-family: system-ui;
    font-weight: bolder;
}

.close-spark-svg {
	color: black;
}
body.dark-theme .close-spark-svg {
	color :white;
}

/* === Responsive === */

/* Mobile */
@media screen and (max-width: 768px) {
  #spark-modal {
    width: 100%;
    max-width: 100%;
    height: -webkit-fill-available;
    flex-direction: column;
  }

  #spark-text {
    width: 100%;
    height: 100%;
    resize: none;
  }
}

/* Desktop */
@media screen and (min-width: 769px) {
  #spark-modal {
    width: 90%;
    max-width: 400px;
  }

  #spark-text {
    width: 100%;
    height: 276px;
    max-height: 150px;
    min-width: 40px;
  }
}


.verified-icon {
  margin-right: 5px;
  vertical-align: middle;
  width: 18px;
  height: 18px;
    min-width: 18px;
    min-height: 18px;
}
