/* Campaign Navigation Bar Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #0a0a0a;
    /* color: #ffffff; */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Navigation Container */
.nav-container {
    background: linear-gradient(135deg, rgb(118 35 254 / 18%) 0%, rgb(62 61 161 / 37%) 100%);
    background: rgb(255 255 255 / 2%);
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    padding: 6px 10px;
    margin: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Title Section */
.nav-title-section {
    margin-right: auto;
}

.nav-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
}

.nav-subtitle {
    font-size: 14px;
    color: #999;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    width: 16px;
    height: 16px;
    background: rgba(139, 127, 245, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: help;
    transition: all 0.2s;
}

.info-icon:hover {
    background: rgba(139, 127, 245, 0.3);
    transform: scale(1.1);
}

/* Campaign Section */
.campaign-section {
    padding: 3px 5px;
    min-width: 0 !important;
    display: flex;
    align-items: center;
    border-radius: 10px;
    gap: 12px;
    background: #ffffff0d;

    width: 100%;
    flex: 1;
}

.label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.campaign_title.label {
    align-self: center;
}
.campaign_title_dropdown_div{
    display: flex;
    flex-direction: column;
    gap: 1px;
}
/* Dropdown Wrapper */
.dropdown-wrapper {
    position: relative;
}
/* Invisible Overlay for Outside Clicks */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1001;
    display: none;
    cursor: default;
}

.dropdown-overlay.show {
    display: block;
}

/* Optional: Add a subtle dark overlay effect */
.dropdown-overlay.show {
    display: block;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1px);
}


/* Dropdown Trigger */
.dropdown-trigger {
    background: #1a1730;
    border: 1px solid #3a3560;
    color: white;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    min-width: 240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.dropdown-trigger:hover {
    border-color: #8b7ff5;
    background: #252045;
}

.dropdown-trigger.active_trigger {
    border-color: #beb7ff;
    box-shadow: 0 0 0 3px rgba(139, 127, 245, 0.2);
    /* color: black !important; */
    background-color: #07021dbf !important;
    color: #f1efff !important;
}

.dropdown-arrow {
    transition: transform 0.2s;
    font-size: 12px;
    color: #666;
}

.dropdown-trigger.active_trigger .dropdown-arrow {
    transform: rotate(180deg);
    color: #8b7ff5;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #1a1730;
    border: 1px solid #3a3560;
    border-radius: 12px;
    min-width: 270px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dropdown-menu.show {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #3a3560;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.dropdown-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
}

.dropdown-count {
    font-size: 11px;
    color: #666;
}

/* Search Section */
.dropdown-search {
    padding: 12px 16px;
    border-bottom: 1px solid #3a3560;
    background: rgba(0, 0, 0, 0.1);
}

.search-input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #3a3560;
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #8b7ff5;
    box-shadow: 0 0 0 3px rgba(139, 127, 245, 0.1);
}

.search-input::placeholder {
    color: #666;
}

/* Dropdown List */
.dropdown-list {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: #1a1730;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: #3a3560;
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #4a4570;
}

/* Campaign Cards */
.campaign-card {
    padding: 14px 16px;
    border-bottom: 1px solid #2a2550;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.campaign-card:last-child {
    border-bottom: none;
}

.campaign-card:hover {
    background: #252045;
}

.campaign-card.selected {
    background: #2a2550;
}

.campaign-card.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #8b7ff5;
}

/* Card Layout */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    margin-right: 10px;
}

.track-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    min-width: 60px;
}

