/**
 * @file css/teams/ui.css
 * @description Styles for the redesigned Team Builder page.
 * Adapted from the Champion Codex.
 */

.champion-card-enhanced {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #475569;
    background-color: #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.champion-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    border-color: #818cf8;
}

.card-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.card-image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    z-index: 2;
    overflow: hidden;
    min-height: 0;
}

.card-avatar-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.card-content-bottom {
    padding: 0.75rem;
    text-align: center;
    background: linear-gradient(to top, rgba(13, 18, 38, 0.9) 0%, rgba(13, 18, 38, 0.7) 100%);
    border-top: 1px solid #475569;
    position: relative;
    z-index: 2;
}

.champion-card-enhanced .champion-name {
    font-family: 'Russo One', sans-serif;
    font-size: 1.1rem;
    color: #fff;
}

.champion-card-enhanced .champion-details {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin: 0.25rem 0 0.5rem 0;
}

.champion-card-enhanced .synergy-icons {
    justify-content: center;
}

.is-roster-card .card-top-info {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: flex;
    justify-content: space-between;
}

.champion-card-enhanced:hover .card-background-image {
    transform: scale(1.1);
    opacity: 0.6;
    filter: grayscale(0);
}

.champion-avatar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    z-index: 2;
}

.champion-card-enhanced:hover .champion-avatar-center {
    transform: translate(-50%, -50%) scale(1.05);
}

.card-content-overlay {
    position: relative;
    z-index: 3;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to top, rgba(13, 18, 38, 0.98) 20%, rgba(13, 18, 38, 0.8) 50%, transparent 100%);
    padding: 1rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.card-spacer {
    flex-grow: 1;
}

.champion-card-enhanced .champion-name {
    font-family: 'Russo One', sans-serif;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #fff;
    margin-top: 0;
}

.champion-card-enhanced .synergy-icons .synergy-icon {
    width: 28px;
    height: 28px;
}

.champion-card-enhanced:hover .champion-avatar-center {
    transform: translate(-50%, -50%) scale(1.05);
}

.champion-card-enhanced .champion-details {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #cbd5e1;
}

.champion-card-enhanced .force-level {
    font-weight: 600;
    color: #a7f3d0;
}

.champion-card-enhanced .star-rating {
    line-height: 1;
    margin: 0.25rem 0;
}

.champion-card-enhanced .star-rating span {
    font-size: 1rem;
}

.input-group label {
    font-weight: 600;
    color: #cbd5e1;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.filter-input,
#custom-champ-dropdown-trigger,
#custom-lp-dropdown-trigger {
    background-color: #1e293b;
    border: 1px solid #475569;
    color: #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.75rem;
    min-height: 46px;
    display: flex;
    align-items: center;
}

.filter-input:focus,
#custom-champ-dropdown-trigger:focus,
#custom-lp-dropdown-trigger:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4);
}

#custom-champ-dropdown-trigger[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

#custom-champ-dropdown-options,
#custom-lp-dropdown-options {
    position: absolute;
    z-index: 20;
    margin-top: 0.25rem;
    width: 100%;
    background-color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    max-height: 15rem;
    border-radius: 0.5rem;
    overflow: auto;
    border: 1px solid #475569;
}

#custom-champ-dropdown-options li,
#custom-lp-dropdown-options li {
    color: #e2e8f0;
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#custom-champ-dropdown-options li:hover,
#custom-lp-dropdown-options li:hover {
    background-color: #334155;
    color: #a5b4fc;
}

#custom-champ-dropdown-options .champion-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.stepper {
    display: flex;
    justify-content: space-around;
    padding-bottom: 1rem;
    border-bottom: 1px solid #334155;
    position: relative;
}

.stepper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    width: 50%;
    background: #818cf8;
    transition: transform 0.4s ease-in-out;
}

.stepper.step-2::after {
    transform: translateX(100%);
}

.step {
    padding: 0.5rem;
    cursor: pointer;
    color: #94a3b8;
    font-weight: 600;
    transition: color 0.3s;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.step.active {
    color: #c7d2fe;
}

.step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #334155;
    transition: all 0.3s;
}

.step.active span {
    background: #4f46e5;
    color: white;
}

.wizard-step.hidden-step {
    display: none;
}

.star-selector-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
}

.star-selector-tiers,
.star-selector-stars {
    display: flex;
    gap: 0.5rem;
}

