body::-webkit-scrollbar {
    display: none;
}

/* Only for PWA mode */
body.pwa-mode {
    overscroll-behavior-y: none;
    /* Disable pull-to-refresh */
}

.navbar-custom {
    font-size: 1.2rem;
    background-color: #007bff;
    color: white;
}

.navbar-custom .btn-outline-light:hover {
    background-color: white;
    color: #007bff;
}

.navbar-nav .nav-link {
    color: white;
}

.nav-active,
.nav-link.active {
    font-weight: bold;
    padding-bottom: 3px;
    border-bottom: 1px solid;
}

.dark-theme .nav-active,
.dark-theme .nav-link.active {
    border-bottom: 1px solid #007bff;
}

.nav-tabs .nav-item {
    margin-right: 5px;
    padding-bottom: 5px;
}

.channel-frame {
    border: 0.5px solid #ddd;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.channel-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.channel-content h6 {
    margin: 0;
    font-size: 0.9rem;
}

.selected-channel {
    background-color: #007bff;
    color: #ffffff;
    border-left: 8px solid lightgray;
}

.selected-channel:hover {
    background-color: #007bff;
}

.dark-theme {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.dark-theme .navbar,
.dark-theme .navbar-custom {
    background-color: #333;
}

.dark-theme .navbar .nav-link,
.dark-theme .navbar .navbar-brand,
.dark-theme .btn-outline-light {
    color: #e0e0e0;
}

.dark-theme .tab-content {
    background-color: #333;
    color: #e0e0e0;
}

.dark-theme .channel-frame {
    background-color: #333;
    color: #e0e0e0;
    border-color: #555;
}

.dark-theme .dropdown-item {
    color: #e0e0e0;
}

.dark-theme .form-control,
.dark-theme .custom-select {
    background-color: #555;
    color: #e0e0e0;
    border: 1px solid #555;
}

.dark-theme .btn-primary {
    background-color: #007bff;
    border-color: #0066cc;
}

.dark-theme .btn-outline-light:hover {
    color: #343a40;
    background-color: #f8f9fa;
}

.dark-theme .card,
.dark-theme .list-group-item,
.dark-theme .dropdown-menu,
.dark-theme .card,
.dark-theme .modal-content,
.dark-theme .nav-tabs .nav-link {
    background-color: #333;
    color: #e0e0e0;
    border-color: #444;
}

.dark-theme .card-footer {
    background-color: #555;
    color: #e0e0e0
}

.dark-theme .accordion-item {
    background-color: #444;
    color: #ccc;
}

.dark-theme .accordion-button {
    background-color: #333;
    color: #fff;
}

.dark-theme .accordion-button.collapsed {
    background-color: #333;
    color: #ccc;
}

.dark-theme .accordion-button::after {
    content: "\f107";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #ccc;
}

.dark-theme .accordion-button::after {
    transform: rotate(0deg);
    transition: transform 0.25s ease-in-out;
}

.dark-theme .accordion-button.collapsed::after {
    transform: rotate(-180deg);
}

.dark-theme .form-check:hover,
.dark-theme .dropdown-item:hover {
    background-color: #007bff;
}

.dark-theme .card-header,
.dark-theme .card-header {
    background-color: #252525;
    color: #fff;
}

.dark-theme .selected-channel {
    background-color: #555;
    color: #e0e0e0;
    border-left: 8px solid rgb(44, 44, 44);
}

.dark-theme .selected-channel:hover {
    background-color: #007bff;
}

.dark-theme .form-control::placeholder {
    color: #e0e0e0;
    opacity: 1;
}

.dark-theme .action-btn,
.dark-theme .dropdown-toggle {
    background-color: #333;
    color: #ffffff;
    border-color: #343a40;
}

.dark-theme .btn-primary {
    background-color: #ffffff;
    color: black;
    border-color: #343a40;
}

.dark-theme .btn-primary:hover,
.dark-theme .btn-primary:focus {
    background-color: #e0e0e0;
}

.dark-theme .action-btn:hover,
.dark-theme .action-btn:focus,
.dark-theme .dropdown-toggle:hover,
.dark-theme .dropdown-toggle:focus {
    background-color: #23272b;
    border-color: #1d2124;
}

.input-group .input-group-prepend .btn {
    border: 1px solid #ced4da;
    margin-right: -1px;
}

.dark-theme .input-group .input-group-prepend .btn {
    border: 1px solid #444;
    margin-right: -1px;
}

.dark-theme .how-it-works-section {
    background-color: #333;
    color: #e0e0e0;
}

.dark-theme .pricing-section {
    background-color: #333;
    color: #e0e0e0;
}

.dark-theme .btn-link {
    color: #fff;
}

.dark-theme .btn-link:hover {
    color: #ccc;
}

.dark-theme .modal-content {
    background-color: #333;
    color: #e0e0e0;
}

.dark-theme .modal-footer .btn {
    border-color: #444;
}

.navbar .btn {
    color: white;
    font-size: 1.2rem;
    vertical-align: middle;
}

.dark-theme .navbar .btn {
    color: #007bff;
}

.drag-handle {
    cursor: grab;
}

.dragging {
    opacity: 0.7;
    background-color: #f0f0f0;
}

.over {
    border-top: 2px solid #007bff;
}

.align-self-center {
    align-self: center;
}

nav.aria-label {
    display: flex;
}

.d-flex {
    display: flex;
}

.flex-grow-1 {
    flex: 1;
}

.dark-theme .moveToTop,
.dark-theme .moveToBottom {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

.dark-theme .moveToTop:hover,
.dark-theme .moveToBottom:hover {
    background-color: #555;
    color: #ddd;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.5);
    outline: none;
    /* Remove the default focus outline */
    box-shadow: none;
    /* Remove any additional focus shadows */
}

.navbar-collapse {
    transition: height 0.35s ease;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Custom CSS for the hamburger button in dark theme */
.dark-theme .navbar-toggler {
    border: 1px solid #007bff;
    /* Blue border for the hamburger button */
    outline: none;
    /* Remove the default focus outline */
    box-shadow: none;
    /* Remove any additional focus shadows */
}

.dark-theme .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.dark-theme .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280, 123, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Fix for logo size issue in dark theme */
.dark-theme .navbar-brand img {
    height: 40px;
}
