/* Dashboard Layout Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--gray-900);
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: 1px solid rgba(55, 65, 81, 0.6);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

/* Sidebar Header (logo + user merged) */
.sidebar-header {
    padding: 1.25rem 1.25rem 0;
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.sidebar-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    align-self: center;
}

.sidebar-logo {
    height: 64px;
    width: auto;
    mix-blend-mode: screen;
    display: block;
}

.sidebar-header-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(31, 41, 55, 0.6);
    border-radius: 0.75rem;
    padding: 0.25rem 0.65rem;
    margin-bottom: 1rem;
}

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

.user-avatar img,
.user-avatar i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(88, 101, 242, 0.5);
    display: block;
}

.user-avatar i {
    font-size: 2rem;
    color: var(--discord);
    border: none;
    line-height: 34px;
}

.user-name {
    flex: 1;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.sidebar-header-actions {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex-shrink: 0;
}

.sidebar-icon-btn {
    color: #4b5563;
    transition: all 0.2s;
    padding: 0.25rem;
    border-radius: 0.375rem;
    text-decoration: none;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.home-btn:hover {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
    text-decoration: none;
}

.docs-btn:hover {
    color: #818cf8;
    background-color: rgba(88, 101, 242, 0.1);
    text-decoration: none;
}

.logout-btn:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    text-decoration: none;
}

/* Current Server Info */
.current-server {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(88, 101, 242, 0.06);
}

.server-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.server-icon-wrapper {
    flex-shrink: 0;
}

.server-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(88, 101, 242, 0.5);
}

.server-icon.fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--discord), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.server-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.server-name {
    color: white;
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-permission {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #10b981;
    font-size: 0.7rem;
    font-weight: 500;
}

.server-permission i {
    color: #10b981;
    font-size: 0.65rem;
}

.change-server-btn {
    color: #4b5563;
    transition: all 0.2s;
    padding: 0.4rem;
    border-radius: 0.375rem;
    text-decoration: none;
    flex-shrink: 0;
}

.change-server-btn:hover {
    color: var(--discord);
    background-color: rgba(88, 101, 242, 0.12);
    text-decoration: none;
}

/* Navigation Section */
.sidebar-nav-section {
    padding: 0 0 1.25rem;
    flex: 1;
}

.sidebar-nav {
    list-style: none;
    padding: 0 0.875rem;
    margin: 0;
}

.sidebar-nav-item {
    margin-bottom: 0.2rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.875rem;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.18s;
    border-radius: 0.6rem;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.sidebar-nav-link {
    position: relative;
    overflow: hidden;
}

.sidebar-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.18), transparent);
    transition: none;
    pointer-events: none;
}

.sidebar-nav-link:hover::before {
    left: 160%;
    transition: left 0.55s ease;
}

.sidebar-nav-link:hover {
    background-color: rgba(88, 101, 242, 0.1);
    color: white;
    border-left-color: rgba(88, 101, 242, 0.4);
    text-decoration: none;
}

/* Loading state on click */
.sidebar-nav-link.nav-loading {
    pointer-events: none;
    opacity: 0.75;
}

.sidebar-nav-link.nav-loading > i:first-child {
    animation: sidebarSpinIcon 0.7s linear infinite;
}

