/* Party Builder Styles */

.party-builder-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
    margin-bottom: 1rem;
    height: 100%;
}

/* Builds Column Styles */
.builds-column {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

.builds-column h3 {
    color: white;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.builds-column h3 i {
    color: var(--blue-400);
}

.builds-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0.25rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    color: #9ca3af;
    min-height: 200px;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    color: #d1d5db;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-state p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: #9ca3af;
}

/* Build Card Styles */
.build-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.375rem;
    border: 2px solid transparent;
    cursor: grab;
    transition: all 0.2s;
    position: relative;
    user-select: none;
    width: 100%;
    height: 36px;
    font-size: 0.85rem;
}

.build-card:active {
    cursor: grabbing;
}

.build-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

/* Role-based background colors */
.build-card[data-role="dps"] {
    background-color: #dc2626; /* Ferrari Red */
}

.build-card[data-role="tank"] {
    background-color: #3b82f6; /* Light Blue */
}

.build-card[data-role="healer"] {
    background-color: #16a34a; /* Medium Green */
}

.build-card[data-role="support"] {
    background-color: #eab308; /* Yellow */
    color: #000;
}

.build-card[data-role="battlemount"] {
    background-color: #9ca3af; /* Light Gray */
    color: #000;
}

.build-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.build-weapon-icon {
    width: 26px;
    height: 26px;
    border-radius: 0.25rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.build-text {
    color: white;
    flex: 1;
    overflow: hidden;
}

.build-name {
    color: white;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.build-role {
    display: none; /* Hide role text since color identifies it */
}

.build-card[data-role="support"] .build-name,
.build-card[data-role="battlemount"] .build-name {
    color: #000;
}

/* Party Column Styles */
.party-column {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

.party-column h3 {
    color: white;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.party-column h3 i {
    color: var(--green-400);
}

/* New Party Grid for 20 compact slots */
.party-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
    margin-bottom: 1rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 0.25rem;
    align-content: start;
}

/* Adjust grid for better space when there are multiple builds per slot */
@media (min-width: 1024px) {
    .party-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
}

.party-build-slot {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.35rem;
    border: 2px dashed #6b7280;
    border-radius: 0.375rem;
    background: #374151;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

.party-build-slot:hover {
    background: #3f4957;
    border-color: #9ca3af;
}

.party-build-slot.drag-over {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    transform: scale(1.02);
}

.party-build-slot.slot-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #4b5563;
}

.party-build-slot.slot-disabled .slot-content {
    color: #6b7280;
}

/* Remove fixed height when occupied - let content determine height */
.party-build-slot.occupied {
    border: 2px solid #10b981;
    background: #4b5563;
}

.party-build-slot.occupied:hover {
    background: #515c6b;
}

.party-build-slot .slot-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #4b5563;
    color: white;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 600;
    flex-shrink: 0;
}

.party-build-slot .slot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    margin-bottom: 0.2rem;
    flex-shrink: 0;
}

.party-build-slot .slot-content {
    flex: 1;
    color: #9ca3af;
    font-size: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    overflow: hidden;
    justify-content: flex-start;
}

/* Slot builds container */
.slot-builds {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
}

.drop-placeholder {
    font-size: 0.6rem;
    color: #9ca3af;
    white-space: nowrap;
    text-align: center;
    padding: 0.5rem 0;
}

.build-slot {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    height: 30px;
    width: 100%;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

.build-slot.occupied {
    /* Background color will be set dynamically based on role */
}

/* Role-based colors for build slots */
.build-slot.occupied[data-role="dps"] {
    background: #dc2626; /* Ferrari Red */
}

.build-slot.occupied[data-role="tank"] {
    background: #3b82f6; /* Light Blue */
}

.build-slot.occupied[data-role="healer"] {
    background: #16a34a; /* Medium Green */
}

.build-slot.occupied[data-role="support"] {
    background: #eab308; /* Yellow */
}

.build-slot.occupied[data-role="battlemount"] {
    background: #9ca3af; /* Light Gray */
}

.build-slot.occupied:hover {
    filter: brightness(1.1);\n    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.build-slot img {
    width: 20px;
    height: 20px;
    border-radius: 0.2rem;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.build-slot .build-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.build-slot .build-name {
    font-size: 0.75rem;
    color: white;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    line-height: 1.1;
    font-weight: 500;
}

/* For support and battlemount roles, adjust text color for better contrast */
.build-slot.occupied[data-role="support"] .build-name,
.build-slot.occupied[data-role="battlemount"] .build-name {
    color: #000;
}

.build-slot .build-remove-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    z-index: 10;
}

.build-slot:hover .build-remove-btn {
    opacity: 1;
}

.build-slot .build-remove-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: translateY(-50%) scale(1.1);
}

/* Show build name on hover as tooltip */
.build-slot img:hover::after {
    content: attr(alt);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.6rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.slot-add-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.slot-add-btn:hover {
    background: rgba(59, 130, 246, 1);
    transform: scale(1.1);
}

.party-build-slot.occupied .slot-content {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    border-radius: 0.375rem;
    height: auto;
    position: relative;
}

/* Apply role colors to occupied party build slots - REMOVED to keep clean appearance */
/* We'll keep the border color to indicate occupation without background colors */

/* Smaller remove button for compact slots */
.party-build-slot .slot-remove-btn {
    background: rgba(220, 38, 38, 0.9);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Hide for now as we use build-slot remove buttons */
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity 0.2s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.party-build-slot.occupied:hover .slot-remove-btn {
    opacity: 1;
}

.party-build-slot .slot-remove-btn:hover {
    background: rgba(220, 38, 38, 1);
}

/* Old party slots styles - keep for backward compatibility */
.party-slots {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.party-slot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px dashed var(--gray-600);
    border-radius: 0.5rem;
    background: var(--gray-750);
    transition: all 0.2s;
    min-height: 60px;
}

.party-slot.drag-over {
    border-color: var(--blue-400);
    background: rgba(59, 130, 246, 0.1);
}

.party-slot.occupied {
    border: 2px solid var(--green-400);
    background: var(--gray-700);
}

.slot-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--gray-600);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.slot-content {
    flex: 1;
    color: var(--gray-400);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.party-slot.occupied .slot-content {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    height: 40px;
    position: relative;
}

.party-slot .build-card {
    margin: 0;
    width: 100%;
    max-width: none;
}

/* Apply role colors to occupied slots */
.party-slot.occupied .slot-content[data-role="dps"] {
    background-color: #dc2626;
}

.party-slot.occupied .slot-content[data-role="tank"] {
    background-color: #3b82f6;
}

.party-slot.occupied .slot-content[data-role="healer"] {
    background-color: #16a34a;
}

.party-slot.occupied .slot-content[data-role="support"] {
    background-color: #eab308;
    color: #000;
}

.party-slot.occupied .slot-content[data-role="battlemount"] {
    background-color: #9ca3af;
    color: #000;
}

.slot-remove-btn {
    background: #991b1b;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.party-slot.occupied:hover .slot-remove-btn {
    opacity: 1;
}

.slot-remove-btn:hover {
    background: #7f1d1d;
}

/* Party Composition Styles */
.party-composition {
    background: var(--gray-750);
    border-radius: 0.5rem;
    padding: 0.75rem;
    flex-shrink: 0;
}

.party-composition h4 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.composition-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.role-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.role-icon {
    width: 14px;
    height: 14px;
    border-radius: 0.25rem;
}

.role-icon.dps {
    background-color: #dc2626;
}

.role-icon.tank {
    background-color: #3b82f6;
}

.role-icon.healer {
    background-color: #16a34a;
}

.role-icon.support {
    background-color: #eab308;
}

.role-icon.battlemount {
    background-color: #9ca3af;
}

.role-label {
    color: var(--gray-300);
    font-weight: 500;
    font-size: 0.75rem;
}

.role-count-value {
    color: white;
    font-weight: 600;
    background: var(--gray-600);
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    min-width: 24px;
    text-align: center;
    font-size: 0.8rem;
}

/* Saved Parties Section */
.saved-parties-section {
    margin-bottom: 1.5rem;
}

.saved-parties-section h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #374151;
}

.saved-parties-section h3 i {
    color: var(--purple-400);
}

/* Deleted Parties Section */
.deleted-parties-section {
    padding-top: 2rem;
}

.deleted-parties-section h3 {
    color: #9ca3af;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #4b5563;
}

.deleted-parties-section h3 i {
    color: #6b7280;
}

/* Parties Grid - Now using shared .items-grid from dashboard.css */

.saved-party-card {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s;
}

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

.saved-party-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.saved-party-name {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.saved-party-description,
.party-description {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
}

.saved-party-builds {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.saved-party-build {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--gray-750);
    border-radius: 0.375rem;
}

.saved-party-build .build-weapon-icon {
    width: 24px;
    height: 24px;
}

.saved-party-build .build-name {
    font-size: 0.75rem;
    margin: 0;
}

.saved-party-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.saved-party-btn {
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.load-party-btn {
    background: var(--blue-500);
    color: white;
}

.load-party-btn:hover {
    background: var(--blue-600);
}

.delete-party-btn {
    background: var(--red-500);
    color: white;
}

.delete-party-btn:hover {
    background: var(--red-600);
}

/* Party Name Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: var(--gray-800);
    margin: 3% auto;
    padding: 0;
    border: 1px solid var(--gray-700);
    border-radius: 0.75rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

#partyNameForm {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--gray-700);
    border: 1px solid var(--gray-600);
    border-radius: 0.375rem;
    color: white;
    font-size: 0.875rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.form-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.form-actions .btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .party-builder-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .party-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .composition-stats {
        justify-content: center;
    }
    
    /* Items grid media query now in dashboard.css */
    
    .party-builder-modal-content {
        width: 95% !important;
        max-height: 95vh !important;
    }
}

/* Scrollbar Styling */
.builds-list::-webkit-scrollbar,
.party-grid::-webkit-scrollbar,
.party-modal-content-wrapper::-webkit-scrollbar {
    width: 6px;
}

.builds-list::-webkit-scrollbar-track,
.party-grid::-webkit-scrollbar-track,
.party-modal-content-wrapper::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}

.builds-list::-webkit-scrollbar-thumb,
.party-grid::-webkit-scrollbar-thumb,
.party-modal-content-wrapper::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

.builds-list::-webkit-scrollbar-thumb:hover,
.party-grid::-webkit-scrollbar-thumb:hover,
.party-modal-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 450px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    line-height: 1.4;
}

.notification span {
    flex: 1;
    white-space: pre-wrap;
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

.notification.warning {
    background: #f59e0b;
}

.notification.info {
    background: #3b82f6;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.8;
    margin-left: auto;
}

.notification-close:hover {
    opacity: 1;
}

/* Party Builder Modal */
.party-builder-modal-content {
    max-width: 1200px !important;
    width: 90% !important;
}

.party-modal-content-wrapper {
    /* Remove transform scale for better proportions */
}
/* Party Preview Modal */
.party-preview-modal-content {
    background: #1f2937;
}

.preview-party-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

@media (max-width: 1200px) {
    .preview-party-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .preview-party-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.preview-party-slot {
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    overflow: hidden;
}

.preview-slot-header {
    background: #1f2937;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #4b5563;
}

.preview-slot-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
}

.preview-slot-builds {
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.preview-build-slot {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.preview-build-slot img {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    flex-shrink: 0;
}

.preview-build-name {
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.preview-empty-slot {
    font-size: 0.7rem;
    color: #6b7280;
    text-align: center;
    padding: 0.5rem;
    font-style: italic;
}

/* Role colors for preview */
.preview-build-slot[data-role="dps"] {
    background: #dc2626;
}

.preview-build-slot[data-role="tank"] {
    background: #3b82f6;
}

.preview-build-slot[data-role="healer"] {
    background: #16a34a;
}

.preview-build-slot[data-role="support"] {
    background: #eab308;
}

.preview-build-slot[data-role="battlemount"] {
    background: #9ca3af;
}

/* Saved Party Card Improvements */
.party-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.party-header h4 {
    margin: 0;
    font-size: 1rem;
    color: white;
    font-weight: 700;
}

.party-actions {
    display: flex;
    gap: 0.375rem;
}

.btn-small {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #4b5563;
    color: white;
}

.btn-small:hover {
    opacity: 0.8;
}

.btn-small i {
    font-size: 0.875rem;
}

.btn-preview {
    background: #3b82f6;
}

.btn-preview:hover {
    background: #2563eb;
    opacity: 1;
}

.btn-edit {
    background: #10b981;
}

.btn-edit:hover {
    background: #059669;
    opacity: 1;
}

.btn-delete {
    background: #ef4444;
}

.btn-delete:hover {
    background: #dc2626;
    opacity: 1;
}

.btn-restore {
    background: #10b981;
}

.btn-restore:hover {
    background: #059669;
    opacity: 1;
}

.btn-delete-permanent {
    background: #7c2d12;
}

.btn-delete-permanent:hover {
    background: #991b1b;
    opacity: 1;
}

.deleted-party-card {
    opacity: 0.8;
    border: 1px solid #4b5563;
    background: #1f2937;
    position: relative;
}

.deleted-party-card:hover {
    opacity: 1;
    background: #1f2937;
    border-color: #6b7280;
    transform: translateY(-2px);
}

.deleted-party-card .party-header h4 {
    color: #d1d5db;
}

.deleted-party-card .party-description {
    color: #9ca3af;
}

.deleted-party-card .composition-title {
    color: #6b7280;
}

.deleted-party-card .role-icon {
    opacity: 0.7;
}

/* Empty state for deleted parties */
.deleted-parties-section .empty-state {
    background: #1f2937;
    border: 1px dashed #4b5563;
}

.deleted-parties-section .empty-state i {
    color: #6b7280;
}

.deleted-parties-section .empty-state h4 {
    color: #9ca3af;
}

/* Inactive badge now in dashboard.css */

.party-composition-summary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #374151;
}

.composition-title {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.composition-icons {
    display: flex;
    gap: 0.5rem;
}

.role-count {
    display: flex;
    align-items: center;
}

.role-icon {
    width: 28px;
    height: 28px;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.role-icon.dps {
    background-color: #dc2626;
}

.role-icon.tank {
    background-color: #3b82f6;
}

.role-icon.healer {
    background-color: #16a34a;
}

.role-icon.support {
    background-color: #eab308;
}

.role-icon.battlemount {
    background-color: #9ca3af;
}