.tile-menu {
    position: fixed;
    top: 0;
    left: 0px;
    width: 30%;
    height: 100%;
    background-color: #1C1C1C;
    color: white;
    transition: 0.3s;
    z-index: 300;
    padding: 10px;
    overflow-y: auto; /* Allow scrolling within the side menu if content overflows */
    max-height: 10000px; /* Ensure it doesn't collapse */
    display: none; /* Hidden by default */
}

/* Menu content */
.tile-menu h2 {
    color: white;
}

.tile-menu button {
    padding: 10px 20px;
    background-color: rgb(183, 0, 255);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.tile-menu button:disabled{
    padding: 10px 20px;
    background-color: grey;
    color: white;
    cursor: not-allowed;
    border: none;
    border-radius: 4px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* This pushes the icon to the far right */
    width: 100%; /* Ensures it takes the full width of the parent container */
    margin-top: 0px;
    margin-bottom: 0px;
    margin-right: 15px;
}

.section-heading h3 {
    color: white;
}

.section-plus-icon {
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: transform 0.3s ease, fill 0.3s ease;
    color: white;
    margin-left: 15px;
    margin-right: 15px;
}

.section-plus-icon:hover {
    transform: scale(1.5); /* Slight zoom effect on hover */
    color: rgb(183, 0, 255); /* Change color on hover */
}

/* Default arrow pointing horizontally */
.expand-collapse-icon {
    width: 24px;
    height: 24px;
    transform: rotate(-90deg); /* Default rotation */
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth transitions */
    cursor: pointer;
}

/* Rotated arrow when expanded */
.expand-collapse-icon.expanded {
    transform: rotate(0deg); /* Pointing downward */
}

/* Hover effect when not expanded */
.expand-collapse-icon:hover:not(.expanded) {
    transform: rotate(-90deg) scale(1.5); /* Rotate and scale when collapsed */
    color: rgb(183, 0, 255); /* Change color */
}

/* Hover effect when expanded */
.expand-collapse-icon.expanded:hover {
    transform: rotate(0deg) scale(1.5); /* Only scale, no rotation */
    color: rgb(183, 0, 255); /* Change color */
}


.section-list {
    display: block;
    max-height: auto;
    overflow: hidden; 
    padding: 10px; /* Add some padding for readability */
}

.section-container {    /* Change flex direction to column to stack header and tiles */
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensures it takes the full width of the parent container */
}

.section-item {
    display: flex;
    align-items: center;
    justify-content: space-between; /* This pushes the icon to the far right */
    width: 100%; /* Ensures it takes the full width of the parent container */
    border-bottom: 1px solid #444; /* Add a subtle border for separation */
}

.section-title-container {
    display: flex;
    align-items: center;
    width: 65%;
    gap: 10px;
}

.section-title {
    display: inline-block; /* Allows width restrictions */
    max-width: 60%; /* Adjust as needed */
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden; /* Hides overflowing text */
    text-overflow: ellipsis; /* Adds ellipsis (...) */
    color: white;
}

.icon-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Adjust the gap between the edit and cross icons */
}

.eye-icon.active {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.3s ease, fill 0.3s ease;
    color: rgb(183, 0, 255);
}

.eye-icon.active:hover {
    transform: scale(1.5); /* Slight zoom effect on hover */
}

.eye-icon.inactive {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.3s ease, fill 0.3s ease;
    color: white;
}

.eye-icon.inactive:hover {
    transform: scale(1.5); /* Slight zoom effect on hover */
}

.tile-eye-icon.active {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.3s ease, fill 0.3s ease;
    color: rgb(183, 0, 255);
}

.tile-eye-icon.active:hover {
    transform: scale(1.5); /* Slight zoom effect on hover */
}

.tile-eye-icon.inactive {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.3s ease, fill 0.3s ease;
    color: white;
}

.tile-eye-icon.inactive:hover {
    transform: scale(1.5); /* Slight zoom effect on hover */
}

.tile-plus-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.3s ease, fill 0.3s ease;
    color: white;
}

.tile-plus-icon:hover {
    transform: scale(1.5); /* Slight zoom effect on hover */
    color: rgb(183, 0, 255); /* Change color on hover */
}

.edit-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.3s ease, fill 0.3s ease;
    color: white;
}

.edit-icon:hover {
    transform: scale(1.5); /* Slight zoom effect on hover */
    color: rgb(183, 0, 255); /* Change color on hover */
}

.tile-edit-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.3s ease, fill 0.3s ease;
    color: white;
}

.tile-edit-icon:hover {
    transform: scale(1.5); /* Slight zoom effect on hover */
    color: rgb(183, 0, 255); /* Change color on hover */
}

