body {
    background-color: #0a0a0a;
    background-image: linear-gradient(to bottom, rgba(20, 20, 35, 0.95), rgba(10, 10, 15, 0.95)),
                      url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%239C92AC" fill-opacity="0.05"%3E%3Cpath d="M0 0h20L0 20z"/%3E%3C/g%3E%3C/svg%3E');
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #151515;
    border: 1px solid #252525;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.game-menu {
    padding: 10px;
}

.game-menu h1 {
    color: #fff;
    text-align: left;
    margin-bottom: 20px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.character-row {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    background: #1c1c1c;
    border: 1px solid #252525;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.character-row:hover {
    background: #202020;
    border-color: #303030;
}

.char-portrait {
    width: 160px;
    text-align: center;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.char-portrait .char-name {
    font-size: 14px;
    font-weight: 500;
    color: #4a9eff;
    margin-bottom: 8px;
    order: -1;
}

.char-portrait img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 4px;
    background: #252525;
    border: 1px solid #303030;
    padding: 4px;
    margin-bottom: 18px;
}

.char-info {
    flex: 1;
}

.detailed-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: grid;
    grid-template-columns: 120px minmax(100px, auto) minmax(50px, 1fr);
    gap: 32px;
    align-items: center;
    padding: 8px 12px;
    background: #1d2026;
    border-radius: 4px;
    min-height: 32px;
}

.stat-row .stat-label {
    color: #808080;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.stat-row .stat-value,
.stat-row .stat-range,
.stat-row .stat-bonus,
.stat-row .stat-time,
.stat-row .stat-bonus-range {
    color: #45f3ff;
    font-size: 13px;
    white-space: nowrap;
    overflow: visible;
    min-width: 0;
}

.stat-row .stat-range,
.stat-row .stat-bonus-range {
    color: #45f3ff;
}

.stat-row.chance-stat .stat-range {
    color: #ffd700;
}

.stat-row.mana-stat .stat-range {
    color: #45f3ff;
}

/* Specific stat types */
.stat-row.damage-stat {
    background: #1d2026;
    border: 1px solid #2d3748;
}

.stat-row.mana-stat .stat-label {
    color: #45f3ff;
}

.stat-row.chance-stat .stat-value {
    color: #ffd700;
}

.stat-row.time-stat .stat-value {
    color: #98fb98;
}

.stat-row.range-stat .stat-value {
    color: #45f3ff;
}

/* Specialūs stiliai laiko statistikai */
.stat-row.time-stat .stat-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #98fb98;
    font-size: 13px;
}

.stat-time .current-value {
    color: #98fb98;
}

.stat-time .base-value {
    color: #666;
}

/* Specialūs stiliai damage bonusams */
.stat-row.damage-bonus-stat {
    background: #1d2026;
    border: 1px solid #2d3748;
}

.stat-row.damage-bonus-stat .stat-bonus-range {
    color: #ff4a4a;
    font-size: 13px;
    white-space: nowrap;
}

.stat-row.damage-bonus-stat .stat-label {
    color: #808080;
}

/* Mobilūs pataisymai */
@media (max-width: 768px) {
    .stat-row {
        grid-template-columns: 100px minmax(80px, auto) minmax(40px, 1fr);
        gap: 8px;
        padding: 6px 8px;
    }

    .stat-row .stat-label {
        font-size: 11px;
    }

    .stat-row .stat-range,
    .stat-row .stat-value,
    .stat-row .stat-bonus,
    .stat-time .current-value,
    .stat-time .base-value,
    .stat-bonus-range span {
        font-size: 12px;
    }

    .stat-bar {
        height: 6px;
    }

    .sort-btn, .view-skills-btn, .action-button {
        padding: 6px 10px;
        font-size: 12px;
    }
}

.stat-bar {
    height: 8px;
    background: #252525;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0;
}

.stat-fill {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.3s ease;
}

/* Stat bar colors */
.stat-bar.block .stat-fill {
    background: #4a5568;
}

.stat-bar.strength .stat-fill {
    background: #c53030;
}

.stat-bar.dexterity .stat-fill {
    background: #b7791f;
}

.stat-bar.defence .stat-fill {
    background: #2f855a;
}

.stat-bar.vitality .stat-fill {
    background: #9c4221;
}

.stat-bar.energy .stat-fill {
    background: #2c5282;
}

