body {
    padding: 20px;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
}

.card {
    margin-bottom: 20px;
}

.desired-skill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.sticky-bottom-left {
    position: -webkit-sticky;
    /* For Safari */
    position: sticky;
    bottom: 0;
    background-color: #f8f9fa;
    padding: 15px 0;
    border-top: 1px solid #dee2e6;
    z-index: 1020;
}

.fixed-action-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1030;
    /* Ensure it's above other content */
    display: flex;
    flex-direction: column;
}

.text-weapon {
    color: #dc3545 !important;
    /* Bootstrap danger color (Red) */
}

.text-armor {
    color: #007bff !important;
    /* Bootstrap primary color (Blue) */
}

/* Fixed Top Right Button */
.fixed-top-right {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1040;
}

/* Skill Data Modal - Height optimization */
#skillDataModal .modal-body {
    max-height: 70vh;
    overflow: hidden;
    padding: 0;
}

#skillDataModal .row {
    height: 100%;
    margin: 0;
}

#skillDataModal .col-md-4,
#skillDataModal .col-md-8 {
    padding: 15px;
    overflow-y: auto;
    max-height: 70vh;
}

/* Mobile optimization */
@media (max-width: 767px) {
    #skillDataModal .modal-body {
        max-height: 80vh;
    }

    #skillDataModal .col-md-4 {
        max-height: 35vh;
        border-bottom: 2px solid #dee2e6;
    }

    #skillDataModal .col-md-8 {
        max-height: 45vh;
    }
}

/* Skill List Item */
.skill-list-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.skill-list-item:hover {
    background-color: #f0f0f0;
}

.skill-list-item.active {
    background-color: #007bff;
    color: white;
}

.skill-list-item.active:hover {
    background-color: #0056b3;
}

/* Skill Detail */
.skill-detail-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.skill-detail-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
}

/* Skill Level Tree */
.skill-level-tree {
    list-style: none;
    padding-left: 0;
}

.skill-level-item {
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-left: 4px solid #28a745;
    border-radius: 4px;
}

.skill-level-header {
    font-weight: bold;
    color: #28a745;
    margin-bottom: 4px;
}

.skill-level-description {
    color: #495057;
    font-size: 0.95rem;
}

/* Equipment List Styles */
.equipment-list-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.equipment-table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.equipment-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 8px;
    white-space: nowrap;
}

.equipment-table td {
    padding: 6px 8px;
    vertical-align: middle;
}

.equipment-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Skill Filter Buttons - Grid Layout */
.skill-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.skill-filter-grid .btn {
    width: 100%;
    text-align: center;
}

.skill-filter-grid .btn.active {
    font-weight: bold;
}

/* Mobile optimization for filter buttons */
@media (max-width: 767px) {
    .skill-filter-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .skill-filter-grid .btn {
        font-size: 0.875rem;
        padding: 6px 12px;
    }
}

/* Version History Link */
#version-history-link {
    cursor: pointer;
    transition: color 0.2s ease;
}

#version-history-link:hover {
    color: #495057 !important;
    text-decoration: underline !important;
}

/* Version History Modal */
.version-history-container {
    padding: 10px 0;
}

.version-entry {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.version-entry:last-child {
    border-bottom: none;
}

.version-header {
    margin-bottom: 15px;
}

.version-number {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 5px;
}

.version-content h6 {
    color: #495057;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

.version-content ul {
    margin-bottom: 15px;
}

.version-content li {
    margin-bottom: 5px;
    color: #495057;
}