/* Theme Variables */
:root {
    --bg-primary-light: #ffffff;
    --bg-secondary-light: #f5f5f5;
    --text-primary-light: #000000;
    --text-secondary-light: #666666;
    --border-light: #e0e0e0;
    
    --bg-primary-dark: #000000;
    --bg-secondary-dark: #1a1a1a;
    --text-primary-dark: #ffffff;
    --text-secondary-dark: #ffffff;
    --border-dark: #333333;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.theme-light {
    background-color: var(--bg-primary-light);
    color: var(--text-primary-light);
}

.theme-dark {
    background-color: var(--bg-primary-dark);
    color: var(--text-primary-dark);
}

.theme-dark,
.theme-dark * {
    color: #ffffff;
}

.theme-dark a {
    color: #ffffff;
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5,
.theme-dark h6 {
    color: #ffffff;
}

.theme-dark p,
.theme-dark span,
.theme-dark div {
    color: #ffffff;
}

.theme-dark button:not(.home-button):not(.search-button):not(.remove-link-btn):not(.remove-picture-btn):not(.save-button) {
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Top Bar */
.top-bar {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.theme-dark .top-bar {
    border-bottom-color: var(--border-dark);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 40px;
    flex-shrink: 0;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    height: 40px;
}

.logo-image {
    width: 40px;
    height: 40px;
    display: block;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.home-button {
    height: 40px;
    padding: 0 24px;
    font-size: 16px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    text-decoration: none;
    display: none;
    font-weight: 500;
    line-height: 40px;
    box-sizing: border-box;
}

.home-button:hover {
    background-color: #357ae8;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-link {
    padding: 8px 16px;
    background-color: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.login-link:hover {
    background-color: #357ae8;
}

.user-avatar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 4px 8px;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.user-avatar-link:hover {
    background-color: var(--bg-secondary-light);
}

.theme-dark .user-avatar-link:hover {
    background-color: var(--bg-secondary-dark);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #4285f4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* Home Page */
.home-page {
    padding: 20px 10px;
    min-height: calc(100vh - 200px);
}

.search-section {
    max-width: 1400px;
    margin: 0px 160px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 5px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #4285f4 0%, #357ae8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-dark .search-title {
    background: linear-gradient(135deg, #4285f4 0%, #357ae8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ensure the red dot in the title is always visible */
.search-title span {
    -webkit-text-fill-color: inherit;
    color: inherit;
}

.search-title span[style*="color:red"],
.search-title span[style*="color: red"],
.search-title span[style*="color:red;"],
.search-title span[style*="color: red;"] {
    -webkit-text-fill-color: red !important;
    color: red !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    outline: none;
}

.theme-dark .search-input {
    background-color: var(--bg-secondary-dark);
    border-color: var(--border-dark);
    color: var(--text-primary-dark);
}

.search-button {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
}

.search-button:hover {
    background-color: #357ae8;
}

.search-results {
    margin-bottom: 40px;
}

.result-item {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.theme-dark .result-item {
    border-color: var(--border-dark);
}

.result-item:hover {
    background-color: var(--bg-secondary-light);
}

.theme-dark .result-item:hover {
    background-color: var(--bg-secondary-dark);
}

.result-item h3 {
    margin-bottom: 5px;
}

.result-item p {
    color: var(--text-secondary-light);
    font-size: 14px;
}

.theme-dark .result-item p {
    color: var(--text-secondary-dark);
}

.recent-searches {
    text-align: center;
    margin: 40px 0;
}

.recent-searches h2 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 400;
}

.recent-searches-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: center;
    overflow-x: auto;
    padding: 10px 0;
}

.recent-search-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    flex-shrink: 0;
}

.recent-search-cover-container {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    margin-bottom: 5px;
    background-color: var(--bg-secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.theme-dark .recent-search-cover-container {
    background-color: var(--bg-secondary-dark);
}

.recent-search-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recent-search-cover-placeholder {
    font-size: 40px;
    line-height: 1;
}

.recent-search-name {
    font-size: 12px;
    color: var(--text-secondary-light);
}

.theme-dark .recent-search-name {
    color: var(--text-secondary-dark);
}

.special-links-divider {
    margin: 0 0 20px;
    border: none;
    border-top: 1px solid var(--border-light);
}

.theme-dark .special-links-divider {
    border-top-color: var(--border-dark);
}

/* Home stats section */
.home-stats-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0 0;
    padding: 20px 0 4px;
    border-top: 1px solid var(--border-light);
}

.home-stats-container {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.theme-dark .home-stats-section {
    border-bottom-color: var(--border-dark);
}

.home-stats-update-time {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
    color: var(--text-secondary-light);
}

.theme-dark .home-stats-update-time {
    color: var(--text-secondary-dark);
    opacity: 0.7;
}

.special-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.special-link {
    font-size: 16px;
    color: var(--text-primary-light);
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    background-color: var(--bg-secondary-light);
    transition: background-color 0.2s, color 0.2s;
}

.special-link:hover {
    background-color: #e0e0e0;
}

.theme-dark .special-link {
    color: var(--text-primary-dark);
    border-color: var(--border-dark);
    background-color: var(--bg-secondary-dark);
}

.theme-dark .special-link:hover {
    background-color: #2a2a2a;
}

/* Band/Album/Song Pages */
.band-page,
.album-page,
.song-page,
.musician-page,
.artists-page,
.solo-artist-page {
    padding: 20px 10px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary-light);
}

.theme-dark .loading {
    color: var(--text-secondary-dark);
}

.album-content,
.song-content,
.musician-content,
.solo-artist-content,
.artists-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Song page link styling - no underlines, no visited/unvisited coloring, underline on hover only */
.song-content a,
.song-page a {
    text-decoration: none;
    color: inherit;
}

.song-content a:visited,
.song-page a:visited {
    color: inherit;
}

.song-content a:link,
.song-page a:link {
    color: inherit;
}

.song-content a:hover,
.song-page a:hover {
    text-decoration: underline;
}

/* Exclude streaming links from this styling */
.song-content .streaming-link,
.song-page .streaming-link {
    text-decoration: none !important;
}

.song-content .streaming-link:hover,
.song-page .streaming-link:hover {
    text-decoration: none !important;
}

/* General link styling - no underlines by default, underline on hover only */
.band-content a,
.musician-content a,
.album-content a,
.solo-artist-content a,
.section ul a,
.section ol a {
    text-decoration: none;
    color: inherit;
}

.band-content a:visited,
.musician-content a:visited,
.album-content a:visited,
.solo-artist-content a:visited,
.section ul a:visited,
.section ol a:visited {
    color: inherit;
}

.band-content a:link,
.musician-content a:link,
.album-content a:link,
.solo-artist-content a:link,
.section ul a:link,
.section ol a:link {
    color: inherit;
}

.band-content a:hover,
.musician-content a:hover,
.album-content a:hover,
.solo-artist-content a:hover,
.section ul a:hover,
.section ol a:hover {
    text-decoration: underline;
}

/* Exclude streaming links from underline styling */
.band-content .streaming-link,
.musician-content .streaming-link,
.album-content .streaming-link,
.solo-artist-content .streaming-link,
.section .streaming-link {
    text-decoration: none !important;
}

.band-content .streaming-link:hover,
.musician-content .streaming-link:hover,
.album-content .streaming-link:hover,
.solo-artist-content .streaming-link:hover,
.section .streaming-link:hover {
    text-decoration: none !important;
}

.band-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Band info section */
.band-info-section {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.theme-dark .band-info-section {
    border-bottom-color: var(--border-dark);
}

.info-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary-light);
    line-height: 1;
}

.theme-dark .info-stat-value {
    color: var(--text-primary-dark);
}

.info-stat-label {
    font-size: 14px;
    color: var(--text-secondary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-dark .info-stat-label {
    color: var(--text-secondary-dark);
}

/* Band page two-column layout */
.band-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.band-main-content {
    min-width: 0;
}

.band-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 20px;
}

/* Album page two-column layout */
.album-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.album-main-content {
    min-width: 100px;
}

.album-sidebar {
    position: sticky;
    top: 20px;
}

.album-cover-large {
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
    display: block;
    margin-bottom: 20px;
}

.album-info {
    margin-top: 15px;
}

.album-band-name {
    font-size: 18px;
    margin: 0 0 8px 0;
}

.album-band-name a {
    color: var(--text-primary-light);
    text-decoration: none;
}

.album-band-name a:hover {
    text-decoration: underline;
}

.theme-dark .album-band-name a {
    color: var(--text-primary-dark);
}

.album-release-date {
    font-size: 14px;
    color: var(--text-secondary-light);
    margin: 0;
}

.theme-dark .album-release-date {
    color: var(--text-secondary-dark);
}

.sidebar-section {
    margin-bottom: 0px;
    background-color: var(--bg-secondary-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px 20px;
}

.theme-dark .sidebar-section {
    background-color: var(--bg-secondary-dark);
    border-color: var(--border-dark);
}

.sidebar-section h2 {
    margin-top: 0;
    font-size: 18px;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-section li:last-child {
    border-bottom: none;
}

.theme-dark .sidebar-section li {
    border-bottom-color: var(--border-dark);
}

/* News section with fixed height and scrollable */
.news-section {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.news-section h2 {
    flex-shrink: 0;
}

.news-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 5px;
}

.news-list li {
    padding: 7px 0;
}

.news-list a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-primary-light);
}

.news-list a:hover {
    text-decoration: underline;
}

.theme-dark .news-list a {
    color: var(--text-primary-dark);
}

.news-date {
    font-size: 14px;
    color: var(--text-secondary-light);
}

.theme-dark .news-date {
    color: var(--text-secondary-dark);
}

/* Custom scrollbar for news list */
.news-list::-webkit-scrollbar {
    width: 8px;
}

.news-list::-webkit-scrollbar-track {
    background: var(--bg-secondary-light);
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary-light);
}

.theme-dark .news-list::-webkit-scrollbar-track {
    background: var(--bg-secondary-dark);
}

.theme-dark .news-list::-webkit-scrollbar-thumb {
    background: var(--border-dark);
}

.theme-dark .news-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary-dark);
}

/* Concert section - same styling as news section */
.concert-section {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.concert-section h2 {
    flex-shrink: 0;
}

.concert-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 5px;
}

.concert-list li {
    padding: 7px 0;
}

.concert-list a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-primary-light);
}

.concert-list a:hover {
    text-decoration: underline;
}

.theme-dark .concert-list a {
    color: var(--text-primary-dark);
}

.concert-date {
    font-size: 14px;
    color: var(--text-secondary-light);
}

.theme-dark .concert-date {
    color: var(--text-secondary-dark);
}

/* Custom scrollbar for concert list */
.concert-list::-webkit-scrollbar {
    width: 8px;
}

.concert-list::-webkit-scrollbar-track {
    background: var(--bg-secondary-light);
    border-radius: 4px;
}

.concert-list::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

.concert-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary-light);
}