@keyframes sidebarSpinIcon {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.sidebar-nav-link.active {
    background: rgba(88, 101, 242, 0.15);
    color: white;
    border-left-color: #5865f2;
}

.sidebar-nav-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-external-icon {
    font-size: 0.6rem !important;
    width: auto !important;
    margin-left: auto;
    color: #374151;
}

.sidebar-nav-link-external:hover .sidebar-external-icon {
    color: inherit;
}

.sidebar-nav-group {
    margin-top: 0.75rem;
}

.sidebar-nav-group-title {
    padding: 0.4rem 1.25rem;
    color: #4b5563;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(55, 65, 81, 0.5);
    background: rgba(13, 17, 23, 0.6);
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.sidebar-footer-brand img {
    height: 28px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: block;
}

.sidebar-footer-brand:hover img {
    opacity: 1;
}

.sidebar-footer-copy {
    color: #374151;
    font-size: 0.68rem;
    margin: 0;
    text-align: center;
}

/* ========= SERVER SELECT DROPDOWN ============================= */
.srv-select-wrap {
    position: relative;
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.srv-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.875rem 1.25rem;
    background: rgba(88, 101, 242, 0.06);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s;
}

.srv-select-trigger:hover,
.srv-select-trigger.open {
    background: rgba(88, 101, 242, 0.12);
}

.srv-select-icon-wrap {
    flex-shrink: 0;
}

.srv-select-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: block;
}

.srv-select-fallback {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865f2, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

.srv-select-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.srv-select-label {
    font-size: 0.68rem;
    color: #4b5563;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.srv-select-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.srv-select-chevron {
    color: #4b5563;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s;
}

.srv-select-trigger:hover .srv-select-chevron,
.srv-select-trigger.open .srv-select-chevron {
    color: #9ca3af;
}

/* Dropdown panel */
.srv-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1100;
    background: #0d1117;
    border: 1px solid rgba(55, 65, 81, 0.7);
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.srv-select-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.875rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.4);
}

.srv-select-search-icon {
    color: #4b5563;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.srv-select-search {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 0.82rem;
    caret-color: #5865f2;
}

.srv-select-search::placeholder {
    color: #374151;
}

.srv-select-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 0.35rem 0;
    scrollbar-width: thin;
    scrollbar-color: #374151 transparent;
}

/* Server options */
.srv-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.875rem;
    cursor: pointer;
    transition: background 0.15s;
}

.srv-option:hover {
    background: rgba(88, 101, 242, 0.1);
}

.srv-option.current {
    background: rgba(88, 101, 242, 0.08);
}

.srv-option-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #5865f2, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.srv-option-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.srv-option-icon span {
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
}

.srv-option-name {
    flex: 1;
    font-size: 0.84rem;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.srv-option.current .srv-option-name {
    color: white;
    font-weight: 600;
}

.srv-option-check {
    color: #5865f2;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* States */
.srv-select-loading,
.srv-select-error,
.srv-select-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem;
    font-size: 0.82rem;
    color: #4b5563;
}

.srv-select-error {
    color: #ef4444;
}

.srv-select-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #374151;
    border-top-color: #5865f2;
    border-radius: 50%;
    animation: srvSpin 0.7s linear infinite;
}

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

/* Main Content Styles */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 2rem 2.5rem;
    background-color: var(--gray-900);
    min-height: 100vh;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* ========= OVERVIEW PAGE ====================================== */
.overview-header {
    margin-bottom: 2rem;
}

.overview-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.35rem;
}

.overview-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.overview-subtitle strong {
    color: #9ca3af;
    font-weight: 600;
}

/* Stat cards row */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.overview-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 0.875rem;
    padding: 1.25rem 1.5rem;
    border-top: 3px solid transparent;
}