.star-selector-tiers {
    margin-bottom: 0.75rem;
}

.star-selector-tier-btn {
    flex: 1;
    background: #334155;
    color: #94a3b8;
    border: 1px solid #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.star-selector-tier-btn.active {
    background: #6366f1;
    color: white;
    border-color: #a5b4fc;
}

.star-selector-star {
    font-size: 1.5rem;
    color: #475569;
    cursor: pointer;
    transition: color 0.2s;
}

.star-selector-star:hover {
    color: #64748b;
}

.tier-white .star-selector-star.active {
    color: #e2e8f0;
}

.tier-blue .star-selector-star.active {
    color: #60a5fa;
}

.tier-purple .star-selector-star.active {
    color: #a78bfa;
}

.tier-gold .star-selector-star.active {
    color: #facc15;
}

.tier-red .star-selector-star.active {
    color: #f87171;
}

#main-app-content .star-selector-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#main-app-content .star-selector-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0;
}

#main-app-content .star-selector-tier-btn {
    background-color: #334155;
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 0.5rem 0;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

#main-app-content .star-selector-tier-btn:hover {
    border-color: #818cf8;
    color: #c7d2fe;
    transform: none;
}

#main-app-content .star-selector-tier-btn.active {
    color: white;
    transform: scale(1.05);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

#main-app-content .star-selector-tier-btn[data-tier="Unlocked"].active {
    background-color: #64748b;
    border-color: #94a3b8;
}

#main-app-content .star-selector-tier-btn[data-tier="White"].active {
    background-color: #e2e8f0;
    border-color: #f1f5f9;
    color: #1e293b;
}

#main-app-content .star-selector-tier-btn[data-tier="Blue"].active {
    background-color: #3b82f6;
    border-color: #60a5fa;
}

#main-app-content .star-selector-tier-btn[data-tier="Purple"].active {
    background-color: #a855f7;
    border-color: #c084fc;
}

#main-app-content .star-selector-tier-btn[data-tier="Gold"].active {
    background-color: #f59e0b;
    border-color: #facc15;
}

#main-app-content .star-selector-tier-btn[data-tier="Red"].active {
    background-color: #ef4444;
    border-color: #f87171;
}

#main-app-content .star-selector-stars {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #334155;
    font-size: 1.75rem;
}

#main-app-content .star-selector-star {
    cursor: pointer;
    transition: all 0.2s ease;
    color: #334155;
    text-shadow: none;
}

#main-app-content .star-selector-star:hover {
    transform: scale(1.2);
    color: #475569;
}

#main-app-content .star-selector-stars.tier-white .star-selector-star.active {
    color: #f1f5f9;
    text-shadow: 0 0 8px #fff;
}

#main-app-content .star-selector-stars.tier-blue .star-selector-star.active {
    color: #60a5fa;
    text-shadow: 0 0 8px #60a5fa;
}

#main-app-content .star-selector-stars.tier-purple .star-selector-star.active {
    color: #c084fc;
    text-shadow: 0 0 8px #c084fc;
}

#main-app-content .star-selector-stars.tier-gold .star-selector-star.active {
    color: #facc15;
    text-shadow: 0 0 8px #f59e0b;
}

#main-app-content .star-selector-stars.tier-red .star-selector-star.active {
    color: #f87171;
    text-shadow: 0 0 8px #ef4444;
}

#main-app-content .star-selector-stars.tier-unlocked .star-selector-star.active {
    color: #475569;
}

#force-level-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

#force-level-selector::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 4px;
    background-color: #334155;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

.force-level-pip {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Russo One', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.2s ease-in-out;
    background-color: #1e293b;
    border: 2px solid #475569;
    color: #64748b;
}

.force-level-pip:hover {
    border-color: #a5b4fc;
    transform: scale(1.15);
}

.force-level-pip[data-level="0"] {
    background-color: #334155;
    color: #94a3b8;
}