.theme-dark .concert-list::-webkit-scrollbar-track {
    background: var(--bg-secondary-dark);
}

.theme-dark .concert-list::-webkit-scrollbar-thumb {
    background: var(--border-dark);
}

.theme-dark .concert-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary-dark);
}

/* Amazon ad section */
/* Carousel Section */
.carousel-section {
    min-height: 250px;
    padding: 0;
}

.band-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--bg-secondary-light);
}

.theme-dark .band-carousel {
    background-color: var(--bg-secondary-dark);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    padding: 20px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.carousel-slide-link.amazon-ad-link {
    background-color: var(--bg-primary-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.2s;
}

.theme-dark .carousel-slide-link.amazon-ad-link {
    background-color: var(--bg-primary-dark);
    border-color: var(--border-dark);
}

.carousel-slide-link.amazon-ad-link:hover {
    border-color: #ff9900;
    background-color: var(--bg-secondary-light);
    text-decoration: none;
}

.theme-dark .carousel-slide-link.amazon-ad-link:hover {
    background-color: var(--bg-secondary-dark);
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 12px 15px 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Amazon Ad Styles in Carousel */
.carousel-slide .amazon-ad-header {
    margin-bottom: 15px;
}

.carousel-slide .amazon-logo {
    font-size: 20px;
    font-weight: bold;
    color: #ff9900;
    letter-spacing: -0.5px;
}

.carousel-slide .amazon-ad-content {
    text-align: center;
    margin-bottom: 15px;
}

.carousel-slide .amazon-ad-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-primary-light);
}

.theme-dark .carousel-slide .amazon-ad-text {
    color: var(--text-primary-dark);
}

.carousel-slide .amazon-ad-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary-light);
}

