/* Composition Builder Styles */

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

/* Parties Column Styles */
.parties-column {
    background: var(--gray-800, #1f2937);
    border: 1px solid var(--gray-700, #374151);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    max-height: 600px;
    overflow: hidden;
    min-width: 0;
}

.parties-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;
}

.parties-column h3 i {
    color: var(--purple-400, #a78bfa);
}

.parties-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.25rem;
    align-content: start;
}

/* Party Card Styles */
.party-card {\n    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 2px solid #4b5563;
    background: #1f2937;
    cursor: grab;
    transition: all 0.2s;
    position: relative;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 0;
    width: 100%;
    height: auto;
    max-width: 100%;
    box-sizing: border-box;
}

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

.party-card.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

.party-card:hover {
    border-color: #8b5cf6;
    background: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.party-preview {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.party-builds {
    display: flex;
    gap: 1px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.build-weapon-icon-small {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #374151;
}

.build-weapon-icon-mini {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #374151;
}

.build-weapon-icon-tiny {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #374151;
}

.more-builds, .more-builds-mini, .more-builds-tiny {
    font-size: 0.6rem;
    color: #d1d5db;
    background: #374151;
    border-radius: 2px;
    padding: 1px 3px;
    border: 1px solid #4b5563;
    font-weight: 600;
}

.party-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    text-align: center;
}

.party-card .party-name {
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.2;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    margin-bottom: 5px;
}

.party-card .party-size {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    width: 100%;
}

/* Party Composition Preview in Cards */
.party-composition-preview {
    display: flex;
    justify-content: center;
}

.composition-icons-mini {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

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

/* Party Slots Indicator */
.party-slots-indicator {
    width: 100%;
    padding: 0.375rem 0.5rem;
    background: #374151;
    border-radius: 0.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

.slots-text {
    font-size: 0.75rem;
    color: #d1d5db;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.role-icon-mini {
    width: 20px;
    height: 20px;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    flex-shrink: 0;
}

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

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

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

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

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

/* Composition Column Styles */
.composition-column {
    background: var(--gray-800, #1f2937);
    border: 1px solid var(--gray-700, #374151);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    max-height: 600px;
    overflow: hidden;
    min-height: 0;
}

.composition-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;
}

.composition-column h3 i {
    color: var(--green-400, #a78bfa);
}

/* New Composition Grid for 10 compact slots */
.composition-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
    align-content: start;
    min-height: 0;
}

/* Composition Slots */
.composition-party-slot {
    background: #374151;
    border: 2px dashed #6b7280;
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

.composition-party-slot.drag-over {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    border-style: dashed;
}

.composition-party-slot.occupied {
    border-style: solid;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

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

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

.slot-number {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
}

.slot-content {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    width: 100%;
    font-weight: 500;
}

.slot-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slot-remove-btn:hover {
    opacity: 1;
    background: #ef4444;
    transform: scale(1.1);
}

/* Party Preview in Slots */
.party-preview-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

/* New Party Preview in Slot (matching party-card style) */
.party-preview-in-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
    position: relative;
}

.party-name-in-slot {
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.2;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    margin-bottom: 5px;
}

.party-preview-in-slot .party-composition-preview {
    display: flex;
    justify-content: center;
}

.party-preview-in-slot .party-slots-indicator {
    width: 100%;
    padding: 0.375rem 0.5rem;
    background: #374151;
    border-radius: 0.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

.party-builds-mini {
    display: flex;
    gap: 1px;
    flex-wrap: wrap;
    justify-content: center;
}

.party-text-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.party-name-mini {
    font-size: 0.65rem;
    color: white;
    font-weight: 600;
    text-align: center;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.party-size-mini {
    font-size: 0.55rem;
    color: #9ca3af;
}

/* Additional Party Preview Styles for Slots */
.party-preview-slot .party-builds {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.party-preview-slot .party-text {
    text-align: center;
    gap: 0.125rem;
}

.party-preview-slot .party-name {
    font-size: 0.75rem;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.party-preview-slot .party-size {
    font-size: 0.65rem;
}

/* More Builds Indicators */
.more-builds-mini {
    font-size: 0.6rem;
    color: #d1d5db;
    background: #374151;
    border-radius: 2px;
    padding: 1px 3px;
    border: 1px solid #4b5563;
    font-weight: 600;
}

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

/* Saved Compositions Styles */
.saved-composition-card {
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.saved-composition-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.composition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

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

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

.composition-description {
    color: #d1d5db;
    font-size: 0.85rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.composition-parties-preview {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.375rem;
    border: 1px solid #4b5563;
}

.party-preview-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: #1f2937;
    border-radius: 0.375rem;
    border: 1px solid #374151;
    min-width: 60px;
}

.party-builds-tiny {
    display: flex;
    gap: 1px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.party-name-tiny {
    font-size: 0.6rem;
    color: white;
    font-weight: 500;
    text-align: center;
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.more-builds-tiny {
    font-size: 0.55rem;
    color: #d1d5db;
    background: #374151;
    border-radius: 2px;
    padding: 1px 2px;
    border: 1px solid #4b5563;
    font-weight: 600;
}

.composition-stats-preview {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
    padding-top: 0.75rem;
    border-top: 1px solid #4b5563;
}

.stat-item {
    font-weight: 500;
}

/* Composition Card Stats Summary */
.composition-stats-summary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #4b5563;
}

.stats-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.375rem;
    font-size: 0.7rem;
    color: #93c5fd;
    font-weight: 500;
    white-space: nowrap;
}

.stat-badge i {
    font-size: 0.75rem;
}

.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;
}

/* Composition Stats */
.composition-stats {
    border-top: 1px solid #374151;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

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

.overview-stats {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.5rem;
    background: #374151;
    border-radius: 0.375rem;
    border: 1px solid #4b5563;
    flex: 1;
}

.stat-icon {
    color: #a78bfa;
    font-size: 0.875rem;
}

.stat-label {
    font-size: 0.7rem;
    color: #d1d5db;
    flex: 1;
}

.total-parties-value, .total-slots-value, .total-builds-value {
    font-weight: 700;
    color: white;
    font-size: 0.875rem;
}

.stats-separator {
    width: 1px;
    height: 24px;
    background: #4b5563;
    margin: 0 0.25rem;
}

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

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

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

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

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

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



/* Saved Compositions */
.saved-compositions-section h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.saved-compositions-section h3 i {
    color: #a78bfa;
}

/* Grid styling now using shared .items-grid */

.saved-composition-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.saved-composition-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.composition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

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

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

.composition-description {
    color: #d1d5db;
    font-size: 0.85rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.composition-parties-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.party-preview-mini {
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 60px;
}

.party-builds-tiny {
    display: flex;
    gap: 1px;
    flex-wrap: wrap;
    justify-content: center;
}

.party-name-tiny {
    font-size: 0.65rem;
    color: #d1d5db;
    text-align: center;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.composition-stats-preview {
    display: flex;
    gap: 1rem;
    color: #9ca3af;
    font-size: 0.8rem;
    border-top: 1px solid #374151;
    padding-top: 0.75rem;
}

/* 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.5);
}

.modal-content {
    background: #1f2937;
    margin: 3% auto;
    padding: 0;
    border: 1px solid #374151;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.close {
    color: #9ca3af;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.close:hover {
    color: white;
}

.modal form {
    padding: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #4b5563;
    background: #374151;
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* Notifications */
.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;
}

/* 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;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .composition-builder-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .parties-column {
        order: 2;
    }
    
    .composition-column {
        order: 1;
    }
    
    .parties-list {
        grid-template-columns: 1fr 1fr; /* Manter 2 colunas mesmo em telas menores */
    }
}

@media (max-width: 768px) {
    .composition-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
    }
    
    /* Items grid media query now in dashboard.css */
    
    .parties-list {
        grid-template-columns: 1fr; /* Em telas muito pequenas, usar 1 coluna */
    }
}

@media (max-width: 480px) {
    .composition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .composition-party-slot {
        min-height: 60px;
        padding: 0.5rem;
    }
}

/* Additional Utility Styles for Compositions */

/* Loaded Composition Indicator */
.loaded-composition-indicator {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loaded-composition-indicator i {
    color: #10b981;
}

.loaded-composition-indicator span {
    color: #d1d5db;
    font-size: 0.9rem;
}

.loaded-composition-indicator strong {
    color: white;
}

/* Empty State Improvements */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    grid-column: 1 / -1; /* Span across all columns */
}

.empty-state i {
    font-size: 3rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: white;
    margin-bottom: 0.5rem;
}

/* Scrollbar Styling */
.parties-list::-webkit-scrollbar {
    width: 8px;
}

.parties-list::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.parties-list::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

.parties-list::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Animation for drag states */
@keyframes slot-pulse {
    0% { background: rgba(139, 92, 246, 0.1); }
    50% { background: rgba(139, 92, 246, 0.2); }
    100% { background: rgba(139, 92, 246, 0.1); }
}

.composition-party-slot.drag-over {
    animation: slot-pulse 1s ease-in-out infinite;
}

/* Improve icon quality */
.build-weapon-icon-small,
.build-weapon-icon-mini,
.build-weapon-icon-tiny {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Better button spacing in composition actions */
.composition-actions .btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Party card improvements for better drag experience */
.party-card[draggable="true"] {
    cursor: grab;
}

.party-card[draggable="true"]:active {
    cursor: grabbing;
}

/* Save as New button styling */
#saveAsNewBtn {
    background: #059669;
    border-color: #059669;
}

#saveAsNewBtn:hover {
    background: #047857;
    border-color: #047857;
}

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

.saved-composition-card.inactive {
    background: #1f2937;
    border-color: #4b5563;
    opacity: 0.8;
    position: relative;
}

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

.saved-composition-card.inactive .composition-header h4 {
    color: #d1d5db;
}

.saved-composition-card.inactive .composition-description {
    color: #9ca3af;
}

.saved-composition-card.inactive .party-preview-mini {
    opacity: 0.7;
}

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

.inactive-compositions-section .empty-state i {
    color: #6b7280;
}

.inactive-compositions-section .empty-state h4 {
    color: #9ca3af;
}

/* Inactive badge now in dashboard.css */

.inactive-date {
    color: #9ca3af;
    font-size: 0.75rem;
    font-style: italic;
}

/* Button Styles */
.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-warning {
    background: #f59e0b;
    color: #1f2937;
}

.btn-warning:hover {
    background: #d97706;
    opacity: 1;
}

.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-success {
    background: #10b981;
    color: white;
}

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

.btn-danger {
    background: #ef4444;
    color: white;
}

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

.btn-tertiary {
    background: #6366f1;
    color: white;
}

.btn-tertiary:hover {
    background: #4f46e5;
}

/* Composition Builder Modal Styles */
.composition-builder-modal-content {
    max-width: 1200px !important;
    width: 90% !important;
    background: #111827;
    border: 1px solid #374151;
}

.composition-modal-content-wrapper {
    background: #0f172a;
}

/* Ensure composition builder container works in modal */
#compositionBuilderModal .composition-builder-container {
    height: 550px;
    max-height: 550px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.25rem;
}

#compositionBuilderModal .parties-column,
#compositionBuilderModal .composition-column {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    height: 100%;
}

#compositionBuilderModal .parties-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

#compositionBuilderModal .party-card {
    height: auto;
    width: 100%;
    min-width: 0;
}

#compositionBuilderModal .composition-column > h3 {
    flex-shrink: 0;
}

#compositionBuilderModal .composition-grid {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

#compositionBuilderModal .composition-stats {
    flex-shrink: 0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

/* Responsive Modal */
@media (max-width: 1024px) {
    .composition-builder-modal-content {
        width: 95% !important;
        max-height: 95vh !important;
    }
}

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

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

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

.parties-list::-webkit-scrollbar-thumb:hover,
.composition-grid::-webkit-scrollbar-thumb:hover,
.composition-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;
}

#compositionBuilderModal .composition-grid {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

#compositionBuilderModal .composition-stats {
    flex-shrink: 0;
    margin-top: 1rem;
}

/* Preview Build Slots */
.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"] {
    border-left-color: #dc2626;
}

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

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

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

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