/* Hover effects for stat bars */
.stat-row:hover .stat-bar {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.stat-row:hover .stat-fill {
    filter: brightness(1.2);
}

.sorting-controls {
    margin-bottom: 20px;
    padding: 15px;
    background: #1c1c1c;
    border: 1px solid #252525;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sort-label {
    color: #808080;
    font-size: 14px;
    font-weight: 500;
}

.sort-select {
    background: #252525;
    border: 1px solid #303030;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.sort-select:focus {
    outline: none;
    border-color: #4a5568;
}

.sort-select option {
    background-color: #252525;
    color: #fff;
}

.compare-link {
    background: #2d3748;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.compare-link:hover {
    background: #4a5568;
}

@media (max-width: 768px) {
    .sorting-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .compare-link {
        text-align: center;
    }
}

/* Skills button */
.view-skills-btn {
    background: #2d3748;
    color: #fff;
    border: 1px solid #4a5568;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.view-skills-btn:hover {
    background: #4a5568;
    border-color: #718096;
}

/* 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.8);
    overflow-y: auto;
}

.modal-content {
    background-color: #151515;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid #333;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
}

.modal-header h2 {
    margin: 0;
    color: #4a9eff;
    font-size: 20px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
}

/* Skills styles */
.skill-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.skill-card:hover {
    background: #202020;
    border-color: #444;
}

.skill-card.pve-skill {
    border-left-color: #45f3ff;
}

.skill-card.passive-skill {
    border-left-color: #ffd700;
}

.skill-card.high-level {
    animation: glow 2s infinite;
    border-color: #ffd700;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
}

.skill-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.skill-title h4 {
    margin: 0;
    color: #4a9eff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.badges {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
}

.pve-badge, .passive-badge, .level-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.pve-badge {
    background: #2d3748;
    color: #45f3ff;
}

.passive-badge {
    background: #2d3748;
    color: #ffd700;
}

.level-badge {
    background: #2d3748;
    color: #fff;
    min-width: 60px;
    text-align: center;
}

.skill-description {
    color: #808080;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.skill-description .main-desc {
    color: #ccc;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.skill-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}

.stat-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    background: #252525;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}

.stat-item .stat-icon {
    width: 16px;
    text-align: center;
    opacity: 0.7;
    flex-shrink: 0;
}

.stat-item .stat-label {
    color: #808080;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.stat-item .stat-range {
    color: #45f3ff;
    text-align: left;
    white-space: nowrap;
}

.stat-item .stat-bonus {
    color: #ff4a4a;
    text-align: right;
    white-space: nowrap;
}

/* Specific styles for damage stats */
.stat-item.damage-stat {
    background: #1d2026;
    border: 1px solid #2d3748;
}

.stat-item.damage-stat .stat-label {
    color: #808080;
}

.stat-item.damage-stat .stat-range {
    color: #45f3ff;
}

.stat-item.damage-stat .stat-bonus {
    color: #ff4a4a;
}

/* Mana stat specific styles */
.stat-item.mana-stat {
    background: #1d2026;
}

.stat-item.mana-stat .stat-label {
    color: #45f3ff;
}

.stat-item.mana-stat .stat-range {
    color: #45f3ff;
}

@media (max-width: 768px) {
    .skill-stats {
        grid-template-columns: 1fr;
    }
    
    .skill-header {
        flex-wrap: wrap;
    }
    
    .badges {
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 4px;
    }

    .stat-item {
        font-size: 11px;
        padding: 4px 6px;
        gap: 6px;
    }

    .stat-item .stat-label {
        letter-spacing: 0;
    }

    .skill-title {
        width: 100%;
    }

    .skill-title h4 {
        max-width: calc(100% - 30px);
    }
}

.skill-card .favorite-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.skill-card .favorite-btn:hover {
    color: #ffd700;
}

.skill-card .favorite-btn.active {
    color: #ffd700;
}

/* Section headers */
#skillsList h3 {
    color: #4a9eff;
    margin: 20px 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

#skillsList h3:first-child {
    margin-top: 0;
}

/* Modal adjustments */
.modal-content {
    background: #151515;
    border: 1px solid #333;
}

.modal-header {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.modal-actions {
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.action-button i {
    font-size: 14px;
}

/* Copy Build mygtukas */
.action-button.copy-build {
    background: #2d3748;
    color: #fff;
    border-color: #4a5568;
}

.action-button.copy-build:hover {
    background: #4a5568;
    border-color: #718096;
}

.action-button.copy-build i {
    color: #45f3ff;
}

/* Favorites mygtukas */
.action-button.favorite {
    background: #2d3748;
    color: #fff;
    border-color: #4a5568;
}

.action-button.favorite:hover {
    background: #4a5568;
    border-color: #ffd700;
}

.action-button.favorite i {
    color: #ffd700;
}

/* Share mygtukas */
.action-button.share {
    background: #2d3748;
    color: #fff;
    border-color: #4a5568;
}

.action-button.share:hover {
    background: #4a5568;
    border-color: #45f3ff;
}

.action-button.share i {
    color: #45f3ff;
}

/* Aktyvūs būsenų stiliai */
.action-button.active {
    background: #4a5568;
    border-color: currentColor;
}

/* Išjungto mygtuko stilius */
.action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #1d2026;
    border-color: #2d3748;
}

/* Mobilūs pataisymai */
@media (max-width: 768px) {
    .modal-actions {
        padding: 8px 12px;
        flex-wrap: wrap;
    }

    .action-button {
        padding: 6px 12px;
        font-size: 12px;
        flex: 1;
        justify-content: center;
    }
}

/* Loading and error states */
.loading {
    text-align: center;
    padding: 20px;
    color: #4a9eff;
    font-size: 16px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border-left: 3px solid #ff4444;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.error-message p {
    margin: 5px 0;
    color: #ff4444;
}

.error-message p:first-child {
    font-weight: bold;
}

.no-skills {
    text-align: center;
    padding: 30px;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin: 20px 0;
}

.no-skills i {
    font-size: 24px;
    color: #4a9eff;
}

/* Animacijos */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(74, 158, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(74, 158, 255, 0.4); }
    100% { box-shadow: 0 0 5px rgba(74, 158, 255, 0.2); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Kortelių animacijos */
.skill-card:nth-child(2n) {
    animation-delay: 0.1s;
}

.skill-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Pull to refresh indikatorius */
.pull-to-refresh {
    text-align: center;
    padding: 20px;
    color: #4a9eff;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pull-to-refresh.visible {
    opacity: 1;
}

.pull-to-refresh i {
    animation: rotate 1s linear infinite;
}

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

/* Interaktyvumo elementai */
.copy-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

.skill-card .favorite-btn:hover {
    color: #ffd700;
    transform: scale(1.2);
}

.skill-card .favorite-btn.active {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Share dialog */
.share-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1100;
    width: 90%;
    max-width: 500px;
    display: none;
}

.share-dialog.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.share-dialog h3 {
    margin: 0 0 15px 0;
    color: #fff;
}

.share-url {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
    margin-bottom: 15px;
}

.share-options {
    display: flex;
    gap: 10px;
}

.share-option {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.share-option:hover {
    transform: translateY(-2px);
}

.share-option.copy {
    background: #4a9eff;
    color: #fff;
}

.share-option.discord {
    background: #7289da;
    color: #fff;
}

.share-option.close {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Statistikos vizualizacija */
.skill-stats-chart {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-chart-title {
    color: #4a9eff;
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-chart-container {
    height: 200px;
    position: relative;
}

.sort-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 10px 0;
    align-items: center;
}

.sort-controls span {
    color: #666;
    font-weight: 500;
    margin-right: 8px;
}

.sort-btn {
    background: #2d3748;
    color: #fff;
    border: 1px solid #4a5568;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    background: #4a5568;
    border-color: #718096;
}

.sort-btn.active {
    background: #4a5568;
    color: #45f3ff;
    border-color: #45f3ff;
}

.sort-btn[data-sort="passive-only"].active {
    background: linear-gradient(to right, #ffd700, #ffed4a);
    color: #000;
    border-color: #ffd700;
}

.sort-btn[data-sort="active-only"].active {
    background: linear-gradient(to right, #ff4a4a, #ff8f8f);
    color: #fff;
    border-color: #ff4a4a;
}

.sort-btn i {
    font-size: 0.9em;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .sort-controls {
        padding: 8px;
    }
    
    .sort-btn {
        padding: 8px;
        font-size: 0.85em;
        min-width: calc(50% - 8px);
    }
    
    .sort-controls span {
        width: 100%;
        margin-bottom: 4px;
    }
}

.stat-value.damage .stat-icon { color: #ff4a4a; }
.stat-value.mana .stat-icon { color: #45f3ff; }
.stat-value.time .stat-icon { color: #ffd700; }
.stat-value.range .stat-icon { color: #98fb98; }
.stat-value.chance .stat-icon { color: #ff69b4; }

#skillsList h3:first-child {
    margin-top: 0;
}

/* Tooltips */
.tippy-box {
    background-color: #252525;
    border: 1px solid #303030;
    color: #fff;
}

.tippy-box[data-theme~='dark'] {
    background-color: #252525;
    border: 1px solid #303030;
}

.stat-tooltip-title {
    color: #4a9eff;
    font-weight: 500;
}

.stat-tooltip-description {
    color: #808080;
}

.stat-tooltip-example {
    color: #666;
    font-style: italic;
} 