.theme-dark .carousel-slide .amazon-ad-title {
    color: var(--text-primary-dark);
}

.carousel-slide .amazon-ad-footer {
    font-size: 13px;
    color: var(--text-secondary-light);
    text-align: center;
}

.theme-dark .carousel-slide .amazon-ad-footer {
    color: var(--text-secondary-dark);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: var(--text-primary-light);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.theme-dark .carousel-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-primary-dark);
}

.carousel-btn:hover:not(.disabled) {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.theme-dark .carousel-btn:hover:not(.disabled) {
    background-color: rgba(0, 0, 0, 0.9);
}

.carousel-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 4px;
}

.page-header {
    margin-bottom: 10px;
}

.artists-page .page-header {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.song-track-number {
    font-size: 14px;
    color: var(--text-secondary-light);
    margin-top: 5px;
}

.theme-dark .song-track-number {
    color: var(--text-secondary-dark);
}

.edit-button-container {
    opacity: 0;
    transition: opacity 0.2s;
}

.page-header:hover .edit-button-container {
    opacity: 1;
}

.edit-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.edit-button:hover {
    background-color: #357ae8;
}

.theme-dark .edit-button {
    background-color: #5a9;
}

.theme-dark .edit-button:hover {
    background-color: #4a8;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.album-card {
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: transform 0.2s, opacity 0.2s;
}

.album-card-draggable {
    cursor: move;
}

.album-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.album-card.drag-over {
    border: 2px dashed #4285f4;
    border-radius: 4px;
}

.theme-dark .album-card.drag-over {
    border-color: #5a9;
}

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.album-title {
    font-size: 14px;
    color: var(--text-secondary-light);
}

.theme-dark .album-title {
    color: var(--text-secondary-dark);
}

.drag-handle {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: grab;
    user-select: none;
    line-height: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.albums-grid-sortable {
    position: relative;
}

.section {
    margin-bottom: 20px;
}

.section ul,
.section ol {
    padding-left: 28px;
    margin-bottom: 10px;
}

.section li {
    margin-bottom: 5px;
}

.members-list {
    padding-left: 28px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 10px;
}

.section-header-col2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-light);
}

