/* Shared dashboard styles for streamer and viewer dashboards */

/* Layout and Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem 0.5rem 1rem;
}

/* User Interface Elements */
.user-info {
    background-color: var(--card-background);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-status {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-email {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.logout-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.logout-button:hover {
    opacity: 0.9;
}

.auth-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.auth-button:hover {
    opacity: 0.9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Menu System */
.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
    display: block;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: background-color 0.3s;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: transform 0.3s;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

.menu-button.active .menu-icon {
    background-color: transparent;
}

.menu-button.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-button.active .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--card-background);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    visibility: hidden;
    opacity: 0;
    transition: right 0.3s ease, visibility 0.3s, opacity 0.3s;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.menu.active {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    width: 100%;
}

.menu-items li {
    margin: 0;
    width: 100%;
}

.menu-items a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 1rem;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.menu-items a:hover {
    background-color: rgba(145, 70, 255, 0.1);
}

.menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Dashboard Layout */
.user-dashboard {
    display: flex;
    gap: 2rem;
}

.dashboard-sidebar {
    flex: 1;
    background-color: var(--card-background);
    padding: 1rem;
    border-radius: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.dashboard-sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 0.2rem;
    font-size: 1.15rem;
}

.dashboard-content {
    flex: 2;
}

.dashboard-section {
    background-color: var(--card-background);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.dashboard-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 0.2rem;
}

/* Enhanced Queue System */
.queue-list {
    list-style: none;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.queue-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    margin-top: 0;
    min-height: 0;
}

.queue-tab {
    flex: 1;
    padding: 0.4rem 0.5rem;
    font-size: 0.98rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.queue-tab.active {
    opacity: 1;
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(145, 70, 255, 0.08);
}

.queue-tab:hover {
    opacity: 1;
}

.queue-tab-content {
    display: none;
}

.queue-tab-content.active {
    display: block;
}

/* Enhanced Queue Item Styles */
.queue-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    position: relative;
    border: 2px solid transparent;
    padding-top: 0.6rem;
}

.queue-item.live {
    border-left-color: #28a745;
}

.queue-item.offline {
    border-left-color: #9146FF;
}

.live-submission {
    /* border-color: #28a745; */
}

.offline-submission {
    /* border-color: #dc3545; */
}

.skipped-submission {
    border-color: #28a745 !important;
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.submission-status-indicator {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-background);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}

.live-submission .submission-status-indicator {
    color: #28a745;
}

.offline-submission .submission-status-indicator {
    color: #dc3545;
}

.queue-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.queue-item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.queue-item-status {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.queue-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.queue-item-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.queue-item-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-item-link-icon {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.queue-item-link-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.queue-item-link-icon span {
    display: block;
    width: 20px;
    height: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.queue-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

.queue-item-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

.queue-item-type {
    text-transform: capitalize;
}

.queue-item-date {
    font-size: 0.8rem;
}

.queue-item-channel {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.queue-item-channel .submitted-to-text {
    color: var(--text-color);
    opacity: 0.7;
    font-weight: normal;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.queue-item-channel .channel-name-text {
    color: var(--primary-color);
    font-weight: 600;
}

.queue-item-link-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.link-type-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.submitted-to-text {
    opacity: 0.7;
    font-weight: normal;
    font-size: 0.9rem;
}

/* Submission Actions Dropdown */
.submission-actions-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 10;
    min-width: 120px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: rgba(145, 70, 255, 0.1);
}

.dropdown-item.disabled {
    color: #6c757d;
    cursor: not-allowed;
    background-color: transparent;
    pointer-events: none;
}

.empty-queue {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.queue-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Link Type Icons */
/* Spotify Icon */
.icon-spotify {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231DB954'%3E%3Cpath d='M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z'/%3E%3C/svg%3E");
}

/* SoundCloud Icon */
.icon-soundcloud {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF7700'%3E%3Cpath d='M7.42.06C3.33.28.25 3.54.02 7.63-.22 11.94 2.8 16.1 7.03 16.3c4.1.19 7.32-3.22 7.52-7.45.22-4.2-2.7-7.8-6.84-7.98l-.29-.01zm-1.1 4.5c.53 0 .97.43.97.97s-.44.97-.97.97c-.53 0-.97-.43-.97-.97s.44-.97.97-.97zm-1.88 0c.53 0 .97.43.97.97s-.44.97-.97.97c-.53 0-.97-.43-.97-.97s.44-.97.97-.97zm-1.88 0c.53 0 .97.43.97.97s-.44.97-.97.97C.43 5.53 0 5.1 0 4.56c0-.53.43-.97.97-.97h.6zm13.3 5.42c0 3.03-2.3 5.5-5.14 5.5-2.85 0-5.14-2.47-5.14-5.5 0-3.03 2.3-5.5 5.14-5.5 2.84 0 5.14 2.47 5.14 5.5zm1.44-5.42V16.3h1.33V4.56h-1.33zm1.9 0V16.3h1.33V4.56h-1.33zm1.9 0V16.3H24V4.56h-1.33z'/%3E%3C/svg%3E");
}

/* YouTube Icon */
.icon-youtube {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF0000'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E");
}

/* Audio File Icon */
.icon-audio {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239146FF'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E");
}

/* Generic Link Icon */
.icon-link {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23EFEFF1'%3E%3Cpath d='M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z'/%3E%3C/svg%3E");
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.modal-button.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.modal-button.secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.modal-button:hover {
    opacity: 0.9;
}

/* Submission Modal */
.submission-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.submission-modal.active {
    display: flex;
}

.submission-modal-content {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.submission-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
}

.submission-section:last-child {
    margin-bottom: 0;
}

.submission-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.selected-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.provider-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(145, 70, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.provider-tag:hover {
    background-color: rgba(145, 70, 255, 0.35);
}

.provider-tag img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.provider-tag .price {
    margin-left: auto;
    font-weight: 600;
    color: var(--primary-color);
}

.live-section {
    border-left: 4px solid #E91916;
}

.offline-section {
    border-left: 4px solid #9146FF;
}

/* Provider Selection */
.provider-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.provider-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.provider-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.provider-item.selected {
    background-color: rgba(145, 70, 255, 0.2);
}

.provider-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.provider-info {
    flex: 1;
}

.provider-name {
    font-weight: 600;
    margin: 0;
}

.provider-status {
    font-size: 0.9rem;
    color: #E91916;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.provider-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #E91916;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.provider-status.offline {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.provider-status.offline::before {
    background-color: var(--text-color);
}

/* Offline Feedback Panel */
.offline-feedback-panel {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 20px;
    margin-top: 1rem;
    border: 1px solid rgba(145, 70, 255, 0.3);
}

.offline-feedback-panel h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.offline-feedback-details {
    margin: 1rem 0;
    line-height: 1.6;
}

.offline-feedback-textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    margin: 1rem 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(145, 70, 255, 0.3);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.offline-feedback-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.offline-feedback-price {
    font-weight: 600;
    color: var(--primary-color);
    margin: 1rem 0;
}

.offline-feedback-disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Edit Modal */
.edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.edit-modal.show {
    display: flex;
}

.edit-modal-content {
    background-color: var(--card-background);
    padding: 1rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
}

.edit-modal-content h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.edit-modal-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(145, 70, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    margin-top: 1rem;
    box-sizing: border-box;
}

.edit-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Forms and Settings */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group textarea,
.form-group input {
    padding: 0.5rem;
    border: 1px solid rgba(145, 70, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.checkbox-group {
    display: flex;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
}

.checkbox-label input {
    margin-right: 0.5rem;
}

.save-settings-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.save-settings-button:hover {
    opacity: 0.9;
}

/* Connection Management */
.connection-item {
    display: flex;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.connection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.connection-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.connection-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.connection-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: invert(1);
}

.connection-text {
    flex: 1;
}

.reauthorize-button,
.connect-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.disconnect-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.connect-button:disabled,
.reauthorize-button:disabled,
.disconnect-button:disabled {
    background-color: #666;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.connection-item h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-color);
}

.connection-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2rem 1rem 1.5rem 1rem;
    background: linear-gradient(135deg, var(--card-background) 0%, #1a1a1d 100%);
    border-radius: 20px;
    margin: 1rem 0 1.5rem 0;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .user-dashboard {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-sidebar,
    .dashboard-content {
        width: 100%;
    }

    .dashboard-section {
        padding: 1rem;
    }

    .connection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .connection-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .connection-item {
        padding: 1rem;
    }

    .user-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .login-status {
        align-items: center;
    }

    .settings-form {
        gap: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .checkbox-group {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .dashboard-sidebar {
        width: 100%;
        padding: 1rem;
    }

    .empty-queue {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
    }

    .queue-tabs {
        flex-direction: column;
    }

    .queue-tab {
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .queue-tab.active {
        border-bottom-color: var(--primary-color);
        background: rgba(145, 70, 255, 0.1);
    }

    .menu {
        width: 100%;
        right: -100%;
        padding: 4rem 1.5rem 1.5rem 1.5rem;
    }

    .menu-items {
        margin: 0;
    }

    .menu-items a {
        font-size: 1.1rem;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
    }

    .menu-items li:last-child a {
        border-bottom: none;
    }

    .menu-close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .modal-content,
    .submission-modal-content {
        width: 95%;
        padding: 1rem;
        margin: 1rem;
    }

    .provider-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .provider-info {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin: 1rem 0;
    }

    .provider-avatar {
        width: 80px;
        height: 80px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-actions button {
        width: 100%;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .connection-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .connection-actions button {
        width: 100%;
    }
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    z-index: 998;
}

.mobile-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-button::before,
.mobile-menu-button::after,
.mobile-menu-button-middle {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s ease;
}

.mobile-menu-button::before {
    transform: translateY(-6px);
}

.mobile-menu-button-middle {
    transform: translateY(0);
}

.mobile-menu-button::after {
    transform: translateY(6px);
}

@media screen and (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
    }

    .menu-button {
        display: none;
    }
}

/* Menu Close X Icon */
.menu-close::before,
.menu-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s ease;
}

.menu-close::before {
    transform: rotate(45deg);
}

.menu-close::after {
    transform: rotate(-45deg);
} 

/* === Glowing Animated Focus Border === */
.glow-focus-border {
    position: relative;
    z-index: 1;
    overflow: visible !important;
}
.glow-focus-border::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 12px;
    pointer-events: none;
    border: 3px solid #9146FF;
    box-shadow: 0 0 16px 4px #9146FF, 0 0 32px 8px #9146FF44;
    opacity: 1;
    animation: glow-focus-fade 1.8s ease-in-out infinite;
    transition: opacity 0.2s;
    z-index: 10;
    /* DEBUG: Uncomment the next line to see the border area */
    /* background: rgba(145,70,255,0.08); */
}
@keyframes glow-focus-fade {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
/* To use: add 'glow-focus-border' to any card/section div you want to highlight. */ 

/* === Under Construction Overlay === */
.under-construction {
    position: relative;
    pointer-events: none;
}
.under-construction::after {
    content: 'Under Construction';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: inherit;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px #000;
    pointer-events: auto;
} 

/* === Skip the Free Line Button === */
.skip-free-line-container {
    margin: 0.5rem 0;
    display: inline-block;
}

.skip-free-line-button {
    background-color: #28a745 !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    overflow: visible !important;
    margin: 0 !important;
    display: inline-block !important;
    width: auto !important;
    text-align: center !important;
    text-decoration: none !important;
    min-width: 150px !important;
}

.skip-free-line-button:hover {
    background-color: #218838 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3) !important;
}

.skip-free-line-button:active {
    transform: translateY(0) !important;
}

/* Pulsing Green Border Animation */
.skip-free-line-button::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid #28a745;
    border-radius: 11px;
    opacity: 0;
    animation: pulse-green-border 2s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes pulse-green-border {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* Enhanced pulse effect with glow */
.skip-free-line-button::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid #28a745;
    border-radius: 14px;
    opacity: 0;
    animation: pulse-green-glow 2s ease-in-out infinite;
    animation-delay: 0.5s;
    pointer-events: none;
    z-index: -2;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
}

@keyframes pulse-green-glow {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
} 