/* --- Color Palette & Fonts --- */
:root {
  --brand-orange: #F16623;
  --brand-blue: #2A4B8D;
  --text-dark: #343a40;
  --text-light: #6c757d;
  --background-grey: #f4f7fa;
  --container-white: #ffffff;
  --border-color: #e9ecef;
  --success-green: #28a745;
  --warning-orange: #fd7e14;
  --info-blue: #17a2b8;
  --danger-red: #dc3545;
}

/* --- Basic Setup --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background-color: var(--background-grey);
  color: var(--text-dark);
}

/* --- Main Layout (Same as Dashboard) --- */
.dashboard-layout {
  display: block;
}

/* --- Blue Sidebar --- */
  text-decoration: none;
  font-weight: 600;
}

/* --- Main Content Area --- */
.main-content {
  margin-left: 240px;
  width: calc(100% - 240px);
}

/* --- Orange Header --- */

.page-content {
  padding: 40px;
  margin-top: 80px;
}

/* --- Page Header --- */
.page-header {
  display: block;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

.header-controls {
  display: block;
  align-items: center;
  gap: 20px;
}

/* --- View Toggle --- */
.view-toggle {
  display: block;
  background-color: #1a1a1a;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.toggle-btn {
  padding: 10px 20px;
  border: none;
  background-color: transparent;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
  align-items: center;
  gap: 8px;
}
.toggle-btn.active {
  background-color: var(--brand-blue);
  color: #ffffff !important; font-weight: 700;
}
.toggle-btn:hover:not(.active) {
  background-color: var(--background-grey);
}

/* --- Upload Button --- */
.upload-btn {
  background-color: var(--brand-orange);
  color: #ffffff !important; font-weight: 700;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(241, 102, 35, 0.3);
}
.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(241, 102, 35, 0.4);
}
.upload-btn .icon {
  font-size: 18px;
  font-weight: bold;
}

/* --- Grid View --- */
.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.release-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.release-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

}
.status-badge.live {
  background-color: var(--success-green);
  color: #ffffff !important; font-weight: 700;
}
.status-badge.under-review {
  background-color: var(--info-blue);
  color: #ffffff !important; font-weight: 700;
}
.status-badge.draft {
  background-color: var(--text-light);
  color: #ffffff !important; font-weight: 700;
}
.status-badge.rejected {
  background-color: var(--danger-red);
  color: #ffffff !important; font-weight: 700;
}

.card-content {
  padding: 20px;
}
.release-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-dark);
}
.artist-name {
  font-size: 14px;
  color: var(--text-light);
  margin: 0 0 8px 0;
}
.release-date {
  font-size: 14px;
  color: var(--text-light);
  margin: 0 0 15px 0;
}
.release-stats {
  display: block;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}
.streams {
  color: var(--brand-blue);
}
.earnings {
  color: var(--brand-orange);
}

/* --- List View --- */
.releases-list {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.list-header {
  display: grid;
  grid-template-columns: 80px 2fr 1.5fr 1.5fr 1fr 1fr 1fr;
  gap: 20px;
  padding: 20px;
  background-color: var(--background-grey);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
}

.list-item {
  display: grid;
  grid-template-columns: 80px 2fr 1.5fr 1.5fr 1fr 1fr 1fr;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  transition: background-color 0.3s;
  cursor: pointer;
}
.list-item:hover {
  background-color: var(--background-grey);
}
.list-item:last-child {
  border-bottom: none;
}

.col-cover img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.col-title {
  font-weight: 700;
  color: var(--text-dark);
}

.col-artist, .col-date {
  color: var(--text-light);
}

.col-streams {
  color: var(--brand-blue);
  font-weight: 600;
}

.col-earnings {
  color: var(--brand-orange);
  font-weight: 700;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
  .releases-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .page-content {
    margin-top: 0;
    padding: 20px;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .header-controls {
    width: 100%;
    justify-content: space-between;
  }
  .releases-grid {
    grid-template-columns: 1fr;
  }
  .list-header, .list-item {
    grid-template-columns: 60px 2fr 1fr 1fr;
    gap: 15px;
  }
  .col-artist, .col-date, .col-streams {
    display: none;
  }
}

/* Tab Navigation */
.tab-navigation {
    display: block;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--brand-orange);
    color: #ffffff !important; font-weight: 700;
}

.tab-btn:hover:not(.active) {
    background: var(--background-grey);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Artists/Releases Headers */
.artists-header,
.releases-header {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.artists-stats,
.releases-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-orange);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.artists-actions,
.releases-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--brand-orange);
    color: #ffffff !important; font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(241, 102, 35, 0.3);
}

.btn-secondary {
    background: #1a1a1a;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-grey);
}

/* Filters */
.artists-filters,
.releases-filters {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-input,
.filter-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 200px;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--brand-orange);
}

/* Tables */
.artists-table-container,
.releases-table-container {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.artists-table,
.releases-table {
    width: 100%;
    border-collapse: collapse;
}

.artists-table th,
.releases-table th {
    background: var(--background-grey);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.artists-table td,
.releases-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.artists-table tr:hover,
.releases-table tr:hover {
    background: var(--background-grey);
}

/* Loading States */
.loading-state {
    padding: 3rem;
    text-align: center;
    display: block;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-state i {
    font-size: 2rem;
    color: var(--brand-orange);
}

.loading-state p {
    color: var(--text-light);
    margin: 0;
}

/* Artist Info Styling */
.artist-info {
    display: block;
    align-items: center;
    gap: 0.75rem;
}

.artist-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.artist-name {
    font-weight: 600;
    color: var(--text-dark);
}

.artist-bio {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Release Info Styling */
.release-info {
    display: block;
    align-items: center;
    gap: 0.75rem;
}

.release-artwork {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.release-title {
    font-weight: 600;
    color: var(--text-dark);
}

.release-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Genre Tags */
.genre-tag {
    background: var(--brand-orange);
    color: #ffffff !important; font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #D1FAE5;
    color: #065F46;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-rejected {
    background: #FEE2E2;
    color: #991B1B;
}

.status-draft {
    background: #E5E7EB;
    color: #374151;
}

/* Icon Buttons */
.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 1rem;
}

.btn-icon:hover {
    background: var(--background-grey);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .artists-header,
    .releases-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .artists-stats,
    .releases-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .artists-filters,
    .releases-filters {
        flex-direction: column;
    }
    
    .filter-input,
    .filter-select {
        min-width: 100%;
    }
    
    .artist-info,
    .release-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .artist-avatar,
    .release-artwork {
        width: 32px;
        height: 32px;
    }
}

.status-badge.status-published {
  background: #10b981;
  color: #ffffff !important; font-weight: 700;
}

.status-badge.status-pending {
  background: #f59e0b;
  color: #ffffff !important; font-weight: 700;
}

.status-badge.status-submitted {
  background: #3b82f6;
  color: #ffffff !important; font-weight: 700;
}

.status-badge.status-rejected {
  background: #ef4444;
  color: #ffffff !important; font-weight: 700;
}

.status-badge.status-draft {
  background: #6b7280;
  color: #ffffff !important; font-weight: 700;
}

/* Dark table header */
.releases-table thead {
  background-color: #2a2a2a !important;
}

.releases-table thead th {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
  border-bottom: 2px solid #ff6b35;
}


/* Imported iMusician drafts */
.status-badge.status-imported-draft {
    background: rgba(241, 102, 35, 0.18);
    border: 1px solid rgba(241, 102, 35, 0.55);
    color: #ffb181;
}

.imported-draft-detail {
    margin-top: 5px;
    color: #b7aea1;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}