.section h2 {
    font-size: 24px;
    margin: 0;
    border: none;
    padding: 0;
}

.section_col2 {
    margin-bottom: 0px;
}

.theme-dark .section-header {
    border-bottom-color: var(--border-dark);
}

.theme-dark .section-header-col2 {
    border-bottom-color: var(--border-dark);
}

.theme-dark .section h2 {
    border-bottom: none;
}

/* Album Display Toggle */
.album-display-toggle {
    display: flex;
    gap: 5px;
    align-items: center;
}

.toggle-btn {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary-light);
}

.theme-dark .toggle-btn {
    border-color: var(--border-dark);
    background-color: var(--bg-primary-dark);
}

.toggle-btn:hover {
    background-color: var(--bg-secondary-light);
    border-color: var(--text-primary-light);
}

.theme-dark .toggle-btn:hover {
    background-color: var(--bg-secondary-dark);
    border-color: var(--text-primary-dark);
}

.toggle-btn.active {
    background-color: #4285f4;
    border-color: #4285f4;
    color: white;
}

.theme-dark .toggle-btn.active {
    background-color: #5a9;
    border-color: #5a9;
}

.toggle-icon {
    display: block;
    line-height: 1;
}

.count-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--bg-secondary-light);
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.instruments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.instrument-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--bg-secondary-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.theme-dark .instrument-badge {
    background-color: var(--bg-secondary-dark);
    border-color: var(--border-dark);
}

.theme-dark .count-badge {
    background-color: var(--bg-secondary-dark);
}

/* Songs List */
.songs-list {
    list-style: none;
    padding: 0;
}

.song-item {
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.2s;
}

.theme-dark .song-item {
    border-color: var(--border-dark);
}

.song-item:hover {
    background-color: var(--bg-secondary-light);
}

.theme-dark .song-item:hover {
    background-color: var(--bg-secondary-dark);
}

.song-number {
    font-weight: bold;
    min-width: 30px;
    color: var(--text-secondary-light);
}

.theme-dark .song-number {
    color: var(--text-secondary-dark);
}

.song-title {
    flex: 1;
}

.song-duration {
    color: var(--text-secondary-light);
    font-size: 14px;
}

.theme-dark .song-duration {
    color: var(--text-secondary-dark);
}

/* Artists Page */
.artists-letter-group {
    margin-bottom: 40px;
}

.letter-header {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-primary-light);
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 8px;
}

.theme-dark .letter-header {
    color: var(--text-primary-dark);
    border-bottom-color: var(--border-dark);
}

