:root {
    --primary-color: #1DB954;
    --dark-color: #191414;
    --light-color: #f8f9fa;
}

html, body {
    height: 100%;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1;
    overflow-y: auto;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover {
    background-color: #1ed760;
    border-color: #1ed760;
}

/* Album Card */
.album-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

@keyframes pulse-once {
    0%   { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    60%  { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: none; }
}

.btn-pulse-once {
    animation: pulse-once 1.2s ease-out;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.album-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-info {
    padding: 15px;
}

.album-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.album-meta {
    font-size: 0.85rem;
    color: #999;
}

.album-popularity {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 8px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Playlist Card */
.playlist-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    transition: transform 0.2s;
    cursor: pointer;
}

.playlist-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.playlist-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.playlist-meta {
    font-size: 0.9rem;
    color: #666;
}

.playlist-meta span {
    margin-right: 20px;
}

.playlist-icon {
    margin-right: 5px;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: #e9ecef;
    color: #333;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: transparent;
}

/* Table */
.table {
    margin-top: 20px;
}

.table thead {
    background-color: #f8f9fa;
}

.table th {
    border-top: none;
    color: #666;
    font-weight: 600;
}

/* Modal */
.modal-content {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.modal-title {
    font-weight: 600;
}

/* Loading */
.loading {
    display: inline-block;
    margin-left: 10px;
}

.spinner-border {
    width: 1rem;
    height: 1rem;
    color: var(--primary-color);
}

/* Alert */
.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-warning h4 {
    color: #856404;
}

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

@media (max-width: 768px) {
    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* Artist Card (Agency View) */
.artist-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.artist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.artist-card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1DB954 0%, #191414 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    overflow: hidden;
}

.artist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-card-info {
    padding: 20px;
    flex-grow: 1;
}

.artist-card-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
}

.artist-card-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.artist-card-stat strong {
    color: var(--primary-color);
    font-weight: 600;
}

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

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-bar .form-select,
.filter-bar .form-control {
    font-size: 0.9rem;
    height: auto;
    padding: 8px 12px;
}

/* CSV Drop Zone */
.csv-drop-zone {
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    background: #f0fdf4;
    transition: all 0.3s;
    cursor: pointer;
}

.csv-drop-zone:hover,
.csv-drop-zone.dragover {
    background: #e8fce8;
    border-color: #0fa345;
}

.csv-drop-zone h5 {
    color: #333;
    margin: 20px 0 10px;
}

.csv-drop-zone p {
    margin: 0;
}

.csv-drop-zone a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.csv-drop-zone a:hover {
    text-decoration: underline;
}

/* Spotify Links */
.spotify-btn,
.spotify-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.spotify-btn:hover,
.spotify-link:hover {
    color: #1ed760;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 15px;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .nav-tabs {
        flex-wrap: wrap;
    }

    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar .form-select,
    .filter-bar .form-control {
        width: 100%;
    }
}

/* Kompaktere Stat-Cards wenn 6 in einer Reihe */
@media (min-width: 992px) {
    .col-lg-2 .stat-card {
        padding: 14px 10px;
    }
    .col-lg-2 .stat-value {
        font-size: 1.9rem;
    }
    .col-lg-2 .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    .col-lg-2 .stat-label {
        font-size: 0.8rem;
    }
}

/* ===== INTERACTIVE UTILITY ===== */
.interactive {
    cursor: pointer;
    transition: background-color 0.15s;
}
.interactive:hover {
    background-color: rgba(29, 185, 84, 0.06);
}

/* Sortierbare Tabellen-Header */
.sortable-th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.sortable-th:hover {
    background-color: #e9ecef !important;
    color: #333;
}
.sortable-th::after {
    content: ' ⇅';
    opacity: 0.3;
    font-size: 0.75em;
}
.sortable-th.sort-asc::after  { content: ' ▲'; opacity: 1; color: var(--primary-color); }
.sortable-th.sort-desc::after { content: ' ▼'; opacity: 1; color: var(--primary-color); }

/* Filter-Aktiv-Badge */
.filter-active-badge {
    font-size: 0.7rem;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 1px 7px;
    vertical-align: middle;
}
