/* Custom styles for Badge Creator */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0e0e10;
}

/* Layout & Navbar */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #0e0e10;
    /* Color morado similar a la imagen */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 25px;
    z-index: 1050;
    color: white;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.top-logo {
    max-height: 75px;
    width: auto;
    margin-top: 5px;
    margin-left: 20px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-icons {
    display: flex;
    align-items: center;
    padding: 20px;
}

.nav-item-icon {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.wallet-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    gap: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wallet-address {
    font-family: monospace;
    font-size: 0.85rem;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-badge {
    width: 32px;
    height: 32px;
    background: white;
    color: #7a7a7a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.user-display-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    display: none;
    /* Controlado por JS */
    z-index: 1100;
    border: 1px solid #f0f0f0;
}

.dropdown-menu-custom.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-user-info {
    padding: 0.5rem 1.25rem 0.75rem;
}

.user-email {
    color: #6c757d;
    font-size: 0.85rem;
    display: block;
}

.dropdown-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 0.5rem 0;
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-item-custom:hover {
    background-color: #c7ddff;

}

.dropdown-item-custom i {
    width: 20px;
    text-align: center;
    color: #666;
    font-size: 1rem;
}



.logout-item {
    color: #dc3545;
}

.logout-item:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

.logout-item i {
    color: #dc3545;
}

/* Adjusted Layout */
.main-wrapper {
    margin-top: 64px;
}

.sidebar {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    background: #0e0e10;
    color: white;
}

@media (min-width: 768px) {
    .sidebar {
        width: 155px !important;
    }
}

.position-sticky {
    margin-top: 40px;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.375rem;
    margin: 0.25rem 0.1rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

/* Main content */
main {
    margin-left: 0;
    padding: 0 !important;
}

@media (min-width: 768px) {
    main {
        margin-left: 155px !important;
        width: calc(100% - 155px) !important;
        max-width: calc(100% - 155px) !important;
        flex: 0 0 calc(100% - 155px) !important;
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        position: relative;
        top: 0;
        height: auto;
    }
}

/* Modern Header Styles */
.modern-header {
    position: relative;
    padding: 0.5rem 0;
    background-color: rgba(13, 110, 253, 0.04);
    border-radius: 0.5rem;
    border: 1px solid rgba(82, 13, 253, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem !important;
}

.title-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0e0e10;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.icon-wrapper:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.icon-wrapper i {
    color: white;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.title-content {
    flex: 1;
}

.modern-title {
    font-size: 1.4rem;
    font-weight: 700;
    background: #0e0e10;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.modern-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0.15rem 0 0 0;
    font-weight: 400;
    opacity: 0.8;
}

/* Card enhancements */
/* Card enhancements (Homogenized) */
.card {
    background: linear-gradient(to top, rgba(6, 1, 76, 0.04), rgba(69, 69, 69, 0.04));
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(13, 110, 253, 0.05);
    font-weight: 600;
}

.card-header h5,
.card-header h6 {
    margin: 0;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.card-header i {
    background-image: linear-gradient(90deg, #2ba7ff, #2419bf 50%, #1a0b54);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    display: inline-block;
    margin-right: 0.5rem;
    line-height: 1.4;
    vertical-align: middle;
    padding-bottom: 2px;
}

/* Form enhancements */
.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

/* Button enhancements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



/* JSON Preview */
#json-preview {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#json-preview code {
    color: #495057;
}

/* Badge card styles */
.badge-card {
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Badge Preview Styling - Ensure relative positioning for pseudo-element background */
.badge-preview {
    position: relative;
    background: transparent !important;
    color: #1a0b54;
    padding: 2rem;
    text-align: center;
    border-radius: 0.375rem 0.375rem 0 0;
    overflow: hidden;
    z-index: 0;
}

/* Background gradient with opacity */
.badge-preview::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, #2ba7ff, #2419bf 50%, #1a0b54);
    opacity: 0.15;
    /* Ajusta este valor para más/menos intensidad (0.1 a 0.9) */
    z-index: -1;
}

.badge-preview i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.badge-info {
    padding: 1.5rem;
}

.badge-meta {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

/* User Info Styles */
#user-info {
    background: none;
    border: 1px solid white;
    border-radius: 12px !important;
    padding: .6rem !important;
    margin-top: 1.5rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#user-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

#user-info .user-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

#user-info .user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4dccff 0%, #10bafb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.75rem;
}

#user-info .user-details {
    flex: 1;
    min-width: 0;
}

#user-info .user-name {
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#user-info .user-role {
    font-size: 0.75rem;
    color: #e9e9e9;
    margin: 0;
    text-transform: capitalize;
}

#user-info .logout-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(238, 90, 82, 0.3);
}

#user-info .logout-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(238, 90, 82, 0.4);
    background: linear-gradient(135deg, #ff5252 0%, #e53e3e 100%);
}

#user-info .logout-btn:active {
    transform: scale(0.95);
}

/* Content sections */
.content-section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky preview panel */
.sticky-top {
    top: 2rem;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading::before {
    content: '\f110';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .sticky-top {
        position: relative !important;
        top: auto !important;
    }
}

/* Section Card Styles */

/* Global Section Card Style (Homogenized) */
.section-card {
    background: linear-gradient(to top, rgba(6, 1, 76, 0.04), rgba(69, 69, 69, 0.04));
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

/* Remove Home specific card style as it's now global */
/* #home-section .section-card { ... } removed/commented */

.section-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.section-header {
    background: transparent;
    /* Match home section style */
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(13, 110, 253, 0.05);
    /* Match home style */
}

/* Remove specific home-section header rule or merging it */
/* #home-section .section-header { ... } */

.section-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
}

.section-header i {
    /* Gradient for all section header icons */
    background-image: linear-gradient(90deg, #2ba7ff, #2419bf 50%, #1a0b54);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    display: inline-block;
    margin-right: 0.75rem;
    font-size: 1.2rem;
    line-height: 1.4;
    /* Prevent clipping at top/bottom */
    vertical-align: middle;
    padding-bottom: 2px;
    /* Extra space for descenders/ascenders */
}

.section-body {
    padding: 1.5rem;
}

/* Form Styling within Section Cards */
.section-card .form-label {
    color: #4a4a4a;
    letter-spacing: 0.02em;
}

.section-card .form-control,
.section-card .form-select {
    padding: 0.6rem 1rem;
    border: 1.5px solid #eef0f2;
    background-color: #fcfdfe;
    transition: all 0.2s ease;
}

.section-card .form-control:focus,
.section-card .form-select:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.image-preview-container {
    background-image: radial-gradient(#dee2e6 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Dashboard Styles */
.bg-light-green {
    background-color: #e8f5e9 !important;
}

/* Dashboard Enhancements */
.main-dashboard-card {
    background-color: #ffffff;
    border: none;
    min-height: calc(100vh - 100px);
}

.rounded-top-5 {
    border-top-left-radius: 1.5rem !important;
    border-top-right-radius: 1.5rem !important;
}

/* Stat cards */
.stat-card-group,
.stat-card {
    transition: transform 0.2s;
    background-color: #ffffff;
}

#home-section .stat-card-group,
#home-section .stat-card:not(.bg-light-green) {
    background: linear-gradient(to top, rgba(6, 1, 76, 0.04), rgba(69, 69, 69, 0.04))
}

/* Apply gradient to icons in home section (except leaf relative/CO2 card) */
#home-section .stat-icon i,
#home-section .stat-card:not(.bg-light-green) i:not(.fa-leaf),
#home-section .stat-card-group i,
#home-section .section-card i {
    background-image: linear-gradient(90deg, #2ba7ff, #2419bf 50%, #1a0b54);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    display: inline-block;
}

#home-section .stat-card:not(.bg-light-green) .text-info,
#home-section .stat-card:not(.bg-light-green) .text-success,
#home-section .stat-card:not(.bg-light-green) .text-primary,
#home-section .stat-card:not(.bg-light-green) .text-warning,
#home-section .stat-card:not(.bg-light-green) .text-secondary {
    color: #06014c !important;
    /* Keep text dark blue */
}

#home-section .stat-card-group .text-info,
#home-section .stat-card-group .text-success,
#home-section .stat-card-group .text-primary {
    color: #06014c !important;
    /* Keep text dark blue */
}

/* Ensure the CO2 card keeps its original colors */
#home-section .bg-light-green .text-success,
#home-section .bg-light-green .fa-leaf,
#home-section .bg-light-green .text-muted {
    color: #198754 !important;
    /* Bootstrap success green */
}


.stat-card-group:hover,
.stat-card:hover {
    transform: translateY(-5px);
}

#home-section .d-flex.justify-content-between.align-items-center.mb-3 h5 {
    background-image: linear-gradient(90deg, #2ba7ff, #2419bf 50%, #1a0b54);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    /* Often needed for background-clip to work on text */
}

/* Apply gradient to dashboard header subtitle */
.dashboard-header .text-muted {
    background-image: linear-gradient(90deg, #2ba7ff, #2419bf 50%, #1a0b54);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    display: inline-block;
}

.dashboard-header h2 {
    color: #06014c;
    font-size: 2rem;
}

.stat-icon {
    font-size: 1.2rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Validation feedback */
.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: var(--danger-color);
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    font-size: 0.875rem;
    color: var(--success-color);
    margin-top: 0.25rem;
}

/* Badge status indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-valid {
    background-color: var(--success-color);
}

.status-invalid {
    background-color: var(--danger-color);
}

.status-pending {
    background-color: var(--warning-color);
}

/* Tooltip enhancements */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: var(--dark-color);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

/* Print styles */
@media print {

    .sidebar,
    .btn-toolbar,
    .card-header .btn {
        display: none !important;
    }

    main {
        margin-left: 0 !important;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Estilos para el modal de galería de fondos */
#backgroundModal .modal-dialog {
    max-width: 900px;
    width: 90%;
}

#backgroundModal .modal-body {
    max-height: 600px;
    overflow-y: auto;
    padding: 1.5rem;
}

.gallery-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    padding: 0;
    margin-bottom: 1rem;
    cursor: pointer;
    height: 150px;
}

.gallery-image-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
    display: block;
}

.gallery-image-item:hover img {
    transform: scale(1.05);
}

#gallery-grid {
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
}

#gallery-grid .col-xl-2,
#gallery-grid .col-lg-3,
#gallery-grid .col-md-4,
#gallery-grid .col-sm-6,
#gallery-grid .col-6 {
    padding: 0.5rem;
    flex: 0 0 auto;
}