.artists-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.artist-item {
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.artist-item:hover {
    background-color: var(--bg-secondary-light);
}

.theme-dark .artist-item:hover {
    background-color: var(--bg-secondary-dark);
}

.artist-item a {
    color: var(--text-primary-light);
    text-decoration: none;
    font-size: 16px;
    display: block;
}

.theme-dark .artist-item a {
    color: var(--text-primary-dark);
}

.artist-item a:hover {
    text-decoration: underline;
}

.band-item {
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.2s;
    background-color: rgba(0, 0, 0, 0.08);
}

.theme-dark .band-item {
    background-color: rgba(255, 255, 255, 0.1);
}

.band-item:hover {
    background-color: rgba(0, 0, 0, 0.12);
}

.theme-dark .band-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.band-item a {
    color: var(--text-primary-light);
    text-decoration: none;
    font-size: 16px;
    display: block;
}

.theme-dark .band-item a {
    color: var(--text-primary-dark);
}

.band-item a:hover {
    text-decoration: underline;
}

.solo-artist-item {
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.2s;
    background-color: rgba(0, 0, 0, 0.08);
}

.theme-dark .solo-artist-item {
    background-color: rgba(255, 255, 255, 0.1);
}

.solo-artist-item:hover {
    background-color: rgba(0, 0, 0, 0.12);
}

.theme-dark .solo-artist-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.solo-artist-item a {
    color: var(--text-primary-light);
    text-decoration: none;
    font-size: 16px;
    display: block;
}

.theme-dark .solo-artist-item a {
    color: var(--text-primary-dark);
}

.solo-artist-item a:hover {
    text-decoration: underline;
}

/* Pictures Grid */
.pictures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.picture-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.musician-picture,
.band-picture {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid var(--border-light);
    background-color: var(--bg-secondary-light);
}

.theme-dark .musician-picture,
.theme-dark .band-picture {
    border-color: var(--border-dark);
    background-color: var(--bg-secondary-dark);
}

.picture-url-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    font-size: 12px;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    word-break: break-all;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.picture-item:hover .picture-url-hover {
    opacity: 1;
}

/* Streaming Links */
.streaming-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.streaming-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background-color: var(--bg-secondary-light);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.theme-dark .streaming-link {
    background-color: var(--bg-secondary-dark);
    border-color: var(--border-dark);
}

.streaming-link:hover {
    background-color: #4285f4;
    color: white;
    border-color: #4285f4;
}

.streaming-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

/* Make Tidal icon visible in dark mode (invert black to white) */
.theme-dark .streaming-link .streaming-icon[src*="tidal"] {
    filter: brightness(0) invert(1);
}

/* Invert icons to white on hover */
.streaming-link:hover .streaming-icon {
    filter: brightness(0) invert(1);
}

/* Error Messages */
.error {
    padding: 20px;
    background-color: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
    color: #c62828;
    text-align: center;
}

.theme-dark .error {
    background-color: #3e2723;
    border-color: #ff6f00;
    color: #ffb74d;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary-light);
}

.theme-dark .no-results {
    color: var(--text-secondary-dark);
}

/* Edit Page Styles */
.edit-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.edit-form {
    background-color: var(--bg-secondary-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.theme-dark .edit-form {
    background-color: var(--bg-secondary-dark);
    border-color: var(--border-dark);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 10px;
}

.theme-dark .form-section h2 {
    border-bottom-color: var(--border-dark);
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary-light);
}

.theme-dark .form-field label {
    color: var(--text-secondary-dark);
}

.form-field input[type="text"],
.form-field input[type="url"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--bg-primary-light);
    color: var(--text-primary-light);
}

.theme-dark .form-field input[type="text"],
.theme-dark .form-field input[type="url"] {
    border-color: var(--border-dark);
    background-color: var(--bg-primary-dark);
    color: var(--text-primary-dark);
}

.form-field input.read-only {
    background-color: var(--bg-secondary-light);
    cursor: not-allowed;
}

.theme-dark .form-field input.read-only {
    background-color: var(--bg-secondary-dark);
}

.links-container,
.pictures-container,
.instruments-container,
.albums-container {
    margin-bottom: 15px;
}

.link-item,
.picture-item-edit,
.instrument-item-edit,
.album-item-edit {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.link-item .link-key {
    flex: 0 0 200px;
}

.link-item .link-url,
.picture-item-edit .picture-url,
.instrument-item-edit .instrument-name {
    flex: 1;
}

.remove-link-btn,
.remove-picture-btn,
.remove-instrument-btn,
.remove-album-btn {
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.remove-link-btn:hover,
.remove-picture-btn:hover,
.remove-instrument-btn:hover,
.remove-album-btn:hover {
    background-color: #c82333;
}

.add-link-btn,
.add-picture-btn,
.add-instrument-btn,
.remove-covers-btn {
    padding: 10px 20px;
    background-color: var(--bg-secondary-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-primary-light);
    font-size: 14px;
}

.theme-dark .add-link-btn,
.theme-dark .add-picture-btn,
.theme-dark .add-instrument-btn,
.theme-dark .remove-covers-btn {
    background-color: var(--bg-secondary-dark);
    border-color: var(--border-dark);
    color: var(--text-primary-dark);
}

.add-link-btn:hover,
.add-picture-btn:hover,
.add-instrument-btn:hover,
.add-album-btn:hover,
.remove-covers-btn:hover {
    background-color: var(--border-light);
}

.theme-dark .add-link-btn:hover,
.theme-dark .add-picture-btn:hover,
.theme-dark .add-instrument-btn:hover,
.theme-dark .add-album-btn:hover,
.theme-dark .remove-covers-btn:hover {
    background-color: var(--border-dark);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.theme-dark .form-actions {
    border-top-color: var(--border-dark);
}

.save-button {
    padding: 12px 24px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.save-button:hover {
    background-color: #218838;
}

.cancel-button,
.back-button {
    padding: 12px 24px;
    background-color: var(--bg-secondary-light);
    color: var(--text-primary-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

/* Album item styling in edit form */
.album-item-edit {
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--bg-secondary-light);
    display: flex;
    gap: 15px;
    align-items: center;
}

.theme-dark .album-item-edit {
    border-color: var(--border-dark);
    background-color: var(--bg-secondary-dark);
}

.album-item-cover {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-primary-light);
}

.theme-dark .album-item-cover {
    border-color: var(--border-dark);
    background-color: var(--bg-primary-dark);
}

.picture-item-thumbnail {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-primary-light);
}

.theme-dark .picture-item-thumbnail {
    border-color: var(--border-dark);
    background-color: var(--bg-primary-dark);
}

/* Page footer with last updated timestamp */
.page-footer-divider {
    margin: 10px 0 20px 0;
    border: none;
    border-top: 1px solid var(--border-light);
    width: 100%;
}

.theme-dark .page-footer-divider {
    border-top-color: var(--border-dark);
}

.page-footer {
    text-align: center;
    margin-bottom: 20px;
}

.last-updated-text {
    color: #888;
    font-size: 0.875rem;
    font-style: italic;
}

.theme-dark .last-updated-text {
    color: #aaa;
}

.album-item-info {
    flex: 1;
    min-width: 0;
}

.album-item-title {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary-light);
}

.theme-dark .album-item-title {
    color: var(--text-primary-dark);
}

.album-item-meta {
    font-size: 12px;
    color: var(--text-secondary-light);
    display: flex;
    gap: 15px;
}

.theme-dark .album-item-meta {
    color: var(--text-secondary-dark);
}

.add-album-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.theme-dark .add-album-section {
    border-top-color: var(--border-dark);
}

.add-album-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary-light);
}

.theme-dark .add-album-section h3 {
    color: var(--text-primary-dark);
}

.new-album-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.new-album-title {
    flex: 1;
    min-width: 200px;
}

.new-album-release-date {
    flex: 0 0 150px;
}

.new-album-cover {
    flex: 1;
    min-width: 200px;
}

.add-album-btn {
    padding: 10px 20px;
    background-color: var(--bg-secondary-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-primary-light);
    font-size: 14px;
}

.theme-dark .add-album-btn {
    background-color: var(--bg-secondary-dark);
    border-color: var(--border-dark);
    color: var(--text-primary-dark);
}

.theme-dark .cancel-button,
.theme-dark .back-button {
    background-color: var(--bg-secondary-dark);
    border-color: var(--border-dark);
    color: var(--text-primary-dark);
}

.cancel-button:hover,
.back-button:hover {
    background-color: var(--border-light);
}

.theme-dark .cancel-button:hover,
.theme-dark .back-button:hover {
    background-color: var(--border-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .top-bar .container {
        padding: 0 15px;
    }
    
    .top-bar-left {
        gap: 10px;
    }
    
    .logo a {
        font-size: 18px;
    }
    
    .home-button {
        padding: 0 16px;
        font-size: 14px;
        height: 36px;
        line-height: 36px;
    }
    
    .top-bar-right {
        gap: 10px;
    }
    
    .theme-toggle {
        font-size: 18px;
        padding: 5px 8px;
    }
    
    .login-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .user-avatar,
    .user-name {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .search-section {
        margin: 0;
        padding: 0 10px;
    }
    
    .search-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-input {
        padding: 10px 16px;
        font-size: 16px;
    }
    
    .search-button {
        padding: 10px 20px;
        font-size: 15px;
        width: 100%;
    }
    
    .page-header h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .album-title {
        font-size: 12px;
    }
    
    .streaming-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .streaming-link {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .edit-button-container {
        opacity: 1;
    }
    
    .edit-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .link-item,
    .picture-item-edit {
        flex-direction: column;
        align-items: stretch;
    }
    
    .link-item .link-key {
        flex: 1;
    }
    
    .band-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .band-sidebar {
        position: static;
    }
    
    .album-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .album-sidebar {
        position: static;
    }
    
    .section h2 {
        font-size: 20px;
    }
    
    .special-link {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .special-links {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .special-links a {
        text-align: center;
    }
    
    .home-stats-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .artists-list {
        grid-template-columns: 1fr;
    }
    
    .letter-header {
        font-size: 22px;
    }
    
    .pictures-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .info-stat-value {
        font-size: 20px;
    }
    
    .info-stat-label {
        font-size: 12px;
    }
    
    .band-info-section {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .search-title {
        font-size: 24px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .top-bar-left {
        gap: 8px;
    }
    
    .home-button {
        padding: 0 12px;
        font-size: 13px;
    }
    
    .logo a {
        font-size: 16px;
    }
    
    .section h2 {
        font-size: 18px;
    }
}

/* Admin Page Styles */
.admin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-section {
    background: var(--bg-secondary-light);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.theme-dark .admin-section {
    background: var(--bg-secondary-dark);
    border-color: var(--border-dark);
}

.admin-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.page-description {
    color: var(--text-secondary-light);
    margin-top: 10px;
}

.theme-dark .page-description {
    color: var(--text-secondary-dark);
}

.add-job-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 200px;
}

.form-group label {
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 14px;
    background: var(--bg-primary-light);
    color: var(--text-primary-light);
}

.theme-dark .form-group input,
.theme-dark .form-group select {
    background: var(--bg-primary-dark);
    border-color: var(--border-dark);
    color: var(--text-primary-dark);
}

.btn-primary {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-delete {
    padding: 5px 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.btn-delete:hover {
    background: #c82333;
}

.jobs-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-primary-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.theme-dark .filter-btn {
    background: var(--bg-primary-dark);
    border-color: var(--border-dark);
    color: var(--text-primary-dark);
}

.filter-btn:hover {
    background: var(--bg-secondary-light);
}

.theme-dark .filter-btn:hover {
    background: var(--bg-secondary-dark);
}

.filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.theme-dark .filter-btn.active {
    background: #007bff;
    color: white;
}

.jobs-list {
    overflow-x: auto;
}

.jobs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary-light);
}

.theme-dark .jobs-table {
    background: var(--bg-primary-dark);
}

.jobs-table th {
    padding: 12px;
    text-align: left;
    background: var(--bg-secondary-light);
    border-bottom: 2px solid var(--border-light);
    font-weight: 600;
    font-size: 14px;
}

.theme-dark .jobs-table th {
    background: var(--bg-secondary-dark);
    border-bottom-color: var(--border-dark);
}

.jobs-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.theme-dark .jobs-table td {
    border-bottom-color: var(--border-dark);
}

.jobs-table tr:hover {
    background: var(--bg-secondary-light);
}

.theme-dark .jobs-table tr:hover {
    background: var(--bg-secondary-dark);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #ffc107;
    color: #000;
}

.status-in-progress {
    background: #17a2b8;
    color: #fff;
}

.status-completed {
    background: #28a745;
    color: #fff;
}

.status-failed {
    background: #dc3545;
    color: #fff;
}

.error-tooltip {
    cursor: help;
    font-size: 16px;
}

.message {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.theme-dark .message.success {
    background: #1e4620;
    color: #90ee90;
    border-color: #28a745;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.theme-dark .message.error {
    background: #4a1e1e;
    color: #ff6b6b;
    border-color: #dc3545;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary-light);
}

.theme-dark .no-results {
    color: var(--text-secondary-dark);
}

/* Current Activity Section */
.current-activity {
    padding: 15px;
    background: var(--bg-primary-light);
    border: 2px solid #17a2b8;
    border-radius: 8px;
}

.theme-dark .current-activity {
    background: var(--bg-primary-dark);
    border-color: #17a2b8;
}

.activity-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.activity-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-light);
    border-top-color: #17a2b8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.theme-dark .activity-spinner {
    border-color: var(--border-dark);
    border-top-color: #17a2b8;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.activity-info {
    flex: 1;
}

.activity-job-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.activity-job-type {
    font-size: 14px;
    color: var(--text-secondary-light);
    margin-bottom: 6px;
}

.theme-dark .activity-job-type {
    color: var(--text-secondary-dark);
    opacity: 0.8;
}

.activity-current-step {
    font-size: 15px;
    color: #17a2b8;
    font-weight: 500;
    margin-bottom: 6px;
    font-style: italic;
}

.theme-dark .activity-current-step {
    color: #5bc0de;
}

.activity-elapsed {
    font-size: 13px;
    color: var(--text-secondary-light);
    font-weight: 500;
}

.theme-dark .activity-elapsed {
    color: var(--text-secondary-dark);
    opacity: 0.7;
}

/* Active Job Row */
.job-row-active {
    background: rgba(23, 162, 184, 0.1) !important;
    border-left: 4px solid #17a2b8;
}

.theme-dark .job-row-active {
    background: rgba(23, 162, 184, 0.2) !important;
}

.job-row-active:hover {
    background: rgba(23, 162, 184, 0.15) !important;
}

.theme-dark .job-row-active:hover {
    background: rgba(23, 162, 184, 0.3) !important;
}

.processing-indicator {
    display: inline-block;
    margin-left: 8px;
    animation: spin 2s linear infinite;
    color: #17a2b8;
    font-size: 16px;
}

@media (max-width: 768px) {
    .admin-page {
        padding: 10px;
    }
    
    .add-job-form {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .jobs-table {
        font-size: 12px;
    }
    
    .jobs-table th,
    .jobs-table td {
        padding: 8px;
    }
}

/* Login Page */
.login-page {
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    max-width: 400px;
    width: 100%;
    background-color: var(--bg-secondary-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-dark .login-container {
    background-color: var(--bg-secondary-dark);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary-light);
    margin-bottom: 30px;
}

.theme-dark .login-subtitle {
    color: var(--text-secondary-dark);
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-button {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s;
}

.login-button:hover {
    opacity: 0.9;
}

.google-login {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
}

.theme-dark .google-login {
    background-color: var(--bg-primary-dark);
    border-color: var(--border-dark);
    color: var(--text-primary-dark);
}

.facebook-login {
    background-color: #1877f2;
    color: white;
}

.email-login {
    background-color: #4285f4;
    color: white;
}

.login-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: var(--border-light);
}

.theme-dark .login-divider::before,
.theme-dark .login-divider::after {
    background-color: var(--border-dark);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.login-divider span {
    background-color: var(--bg-secondary-light);
    padding: 0 10px;
    position: relative;
    color: var(--text-secondary-light);
}

.theme-dark .login-divider span {
    background-color: var(--bg-secondary-dark);
    color: var(--text-secondary-dark);
}

.email-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary-light);
}

.theme-dark .form-group label {
    color: var(--text-primary-dark);
}

.form-group input {
    padding: 10px 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--bg-primary-light);
    color: var(--text-primary-light);
}

.theme-dark .form-group input {
    background-color: var(--bg-primary-dark);
    border-color: var(--border-dark);
    color: var(--text-primary-dark);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.login-footer a {
    color: #4285f4;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.login-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.theme-dark .login-message.success {
    background-color: #1e4620;
    color: #90ee90;
    border-color: #2d5a2d;
}

.login-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.theme-dark .login-message.error {
    background-color: #4a1a1a;
    color: #ff6b6b;
    border-color: #5a2a2a;
}

.login-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.theme-dark .login-message.info {
    background-color: #1a3a42;
    color: #6bc5d4;
    border-color: #2a4a52;
}

/* Profile Page */
.profile-page {
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

.profile-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-secondary-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-dark .profile-container {
    background-color: var(--bg-secondary-dark);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.profile-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.theme-dark .profile-section {
    border-bottom-color: var(--border-dark);
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #4285f4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.profile-username {
    color: var(--text-secondary-light);
    font-size: 16px;
    margin-bottom: 5px;
}

.theme-dark .profile-username {
    color: var(--text-secondary-dark);
}

.profile-email {
    color: var(--text-secondary-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.theme-dark .profile-email {
    color: var(--text-secondary-dark);
}

.verified-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.theme-dark .verified-badge {
    background-color: #1e4620;
    color: #90ee90;
}

.unverified-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.theme-dark .unverified-badge {
    background-color: #4a3a1a;
    color: #ffd700;
}

.profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.profile-button {
    padding: 12px 24px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.profile-button:hover {
    background-color: #c82333;
}

/* Email Verification Page */
.verification-page {
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.verification-container {
    max-width: 500px;
    width: 100%;
    background-color: var(--bg-secondary-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.theme-dark .verification-container {
    background-color: var(--bg-secondary-dark);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.verification-success h1,
.verification-error h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.verification-success {
    color: #155724;
}

.theme-dark .verification-success {
    color: #90ee90;
}

.verification-error {
    color: #721c24;
}

.theme-dark .verification-error {
    color: #ff6b6b;
}

.verification-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.verification-button:hover {
    background-color: #357ae8;
}

