/* Additional custom styles for Valheim Item Guide */

/* Dashboard styles */
.stat-card {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1px solid var(--valheim-gold);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.stat-card .stat-icon {
    color: var(--valheim-gold);
    margin-bottom: 15px;
}

.stat-card .stat-icon i {
    font-size: 2.5rem;
}

.stat-card .stat-content h3 {
    color: var(--valheim-gold);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card .stat-content p {
    color: #cccccc;
    margin: 0;
    font-size: 0.9rem;
}

.navigation-card {
    transition: all 0.3s ease;
}

.navigation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.section-title {
    color: #ffffff;
    font-weight: bold;
    border-bottom: 2px solid var(--valheim-gold);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.card-stats {
    margin: 15px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    color: #ffffff;
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-subtitle {
    color: #cccccc;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Custom button styles */
.btn-outline-purple {
    color: #9d4edd;
    border-color: #9d4edd;
}

.btn-outline-purple:hover {
    background-color: #9d4edd;
    border-color: #9d4edd;
    color: white;
}

.btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.text-purple {
    color: #9d4edd !important;
}

/* Admin thumbnails styling */
.admin-thumbnail {
    width: 32px;
    height: 32px;
    border-radius: 2px;
    border: 1px solid var(--valheim-gold);
    object-fit: cover;
    transition: transform 0.2s ease;
}

.admin-thumbnail:hover {
    transform: scale(3);
    z-index: 1000;
    position: relative;
    border: 2px solid var(--valheim-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

/* Badge contrast improvements */
.badge {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    font-weight: 600;
}

/* Custom badge colors */
.bg-purple {
    background-color: #9d4edd !important;
    color: white !important;
}

/* Improvements badges styling */
.improvements-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.improvements-badges .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.improvements-badges .badge.bg-primary {
    background: linear-gradient(45deg, #0d6efd, #084298) !important;
    border: 1px solid #6ea8fe;
}

.improvements-badges .badge.bg-secondary {
    background: linear-gradient(45deg, #6c757d, #495057) !important;
    border: 1px solid #adb5bd;
}

/* Usage badges styling for locations */
.usage-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
}

.usage-badges .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
}

/* Attachment thumbnails for improvement requests */
.attachment-thumbnail {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.attachment-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

/* No image icon styling */
.no-image-icon {
    font-size: 18px;
    color: rgba(245, 230, 211, 0.3);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(245, 230, 211, 0.3);
    border-radius: 4px;
}

/* Valheim-themed scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--valheim-dark);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--valheim-brown), var(--valheim-gold));
    border-radius: 6px;
    border: 2px solid var(--valheim-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--valheim-gold), var(--valheim-brown));
}

/* DataTables custom styling */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background-color: rgba(44, 24, 16, 0.9) !important;
    border: 1px solid var(--valheim-gold) !important;
    color: var(--valheim-light) !important;
}

.dataTables_wrapper .dataTables_filter input::placeholder {
    color: rgba(245, 230, 211, 0.6) !important;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    color: var(--valheim-light) !important;
}

.dataTables_wrapper .dataTables_info {
    color: var(--valheim-light) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: rgba(44, 24, 16, 0.9) !important;
    border: 1px solid var(--valheim-gold) !important;
    color: var(--valheim-light) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--valheim-gold) !important;
    color: var(--valheim-dark) !important;
    text-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--valheim-gold) !important;
    color: var(--valheim-dark) !important;
    text-shadow: none !important;
    font-weight: bold !important;
}

/* Additional contrast improvements */

/* Global text color improvements */
.card-body, .card-body * {
    color: var(--valheim-light) !important;
}

.card-body h1, .card-body h2, .card-body h3, .card-body h4, .card-body h5, .card-body h6 {
    color: var(--valheim-gold) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.card-body .text-muted {
    color: rgba(245, 230, 211, 0.8) !important;
}

.card-body small {
    color: rgba(245, 230, 211, 0.9) !important;
}

/* Form improvements */
.form-control::placeholder {
    color: rgba(245, 230, 211, 0.6) !important;
    opacity: 1;
}

.form-control::-webkit-input-placeholder {
    color: rgba(245, 230, 211, 0.6) !important;
}

.form-control::-moz-placeholder {
    color: rgba(245, 230, 211, 0.6) !important;
    opacity: 1;
}

.form-control:-ms-input-placeholder {
    color: rgba(245, 230, 211, 0.6) !important;
}

.nav-link {
    color: var(--valheim-light) !important;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--valheim-gold) !important;
    text-shadow: 0 0 5px var(--valheim-gold);
}

/* Navbar improvements for better compactness */
.navbar-brand {
    font-size: 1.25rem !important;
    padding: 0.5rem 0 !important;
}

.navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.navbar-nav {
    gap: 0.25rem;
}

.dropdown-menu {
    min-width: 200px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.dropdown-item.active {
    background: linear-gradient(45deg, var(--valheim-brown), var(--valheim-gold)) !important;
    color: var(--valheim-light) !important;
}

/* Mobile navbar improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(44, 24, 16, 0.98);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
        border: 1px solid var(--valheim-gold);
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .dropdown-menu {
        background: rgba(44, 24, 16, 0.95) !important;
        margin-left: 1rem;
    }
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #495057) !important;
    border: none !important;
    color: var(--valheim-light) !important;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #495057, #6c757d) !important;
    color: var(--valheim-light) !important;
}

.form-label {
    color: var(--valheim-light) !important;
    font-weight: 500;
}

.form-check-label {
    color: var(--valheim-light) !important;
}

/* Improve select option styling */
.form-select option {
    background-color: var(--valheim-dark) !important;
    color: var(--valheim-light) !important;
}

/* Table improvements */
.table-dark tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.1) !important;
}

.table-dark td, .table-dark th {
    color: var(--valheim-light) !important;
}

.table-dark td strong {
    color: var(--valheim-gold) !important;
}

/* Image column styling */
#itemsTable td:first-child {
    width: 60px;
    text-align: center;
    vertical-align: middle;
}

#itemsTable td:first-child img {
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Table icon alignment */
table td i.fa-solid,
table th i.fa-solid {
    font-size: 18px;
    vertical-align: middle;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Ensure consistent sizing and alignment for all table icons */
table .admin-thumbnail,
table .no-image-icon {
    margin: 0 auto;
    display: block;
}

/* List group improvements */
.list-group-item {
    background: rgba(44, 24, 16, 0.7) !important;
    border: 1px solid var(--valheim-gold) !important;
    color: var(--valheim-light) !important;
}

.list-group-item:hover {
    background: rgba(212, 175, 55, 0.1) !important;
}

.list-group-item strong {
    color: var(--valheim-gold) !important;
}

.list-group-item .text-muted {
    color: rgba(245, 230, 211, 0.7) !important;
}

/* Badge contrast improvements */
.badge {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    font-weight: bold;
}

/* Breadcrumb improvements */
.breadcrumb-item {
    color: var(--valheim-light) !important;
}

.breadcrumb-item a {
    color: var(--valheim-gold) !important;
}

.breadcrumb-item.active {
    color: var(--valheim-light) !important;
}

/* Modal improvements */
.modal-body {
    color: var(--valheim-light) !important;
}

.modal-body strong {
    color: var(--valheim-gold) !important;
}

/* Stats improvements */
.stat-value {
    color: var(--valheim-gold) !important;
}

.stat-card small {
    color: rgba(245, 230, 211, 0.9) !important;
}

/* Alert improvements */
.alert {
    border: 2px solid;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(34, 139, 34, 0.2) !important;
    border-color: #228B22 !important;
    color: var(--valheim-light) !important;
}

.alert-danger {
    background-color: rgba(220, 20, 60, 0.2) !important;
    border-color: #DC143C !important;
    color: var(--valheim-light) !important;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--valheim-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hover effects for cards */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

/* Custom tooltip styling */
.tooltip .tooltip-inner {
    background-color: var(--valheim-dark);
    border: 1px solid var(--valheim-gold);
    color: var(--valheim-light);
}

.tooltip .tooltip-arrow::before {
    border-top-color: var(--valheim-gold);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
}

/* Print styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .navbar, .btn, .modal, footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* Additional text contrast for all elements */
body, body * {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure all text in dark containers is light */
.card, .table-dark, .modal-content, .navbar {
    color: var(--valheim-light) !important;
}

.card *, .table-dark *, .modal-content *, .navbar * {
    color: inherit !important;
}

/* Override Bootstrap default dark text */
.text-dark {
    color: var(--valheim-light) !important;
}

/* Ensure good contrast for all interactive elements */
button, .btn, input, select, textarea {
    color: var(--valheim-light) !important;
}

/* Hero section text improvements */
.hero-section, .hero-section * {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Image Upload Styles */
.image-upload-container {
    border: 2px dashed var(--valheim-gold);
    border-radius: 8px;
    padding: 15px;
    background: rgba(44, 24, 16, 0.3);
    margin-bottom: 15px;
}

.image-upload-container.dragover {
    border-color: var(--valheim-light);
    background: rgba(44, 24, 16, 0.5);
}

.image-file-input {
    margin-bottom: 10px;
}

.upload-btn {
    background: linear-gradient(45deg, var(--valheim-brown), var(--valheim-gold));
    border: none;
    color: var(--valheim-light);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 10px;
}

.upload-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, var(--valheim-gold), var(--valheim-brown));
    color: var(--valheim-dark);
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.image-preview {
    max-width: 200px;
    max-height: 150px;
    border: 1px solid var(--valheim-gold);
    border-radius: 4px;
    margin: 10px 0;
    display: none;
}

.delete-image-btn {
    background: #dc3545;
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
    display: none;
}

.delete-image-btn:hover {
    background: #c82333;
}

.upload-progress {
    display: none;
    margin: 10px 0;
}

.upload-status {
    display: none;
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.upload-status.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.upload-status.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.upload-status.alert-info {
    background: rgba(23, 162, 184, 0.2);
    border: 1px solid #17a2b8;
    color: #17a2b8;
}

.image-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.image-upload-hint {
    font-size: 12px;
    color: rgba(245, 230, 211, 0.7);
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-preview {
        max-width: 150px;
        max-height: 100px;
    }
    
    .image-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Copy-on-click functionality styles */
table td:has(strong), 
table td[data-copyable="true"],
table td:nth-child(2) /* Name column is typically the 2nd column */ {
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Add hover effect to make it clear the name is clickable */
table td:nth-child(2):hover,
table td:has(strong):hover {
    background-color: rgba(40, 167, 69, 0.1) !important;
    box-shadow: inset 0 0 0 1px rgba(40, 167, 69, 0.3);
}

/* Add a subtle copy icon hint */
table td:nth-child(2):hover::after,
table td:has(strong):hover::after {
    content: "📋";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.7;
    pointer-events: none;
}

/* Copy toast notification styles */
.copy-toast {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Make sure table rows don't interfere with copy functionality */
table tbody tr:hover td {
    background-color: inherit;
}

/* Specific styling for name columns */
.table-dark td:nth-child(2),
.table-dark td:has(strong) {
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.table-dark td:nth-child(2):hover,
.table-dark td:has(strong):hover {
    border-left-color: var(--valheim-gold);
    background-color: rgba(245, 230, 211, 0.05) !important;
}

/* Armour Page Specific Styles */
.armour-piece-card {
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid rgba(212, 175, 55, 0.3) !important;
    background: rgba(44, 24, 16, 0.95) !important;
}

.armour-piece-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--valheim-gold) !important;
}

.armour-image-container {
    position: relative;
    text-align: center;
    margin-bottom: 1rem;
}

.armour-main-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--valheim-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.armour-main-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.armour-no-image {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed rgba(245, 230, 211, 0.4);
    border-radius: 8px;
    background: rgba(44, 24, 16, 0.7);
    margin: 0 auto;
}

.armour-no-image i {
    font-size: 48px;
    color: rgba(245, 230, 211, 0.4);
}

.armour-piece-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--valheim-gold) !important;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.armour-piece-location {
    text-align: center;
    margin-bottom: 1rem;
    color: rgba(245, 230, 211, 0.8) !important;
}

.armour-stats-section {
    background: rgba(70, 130, 180, 0.1);
    border: 1px solid rgba(70, 130, 180, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.armour-stats-section h6 {
    color: var(--valheim-blue) !important;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.armour-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(245, 230, 211, 0.1);
}

.armour-stat-item:last-child {
    border-bottom: none;
}

.armour-stat-name {
    color: rgba(245, 230, 211, 0.9) !important;
    font-size: 0.875rem;
}

.armour-stat-value {
    color: var(--valheim-gold) !important;
    font-weight: bold;
}

.armour-quality-section {
    background: rgba(34, 139, 34, 0.1);
    border: 1px solid rgba(34, 139, 34, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
}

.armour-quality-section h6 {
    color: #28a745 !important;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.armour-quality-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.375rem 0.5rem;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 4px;
    border-left: 3px solid rgba(40, 167, 69, 0.3);
}

.armour-quality-level:last-child {
    margin-bottom: 0;
}

.armour-quality-label {
    color: rgba(245, 230, 211, 0.9) !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.armour-quality-values {
    display: flex;
    gap: 0.5rem;
}

.armour-quality-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.armour-quality-badge.armor-value {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
}

.armour-quality-badge.durability-value {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    color: white;
}

.armour-set-header-enhanced {
    background: linear-gradient(135deg, var(--valheim-gold), var(--valheim-brown)) !important;
    color: var(--valheim-dark) !important;
    border: none !important;
    padding: 1.5rem !important;
}

.armour-set-image-large {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--valheim-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.armour-set-image-large:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.armour-set-bonus {
    background: rgba(40, 167, 69, 0.15) !important;
    border: 2px solid #28a745 !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    margin-top: 1rem !important;
}

.armour-set-bonus-content {
    color: #d4edda !important;
    font-weight: 500 !important;
}

.armour-set-bonus-icon {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    font-size: 1.25rem;
}

/* Lightbox customizations for Valheim theme - Full Screen */
.lightboxOverlay {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

.lightbox {
    max-width: 95vw !important;
    max-height: 95vh !important;
    width: auto !important;
    height: auto !important;
}

.lb-container {
    max-width: 95vw !important;
    max-height: 95vh !important;
}

.lb-image {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.lb-data .lb-close {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23D4AF37"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>') no-repeat;
    background-size: 20px 20px;
    background-position: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(44, 24, 16, 0.95);
    border: 2px solid var(--valheim-gold);
    top: 20px;
    right: 20px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.lb-data .lb-close:hover {
    opacity: 1;
    transform: scale(1.1);
    background-color: rgba(44, 24, 16, 1);
}

.lb-data .lb-details {
    background-color: rgba(44, 24, 16, 0.95) !important;
    border: 2px solid var(--valheim-gold) !important;
    border-radius: 8px !important;
    color: var(--valheim-light) !important;
    padding: 15px !important;
    margin-top: 10px !important;
}

.lb-data .lb-caption {
    color: var(--valheim-gold) !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    font-size: 16px !important;
}

.lb-data .lb-number {
    color: var(--valheim-light) !important;
    font-weight: 500 !important;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    background-color: rgba(44, 24, 16, 0.9) !important;
    border: 2px solid var(--valheim-gold) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1 !important;
    transform: scale(1.1) !important;
    background-color: rgba(44, 24, 16, 1) !important;
}

/* Force full screen display */
@media screen and (min-width: 768px) {
    .lightbox {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-width: 95vw !important;
        max-height: 95vh !important;
    }
    
    .lb-container {
        max-width: 95vw !important;
        max-height: 95vh !important;
    }
    
    .lb-image {
        max-width: 90vw !important;
        max-height: 85vh !important;
    }
}

/* Mobile optimizations */
@media screen and (max-width: 767px) {
    .lightbox {
        max-width: 98vw !important;
        max-height: 98vh !important;
    }
    
    .lb-image {
        max-width: 95vw !important;
        max-height: 85vh !important;
    }
    
    .lb-data .lb-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
}

/* Enhanced grid layout for armour pieces */
.armour-pieces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .armour-pieces-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .armour-main-image {
        width: 120px;
        height: 120px;
    }
    
    .armour-no-image {
        width: 120px;
        height: 120px;
    }
    
    .armour-set-image-large {
        width: 80px;
        height: 80px;
    }
}

/* Enhanced Stats Cards */
.stats-card {
    border-left: 4px solid var(--valheim-gold) !important;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--valheim-gold) !important;
}

.stats-card .stats-icon {
    position: relative;
    z-index: 1;
}

.stats-card h2 {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.stats-card h5 {
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.stats-primary { border-left-color: #007bff !important; }
.stats-success { border-left-color: #28a745 !important; }
.stats-warning { border-left-color: #ffc107 !important; }
.stats-info { border-left-color: #17a2b8 !important; }
.stats-danger { border-left-color: #dc3545 !important; }

/* Improvements badges styling for crafting stations */
.improvements-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.improvements-badges .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.improvements-badges .badge.bg-primary {
    background: linear-gradient(45deg, #0d6efd, #084298) !important;
    border: 1px solid #6ea8fe;
}

.improvements-badges .badge.bg-secondary {
    background: linear-gradient(45deg, #6c757d, #495057) !important;
    border: 1px solid #adb5bd;
}

/* Usage badges styling for locations */
.usage-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
}

.usage-badges .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
}

/* Upgrade Requirements Styles */
.upgrade-requirements-section {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

.upgrade-requirements-section h6 {
    color: var(--valheim-gold);
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: bold;
}

.upgrade-level-requirements {
    margin-bottom: 12px;
}

.upgrade-level-requirements:last-child {
    margin-bottom: 0;
}

.upgrade-level-title {
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upgrade-materials {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.upgrade-material-badge {
    background: rgba(40, 40, 40, 0.8);
    color: #e0e0e0;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 215, 0, 0.4);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.upgrade-material-badge:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--valheim-gold);
    color: #ffffff;
}

.upgrade-material-badge i {
    color: var(--valheim-gold);
    margin-right: 3px;
}

/* Trinket-specific styles */
.armour-slot-section {
    background: rgba(13, 202, 240, 0.1);
    border: 1px solid rgba(13, 202, 240, 0.3);
    border-radius: 8px;
    padding: 10px;
}

.armour-trinket-section {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px;
}

.trinket-properties {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.trinket-property {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.trinket-property .badge {
    font-size: 0.8rem;
    padding: 4px 8px;
}

.trinket-property i {
    width: 16px;
    text-align: center;
}

/* Responsive adjustments for trinket properties */
@media (max-width: 768px) {
    .trinket-properties {
        font-size: 0.9rem;
    }
    
    .trinket-property .badge {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}