#gallery-loading {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#gallery-error {
    margin: 1rem 0;
}

/* Scrollbar personalizado para la galería */
#gallery-grid::-webkit-scrollbar {
    width: 8px;
}

#gallery-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#gallery-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#gallery-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    #backgroundModal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }

    .gallery-image-item img {
        height: 100px;
    }

    #gallery-grid {
        max-height: 300px;
    }
}

/* Badge List View Styles - Modern & Compact */
.badge-list-item {
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eef0f2;
    cursor: pointer;
    background-color: #ffffff;
    border-radius: 8px;
}

.badge-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Sombra sutil y elegante */
    border-color: #dee2e6;
    background-color: #fafbfc;
}

.badge-list-thumb {
    width: 60px;
    /* Tamaño reducido pero visible */
    height: 60px;
    object-fit: contain;
    background-color: #ffffff;
    border: 1px solid #eef0f2;
    padding: 4px;
    /* Padding interno para que la imagen respire */
    border-radius: 8px;
}

.badge-list-placeholder {
    width: 60px;
    /* Tamaño reducido pero visible */
    height: 60px;
    background-color: #f8f9fa;
    border: 1px solid #eef0f2;
    padding: 4px;
    /* Padding interno para que la imagen respire */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #cbd5e0;
}

/* Action buttons hidden by default for cleaner look */
.action-buttons {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Ensure actions are visible on hover */
.badge-list-item:hover .action-buttons {
    opacity: 1;
}

/* En móviles siempre visibles */
@media (max-width: 768px) {
    .action-buttons {
        opacity: 1;
    }
}

.min-width-0 {
    min-width: 0;
}

/* Bootstrap Text Color Overrides for Branding Consistency */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.text-success {
    color: #198754 !important;
}