.force-level-pip.active {
    color: #ffffff;
    border-width: 2px;
    border-style: solid;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

.force-level-pip.active[data-level="1"] {
    border-color: #6ee7b7;
    background-color: #10b981;
    box-shadow: 0 0 12px #34d399;
}

.force-level-pip.active[data-level="2"] {
    border-color: #60a5fa;
    background-color: #3b82f6;
    box-shadow: 0 0 12px #60a5fa;
}

.force-level-pip.active[data-level="3"] {
    border-color: #c084fc;
    background-color: #a855f7;
    box-shadow: 0 0 12px #c084fc;
}

.force-level-pip.active[data-level="4"] {
    border-color: #fde047;
    background-color: #f59e0b;
    box-shadow: 0 0 15px #facc15, 0 0 25px rgba(250, 204, 21, 0.5);
}

.force-level-pip.active[data-level="5"] {
    border-color: #fca5a5;
    background-color: #ef4444;
    box-shadow: 0 0 12px #f87171;
}

#interactive-gear-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gear-grid-row {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 0.75rem;
}

.gear-grid-label {
    font-weight: 600;
    font-size: 0.8rem;
    text-align: right;
    color: #9ca3af;
}

.gear-grid-pips {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.gear-pip {
    flex: 1;
    height: 1.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.gear-pip:hover {
    transform: scale(1.05);
}

.gear-pip.selected {
    border-color: white;
    box-shadow: 0 0 0 2px #818cf8;
}

.gear-grid-master .gear-grid-label {
    color: #a5b4fc;
}

.pills-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    min-height: 46px;
    background-color: #1e293b;
    border: 1px solid #475569;
    border-radius: 0.375rem;
    cursor: text;
}

.pills-input-wrapper:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4);
}

.pills-input-wrapper input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0.25rem;
    background-color: transparent;
    min-width: 150px;
    color: white;
}

.pill {
    display: inline-flex;
    align-items: center;
    background-color: #4f46e5;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.5rem;
}

.pill-remove {
    margin-left: 0.25rem;
    width: 1rem;
    height: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
}

.pill-remove:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.custom-options-panel {
    position: absolute;
    z-index: 30;
    margin-top: 0.25rem;
    width: 100%;
    background-color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    max-height: 15rem;
    border-radius: 0.5rem;
    overflow-y: auto;
    border: 1px solid #475569;
}

.custom-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-option:hover {
    background-color: #334155;
}

.pills-input-wrapper.disabled {
    background-color: #334155;
    opacity: 0.6;
    cursor: not-allowed;
}

.pill .synergy-icon,
.custom-option .synergy-icon {
    width: 18px;
    height: 18px;
}

#roster-table {
    color: #cbd5e1;
}

#roster-table thead th {
    color: #94a3b8;
    border-bottom: 2px solid #475569 !important;
}

#roster-table tbody td {
    border-bottom: 1px solid #334155 !important;
    vertical-align: middle;
}

#roster-table tbody tr:hover td {
    background-color: rgba(30, 41, 59, 0.8);
}