/* Status Tags */
.status-tag {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-tag.live {
    background: #21d1c5;
    color: white;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.status-tag.queued {
    background: #f59e0b;
    color: white;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.status-tag.review {
    background: #8b7ff5;
    color: white;
    box-shadow: 0 0 8px rgba(139, 127, 245, 0.3);
}

.status-tag.draft {
    background: #6b7280;
    color: white;
}

.status-tag.completed {
    background: #3b82f6;
    color: white;
}

/* Play Count */
.play-count {
    font-size: 16px;
    font-weight: 700;
    color: #8b7ff5;
}

/* Card Bottom */
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Meta Information */
.meta-info {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffffffc4;
    font-size: 12px;
    width: 55px;
}

.meta-item:hover {
    color: #999;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 3px;
    background: #2a2550;
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b7ff5, #1aebdd);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Track List */
.track-list {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #2a2550;
}

.track-list-text {
    font-size: 11px;
    color: #666;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* No Results */
.no-results {
    padding: 24px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Share Button */
#share-campaign-btn {
    background: #1a1730;
    gap: 2px;
    display: flex;
    font-size: 14px;
    border: 1px solid #3a3560;
    align-items: center;
    justify-content: center;
}

/* Calendar Button */
.calendar-btn {
    background: #1a1730 !important;
    border: 1px solid #3a3560 !important;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.calendar-btn:hover {
    border-color: #8b7ff5 !important;
    background: #252045 !important;
    transform: translateY(-1px);
}

.calendar-btn:active {
    transform: translateY(0);
}

.calendar-btn.active {
    border-color: #8b7ff5;
    box-shadow: 0 0 0 3px rgba(139, 127, 245, 0.2);
}

.calendar-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #f59e0b;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #2a2550;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.calendar-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Status Section */
.status-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(139, 127, 245, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(139, 127, 245, 0.2);
}

.status-number {
    font-size: 15px;
    font-weight: 700;
    color: #f59e0b;
    line-height: 1;
}
.new.status-number {
    color: #fff;
}

.status-label {
    font-size: 12px;
    color: #999;
    line-height: 1.3;
}

/* Action Buttons */
.action-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 3px;
}

/* .btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
} */

.btn:focus {
    outline: none;
}

/* .btn-add {
    background: #a855f7;
    color: white;
}

.btn-add:hover {
    background: #9333ea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.btn-edit {
    background: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
} */

.btn:active {
    transform: translateY(0);
}

/* Region Badge */
.region-badge {
    background: #2a2550;
    border: 1px solid #3a3560;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b7ff5, #6b5ff5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(139, 127, 245, 0.3);
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(139, 127, 245, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-content {
        gap: 16px;
    }
    
    .dropdown-menu {
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 16px;
        margin: 10px;
    }
    
    .nav-content {
        gap: 12px;
    }
    
    .nav-title {
        font-size: 24px;
    }
    
    .dropdown-trigger {
        min-width: 180px;
        font-size: 13px;
    }
    
    .dropdown-menu {
        min-width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
    }
    
    .dropdown-menu.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .status-section {
        padding: 10px 12px;
    }
    
    .status-number {
        font-size: 20px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 127, 245, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(139, 127, 245, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 127, 245, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.campaign-card {
    animation: fadeIn 0.3s ease-out;
}
#fans_nav {
    padding-left: 1em;
    gap: 1em;
    padding-top: 4px;
    padding-bottom: 4pxth;
}

/* Dark Mode Support */
@media (prefers-color-scheme: light) {
    body {
        /* background: #f5f5f5; */
        color: #1a1730;
    }
    
    .nav-container {
        background: linear-gradient(135deg, rgba(139, 127, 245, 0.1) 0%, rgba(99, 91, 255, 0.05) 100%);
        border-color: #e5e5e5;
    }
    
    .dropdown-trigger,
    .dropdown-menu,
    .calendar-btn {
        background: white;
        border-color: #e5e5e5;
        color: #1a1730;
    }
    
    .nav-title,
    .track-name {
        color: #1a1730;
    }
}
#get-started {
    position: relative;
    right: 2px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    color: #d0d0fc;
    background: linear-gradient(135deg, rgb(171 181 255), rgb(107, 95, 245));
    box-shadow: 0 2px 8px rgba(139, 127, 245, 0.3);
    width: 30px;
    /* min-width: 40px; */
    height: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    margin-left: 20px;
    justify-content: center;
    margin-right: 20px;
}
.selected-campaign-name {
    margin-right: 3px;
    font-weight: 700;
}
/* Fix campaign nav bar to fill full width */
#camp_nav_bar_div {
    width: 100%;
}

#camp_nav_bar_div > div {
    width: 100%;
}

#camp_nav_bar_div > div > div {
    width: 100%;
}

.campaign-section {
    width: 100%;
    flex: 1;
}


/* Enhanced nav-container to prevent wrapping and center if space available */
.nav-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}


/* Geo list should not wrap */
.geo_list {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Get started button stays inline */
#get-started {
    flex-shrink: 0;
    margin: 0 !important;
}

/* Center campaign_select when there's extra space */
.campaign_select {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

#camp_nav_bar_div {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* Ensure collapsible regions stay inline */
.collapsible_regions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.geo_col_div {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.regions_title {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Ensure action buttons don't wrap */
.action-btns {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}

.calendar-btn {
    flex-shrink: 0;
}