.overview-stat-card.blue  { border-top-color: #5865f2; }
.overview-stat-card.green { border-top-color: #10b981; }
.overview-stat-card.purple{ border-top-color: #8b5cf6; }
.overview-stat-card.orange{ border-top-color: #f59e0b; }

.overview-stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.overview-stat-card.blue   .overview-stat-icon { background: rgba(88,101,242,0.15);  color: #818cf8; }
.overview-stat-card.green  .overview-stat-icon { background: rgba(16,185,129,0.15);  color: #34d399; }
.overview-stat-card.purple .overview-stat-icon { background: rgba(139,92,246,0.15);  color: #a78bfa; }
.overview-stat-card.orange .overview-stat-icon { background: rgba(245,158,11,0.15);  color: #fbbf24; }

.overview-stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.overview-stat-label {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.2rem;
    font-weight: 500;
}

/* Quick access section */
.overview-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4b5563;
    margin-bottom: 0.875rem;
}

.overview-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.overview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-left: 3px solid transparent;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
}

.overview-card:hover {
    background: rgba(31,41,55,0.9);
    transform: translateX(3px);
    text-decoration: none;
}

.overview-card.blue:hover   { border-left-color: #5865f2; }
.overview-card.green:hover  { border-left-color: #10b981; }
.overview-card.purple:hover { border-left-color: #8b5cf6; }
.overview-card.orange:hover { border-left-color: #f59e0b; }
.overview-card.gray:hover   { border-left-color: #6b7280; }

.overview-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.overview-card.blue   .overview-card-icon { background: rgba(88,101,242,0.15);  color: #818cf8; }
.overview-card.green  .overview-card-icon { background: rgba(16,185,129,0.15);  color: #34d399; }
.overview-card.purple .overview-card-icon { background: rgba(139,92,246,0.15);  color: #a78bfa; }
.overview-card.orange .overview-card-icon { background: rgba(245,158,11,0.15);  color: #fbbf24; }
.overview-card.gray   .overview-card-icon { background: rgba(107,114,128,0.15); color: #9ca3af; }

.overview-card-body {
    flex: 1;
    min-width: 0;
}

.overview-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.15rem;
}

.overview-card-desc {
    font-size: 0.78rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overview-card-arrow {
    color: #374151;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: color 0.18s, transform 0.18s;
}

.overview-card:hover .overview-card-arrow {
    color: #9ca3af;
    transform: translateX(2px);
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header p {
    color: var(--gray-300);
    margin: 0;
    font-size: 1.125rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--discord) 0%, #4338ca 100%);
    border-radius: 0.75rem;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(88, 101, 242, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.1);
}

.stat-card.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.1);
}

.stat-card.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.1);
}

.stat-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card-number {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card-label {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.stat-card-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon i {
    font-size: 1.5rem;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--gray-700);
        overflow-y: visible;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
}

/* Item Card Styles */
.item-card {
    background-color: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.item-card:hover {
    background-color: var(--gray-750);
    transform: translateY(-2px);
}

.item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.item-card-header > div:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-card-title {
    color: white;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Role Indicator */
.role-indicator {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.35rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    width: fit-content;
}

.role-indicator i {
    font-size: 0.6rem;
    margin-right: 3px;
}

.role-dps {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.role-healer {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.role-support {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.role-tank {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.role-battlemount {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.role-unknown {
    background: linear-gradient(135deg, var(--gray-500), var(--gray-600));
}

.build-title-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.build-title-link:hover {
    color: #3b82f6;
    text-decoration: none;
}

.item-card-actions {
    display: flex;
    gap: 0.5rem;
}

.item-card-btn {
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

.item-card-btn:hover {
    opacity: 0.8;
}

.item-card-btn.edit {
    background: var(--discord);
}

.item-card-btn.delete {
    background: #dc2626;
}

.item-card-description {
    color: var(--gray-300);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.item-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-card-badge {
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.item-card-meta {
    color: var(--gray-400);
    font-size: 0.75rem;
}

.view-build-btn {
    background-color: #0ea5e9;
}

.view-build-btn:hover {
    background-color: #0284c7;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-300);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-state h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.7;
}

/* Action Button */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--discord) 0%, #4338ca 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.action-btn.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.action-btn.green:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.action-btn.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.action-btn.purple:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.action-btn.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.action-btn.orange:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ========================================
   Shared Section Styles for Parties & Compositions
   ======================================== */

/* Active Items Section */
.active-items-section {
    margin-top: 3rem;
}

.active-items-section h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Inactive Items Section */
.inactive-items-section {
    margin-top: 3rem;
}

.inactive-items-section h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inactive-items-section .section-description {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Items Grid (Shared for both parties and compositions) */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.items-grid .empty-state {
    grid-column: 1 / -1; /* Span all columns */
}

@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
}

/* Inactive Badge (Shared for both parties and compositions) */
.inactive-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: #374151;
    color: #9ca3af;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #4b5563;
}