.dt-search input,
.dt-length select {
    background-color: #1e293b !important;
    color: white !important;
    border: 1px solid #475569 !important;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

.dt-info,
div.dt-search,
div.dt-length {
    color: #94a3b8;
}

.dt-paging-button {
    background: #334155 !important;
    color: white !important;
    border: 1px solid #475569 !important;
    border-radius: 0.25rem !important;
    box-shadow: none !important;
}

.dt-paging-button.current,
.dt-paging-button:not(.disabled):hover {
    background: #4f46e5 !important;
    border-color: #818cf8 !important;
}

.dt-paging-button.disabled {
    opacity: 0.5;
}

.score-breakdown-details {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.score-breakdown-details summary {
    font-weight: 600;
    color: #a5b4fc;
    cursor: pointer;
}

.score-breakdown-details summary::marker {
    color: #a5b4fc;
}

.breakdown-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #334155;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.breakdown-row strong {
    font-weight: 700;
    color: #e2e8f0;
}

.breakdown-row.is-bonus {
    color: #6ee7b7;
}

.breakdown-row.is-bonus strong {
    color: #a7f3d0;
}

.breakdown-row.is-total {
    font-size: 1rem;
    border-top: 2px solid #475569;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.input-group label {
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.checkbox-label {
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
    font-weight: 600;
}

#force-level-selector {
    flex-direction: row;
}

.force-level-pip {
    flex: 1;
    width: auto;
    height: 2.5rem;
    border-radius: 0.375rem;
}

.star-selector-tiers {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid #475569;
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 0;
    margin-bottom: 0.5rem;
}

.star-selector-tier-btn {
    border: none;
    border-radius: 0;
    border-right: 1px solid #475569;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.star-selector-tier-btn:last-child {
    border-right: none;
}

.star-selector-tier-btn.active {
    background: #818cf8;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

#roster-filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.filter-group {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
    border-radius: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-right: 0.5rem;
}

.filter-btn {
    background-color: #1e293b;
    border: 1px solid #475569;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.filter-btn:hover {
    transform: scale(1.1);
    border-color: #818cf8;
}

.filter-btn.active {
    border-color: #a5b4fc;
    box-shadow: 0 0 10px #a5b4fc, inset 0 0 5px rgba(165, 180, 252, 0.5);
}

.filter-btn img,
.filter-btn .icon-class-table {
    width: 32px;
    height: 32px;
}

.filter-btn.clear {
    width: 36px;
    height: 36px;
    background-color: #4b5563;
    color: #e2e8f0;
    font-size: 1.1rem;
}

.codex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.champion-card-enhanced .card-top-info {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.champion-card-enhanced .card-top-info .icon-wrapper .icon-class-table {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 4px;
    object-fit: cover;
}

.champion-card-enhanced .card-score {
    font-family: 'Russo One', sans-serif;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px #000;
}

.champion-card-enhanced .card-actions {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.champion-card-enhanced:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
}

.card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.card-action-btn:hover {
    transform: scale(1.1);
}

.card-action-btn.edit {
    background-color: rgba(99, 102, 241, 0.8);
}

.card-action-btn.remove {
    background-color: rgba(239, 68, 68, 0.8);
}

.card-action-btn.upgrade {
    background-color: rgba(245, 158, 11, 0.8);
}

.synergy-icons {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(13, 18, 38, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 480px;
    max-width: calc(100% - 2rem);
    background-color: #1e293b;
    border: 1px solid #475569;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    color: #e2e8f0;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-backdrop.is-open .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 1rem 0;
    text-align: center;
}

.modal-content p {
    text-align: center;
    color: #94a3b8;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background-color: #4338ca;
}

.btn-secondary {
    background-color: #475569;
    color: #e2e8f0;
}

.btn-secondary:hover {
    background-color: #64748b;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 320px;
    max-width: calc(100% - 40px);
}

.toast {
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(calc(100% + 20px));
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background-color: rgba(16, 185, 129, 0.9);
}

.toast-error {
    background-color: rgba(239, 68, 68, 0.9);
}

.toast-info {
    background-color: rgba(59, 130, 246, 0.9);
}

.toast-warning {
    background-color: rgba(245, 158, 11, 0.9);
}

.custom-multiselect-container {
    position: relative;
}

.custom-option {
    color: #cbd5e1;
}

.custom-option:hover {
    color: #e2e8f0;
}

.card-action-btn.swap {
    background-color: rgba(16, 185, 129, 0.8);
}

.champion-card-enhanced.is-small {
    min-height: 0;
    border-radius: 0.5rem;
}

.champion-card-enhanced.is-small .card-image-container {
    aspect-ratio: 1 / 1;
}

.champion-card-enhanced.is-small .card-content-bottom {
    padding: 0.5rem;
}

.champion-card-enhanced.is-small .champion-name {
    font-size: 0.75rem;
    line-height: 1.1;
}

.champion-card-enhanced.is-small .champion-details {
    font-size: 0.65rem;
    margin: 0.1rem 0 0.25rem 0;
}

.champion-card-enhanced.is-small .champion-details .star-rating span {
    font-size: 0.7rem;
}

.champion-card-enhanced.is-small .synergy-icons.is-small .synergy-icon {
    width: 16px;
    height: 16px;
}

#swap-modal-body ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#swap-modal-body li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

#swap-modal-body li:hover {
    background-color: #334155;
}

#swap-modal-body .font-semibold {
    font-size: 1rem;
    color: #e2e8f0;
}

#swap-modal-body .synergy-icon {
    width: 24px;
    height: 24px;
}

#swap-modal-body .star-rating span {
    font-size: 1rem;
}

#swap-modal-body::-webkit-scrollbar {
    width: 8px;
}

#swap-modal-body::-webkit-scrollbar-track {
    background: #1e293b;
}

#swap-modal-body::-webkit-scrollbar-thumb {
    background-color: #475569;
    border-radius: 4px;
    border: 2px solid #1e293b;
}

#swap-modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #64748b;
}

#roster-filters-wrapper {
    align-items: flex-end;
}

#roster-search-group {
    margin-left: auto;
}