.cross-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.3s ease, fill 0.3s ease;
    color: white;
}

.cross-icon:hover {
    transform: scale(1.5); /* Slight zoom effect on hover */
    color: rgb(255, 0, 0); /* Change color on hover */
}

.tile-cross-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.3s ease, fill 0.3s ease;
    color: white;
}

.tile-cross-icon:hover {
    transform: scale(1.5); /* Slight zoom effect on hover */
    color: rgb(255, 0, 0); /* Change color on hover */
}

.tile-submenu {
    position: fixed;
    top: 0;
    left: 0px;
    width: 30%;
    height: 100%;
    background-color: #1C1C1C;
    color: white;
    transition: 0.3s;
    z-index: 300;
    padding: 10px;
    overflow-y: auto; /* Allow scrolling within the side menu if content overflows */
    max-height: 100%; /* Ensure it doesn't collapse */
    display: none; /* Hidden by default */
}

/* Menu content */
.tile-submenu h2 {
    color: white;
}

.image-preview {
    max-height: 100px;
    max-width: 80%;
}

.tile-submenu input[type="text"],
.tile-submenu input[type="url"],
.tile-submenu input[type="color"],
.tile-submenu input[type="file"]{
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.tile-submenu button {
    padding: 10px 20px;
    background-color: rgb(183, 0, 255);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.tile-submenu button:disabled{
    padding: 10px 20px;
    background-color: grey;
    color: white;
    cursor: not-allowed;
    border: none;
    border-radius: 4px;
}

.tiles-subcontainer {
    padding-left: 34px; /* Indentation to the right */
    display: flex;
    flex-wrap: wrap;
}

.tile-item {
    display: flex;
    align-items: center;
    justify-content: space-between; /* This pushes the icon to the far right */
    width: 100%; /* Ensures it takes the full width of the parent container */
    border-bottom: 1px solid #444; /* Add a subtle border for separation */
    cursor: grab;
    transition: background-color 0.3s ease;
}

.tile-item:active {
    cursor: grabbing;
}

.tile-item.dragged {
    opacity: 0.5;
    background-color: #555;
}

.tile-actions {
    display: flex;
    align-items: center;
    gap: 8px; /* Adjust the gap between the edit and cross icons */
}

.user-menu {
    position: fixed;
    top: 0;
    right: 0px;
    width: 250px;
    height: 100%;
    background-color: #1C1C1C;
    color: white;
    transition: 0.3s;
    z-index: 300;
    padding: 10px;
    overflow-y: auto; /* Allow scrolling within the side menu if content overflows */
    max-height: 100%; /* Ensure it doesn't collapse */
    display: none; /* Hidden by default */
}

.user-menu input[type="email"],
.user-menu input[type="password"],
.user-menu input[type="text"],
.user-menu input[type="color"]{
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.user-menu button {
    padding: 10px 20px;
    background-color: rgb(183, 0, 255);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.user-menu button:disabled{
    padding: 10px 20px;
    background-color: grey;
    color: white;
    cursor: not-allowed;
    border: none;
    border-radius: 4px;
}

/* Menu content */
.user-menu h2 {
    color: white;
}

.user-menu .fb-page-wrapper {
    margin-top: 20px;
    width: 100%;
  }
  
  .user-menu .fb-page {
    display: block;
    position: relative; 
  }

.user-submenu {
    position: fixed;
    top: 0;
    right: 0px;
    width: 250px;
    height: 100%;
    background-color: #1C1C1C;
    color: white;
    transition: 0.3s;
    z-index: 300;
    padding: 10px;
    overflow-y: auto; /* Allow scrolling within the side menu if content overflows */
    max-height: 100%; /* Ensure it doesn't collapse */
    display: none; /* Hidden by default */
}

.user-submenu input[type="email"],
.user-submenu input[type="password"]{
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.user-submenu select[type="country"]{
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px
}

.user-submenu button {
    padding: 10px 20px;
    background-color: rgb(183, 0, 255);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.user-submenu button:disabled{
    padding: 10px 20px;
    background-color: grey;
    color: white;
    cursor: not-allowed;
    border: none;
    border-radius: 4px;
}

/* Menu content */
.user-submenu h2 {
    color: white;
}

.default-tiles-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: -10px;
}

.default-check {
    margin-right: 8px;
}

.default-channels-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: -10px;
}

.default-channel {
    margin-right: 8px;
}

.validate-channels-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: -10px;
}

.validate-check {
    margin-right: 8px;
}

.g-recaptcha {
    transform: scale(0.85); /* Scale the reCAPTCHA box */
    transform-origin: 0 0; /* Anchor the scaling */
    margin: 10px auto; /* Center it with margins */
    width: 100%; /* reCAPTCHA width */
}

