@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;1,600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    color: #e4e4e4;
    background-color: #1a1a1a;
}

/* Initial state for the lazy-loaded image */
img.lazy {
    opacity: 0;
    transition: opacity 1s;
}

/* State for the image once it has loaded */
img.lazy-loaded {
    opacity: 1;
}

/* Items View Handler - Smooth transitions */
.items-view {
    transition: opacity 0.3s ease-in-out;
}

.items-view:not(.active) {
    display: none;
}

/* View button active state enhancement */
.btn-group .btn.active {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ===== ITEM.ASPX STYLES ===== */

/* Item Top Background */
.item-top {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.item-cover:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .item-top {
        background-attachment: scroll;
    }
}

/* Action Bar */
.action-bar {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1000 !important;
}

.action-bar .container {
    position: relative;
    z-index: 1;
}

.action-bar .container > * {
    position: relative;
    z-index: 1;
}

/* Ensure UpdatePanels inside action-bar don't block clicks */
.action-bar .UpdatePanel,
.action-bar [id*="UpdatePanel"],
.action-bar div[id*="UpdatePanel"] {
    position: static !important;
    z-index: auto !important;
}

/* Base Action Button - Rust/Terracotta Theme */
.action-btn {
    padding: 0.45rem 0.9rem;
    border: 2px solid transparent;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    color: white;
    text-decoration: none;
}

.action-btn:active {
    transform: translateY(0);
}

/* Primary Button - Terracotta */
.action-btn-primary {
    background: linear-gradient(135deg, #c55742 0%, #d4744f 100%);
    border-color: #c55742;
}

.action-btn-primary:hover {
    background: linear-gradient(135deg, #d4744f 0%, #e38963 100%);
    box-shadow: 0 4px 10px rgba(197, 87, 66, 0.5);
}

/* Secondary Button - Rust */
.action-btn-secondary {
    background: linear-gradient(135deg, #a0522d 0%, #b8632f 100%);
    border-color: #a0522d;
}

.action-btn-secondary:hover {
    background: linear-gradient(135deg, #b8632f 0%, #cd7f3a 100%);
    box-shadow: 0 4px 10px rgba(160, 82, 45, 0.5);
}

/* Accent Button - Burnt Orange */
.action-btn-accent {
    background: linear-gradient(135deg, #cc5500 0%, #e67233 100%);
    border-color: #cc5500;
}

.action-btn-accent:hover {
    background: linear-gradient(135deg, #e67233 0%, #ff8c4d 100%);
    box-shadow: 0 4px 10px rgba(204, 85, 0, 0.5);
}

/* Success Button - Sage Green */
.action-btn-success {
    background: linear-gradient(135deg, rgba(107, 142, 35, 0.3) 0%, rgba(107, 142, 35, 0.2) 100%);
    border-color: #6b8e23;
    color: #9acd32;
}

.action-btn-success:hover {
    background: linear-gradient(135deg, #6b8e23 0%, #7ea82e 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(107, 142, 35, 0.5);
}

/* Warning Button - Clay */
.action-btn-warning {
    background: linear-gradient(135deg, #8b4513 0%, #a0552d 100%);
    border-color: #8b4513;
}

.action-btn-warning:hover {
    background: linear-gradient(135deg, #a0552d 0%, #b86638 100%);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.5);
}

/* Collection Counter */
.collection-counter {
    display: inline-flex;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid #6b8e23;
    border-radius: 6px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    vertical-align: middle;
    position: relative;
    z-index: 10;
}

.counter-btn {
    padding: 0.45rem 0.7rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1038 !important;
    pointer-events: auto !important;
}

.counter-minus {
    color: #cd5c5c;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.counter-minus:hover {
    background: #cd5c5c;
    color: white;
}

.counter-plus {
    color: #9acd32;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.counter-plus:hover {
    background: #9acd32;
    color: #1a1a2e;
}

.counter-display {
    position: relative;
    padding: 0.45rem 0.9rem;
    min-width: 65px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #6b8e23 0%, #7ea82e 100%);
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    z-index: 1038 !important;
    pointer-events: auto !important;
}

.counter-display:hover {
    background: linear-gradient(135deg, #7ea82e 0%, #8fb936 100%);
    color: white;
    text-decoration: none;
}

.counter-display i {
    font-size: 0.95rem;
}

.counter-number {
    font-size: 1rem;
    font-weight: 700;
}

/* Description Expand Trigger */
.description-expand-trigger {
    position: relative;
    margin-top: -1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.description-expand-bar {
    background: linear-gradient(180deg, transparent 0%, rgba(197, 87, 66, 0.1) 20%, rgba(197, 87, 66, 0.3) 100%);
    border-top: 2px solid rgba(197, 87, 66, 0.3);
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.description-expand-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.description-expand-trigger:hover .description-expand-bar {
    background: linear-gradient(180deg, transparent 0%, rgba(197, 87, 66, 0.2) 20%, rgba(197, 87, 66, 0.4) 100%);
    border-top-color: rgba(197, 87, 66, 0.5);
}

.description-expand-trigger:hover .description-expand-bar::before {
    left: 100%;
}

.expand-text {
    color: #d4744f;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.description-expand-trigger:hover .expand-text {
    color: #e38963;
    transform: translateY(-2px);
}

.expand-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.description-expand-trigger:hover .expand-icon {
    transform: translateY(3px);
}

.description-expand-trigger.expanded .description-expand-bar {
    background: linear-gradient(180deg, rgba(197, 87, 66, 0.3) 0%, rgba(197, 87, 66, 0.2) 80%, transparent 100%);
    border-top-color: rgba(197, 87, 66, 0.5);
    border-bottom: 2px solid rgba(197, 87, 66, 0.3);
}

.description-expand-trigger.expanded:hover .expand-icon {
    transform: translateY(-3px);
}

/* User Copies Badge */
.user-copies-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(197, 87, 66, 0.15);
    border: 1px solid rgba(197, 87, 66, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.user-copies-badge:hover {
    background: rgba(197, 87, 66, 0.25);
    border-color: rgba(197, 87, 66, 0.5);
    transform: translateY(-2px);
}

.user-copies-badge i {
    color: #d4744f;
    font-size: 1.1rem;
}

/* Comments Section */
.comment-item {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.comment-bubble {
    background: linear-gradient(135deg, #2c1810 0%, #1a1a2e 100%);
    border-left: 4px solid #c55742;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.comment-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 87, 66, 0.2), transparent);
    transition: left 0.5s ease;
}

.comment-bubble:hover {
    background: linear-gradient(135deg, #3d2418 0%, #16213e 100%);
    border-left-width: 6px;
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(197, 87, 66, 0.3);
}

.comment-bubble:hover::before {
    left: 100%;
}

.comment-avatar {
    width: 48px;
}

.comment-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(197, 87, 66, 0.4);
    transition: all 0.3s ease;
}

.comment-bubble:hover .comment-avatar-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(197, 87, 66, 0.6);
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c55742 0%, #d4744f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(197, 87, 66, 0.4);
    transition: all 0.3s ease;
}

.comment-bubble:hover .avatar-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(197, 87, 66, 0.6);
}

.comment-author {
    color: #d4744f;
    font-weight: 700;
    font-size: 1rem;
}

.comment-timestamp {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.comment-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.comment-delete-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comment-bubble:hover .comment-delete-btn {
    opacity: 1;
}

/* Comment Empty State */
.comment-empty-state {
    background: linear-gradient(135deg, #2c1810 0%, #1a1a2e 100%);
    border: 2px solid rgba(197, 87, 66, 0.3);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.comment-empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197, 87, 66, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.empty-state-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #c55742 0%, #d4744f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(197, 87, 66, 0.4);
}

.empty-state-icon i {
    font-size: 2.5rem;
    color: white;
}

.empty-state-title {
    position: relative;
    z-index: 1;
    color: #d4744f;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.empty-state-text {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Comment Form */
.comment-form-wrapper {
    position: relative;
}

.comment-form-card-inline {
    background: linear-gradient(135deg, #2c1810 0%, #3d2418 100%);
    border: 2px solid #c55742;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.comment-form-card-inline:hover {
    border-color: #d4744f;
    box-shadow: 0 6px 20px rgba(197, 87, 66, 0.4);
    transform: translateY(-2px);
}

.comment-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, #c55742, transparent);
    position: relative;
    margin: 2rem 0;
}

.comment-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2c1810 0%, #3d2418 100%);
    border: 3px solid #c55742;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

    .comment-divider::after {
        content: '\F6B0';
        font-family: 'bootstrap-icons' !important;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.3rem;
        color: #c55742;
    }

.comment-input-wrapper {
    position: relative;
}

.comment-textarea-inline {
    background: #1a1a2e !important;
    border: 2px solid #a0522d !important;
    color: white !important;
    padding: 0.875rem !important;
    font-size: 0.95rem;
    line-height: 1.6;
    border-radius: 8px;
    transition: all 0.3s ease;
    resize: vertical;
}

.comment-textarea-inline:focus {
    border-color: #c55742 !important;
    box-shadow: 0 0 0 0.25rem rgba(197, 87, 66, 0.3), 0 4px 12px rgba(197, 87, 66, 0.4) !important;
    background: #16213e !important;
    outline: none;
}

.comment-textarea-inline::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.comment-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0 0.25rem;
}

.comment-input-footer .text-muted {
    color: rgba(212, 116, 79, 0.7) !important;
}

.char-counter {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #d4744f !important;
}

.comment-submit-btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(197, 87, 66, 0.3);
    transition: all 0.3s ease;
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 87, 66, 0.5);
}

.comment-submit-btn:active {
    transform: translateY(0);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.comment-submit-btn:hover .btn-shine {
    left: 100%;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.animate-shake {
    animation: shake 0.4s ease;
}

#commentErrorAlert {
    border-left: 4px solid #cd5c5c;
    background: linear-gradient(135deg, rgba(205, 92, 92, 0.15) 0%, rgba(139, 69, 19, 0.1) 100%);
    border-radius: 8px;
    color: #fff;
    border: 1px solid rgba(205, 92, 92, 0.3);
}

#commentErrorAlert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#commentErrorAlert .btn-close:hover {
    opacity: 1;
}

/* Contributors Section */
.contributors-card {
    border: 2px solid rgba(107, 142, 35, 0.3);
    transition: all 0.3s ease;
}

.contributors-card:hover {
    border-color: rgba(107, 142, 35, 0.6);
    box-shadow: 0 8px 32px rgba(107, 142, 35, 0.3);
    transform: translateY(-2px);
}

.contributors-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    backdrop-filter: blur(10px);
}

.contributors-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.contributors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.contributors-list > * {
    width: auto !important;
    max-width: none !important;
}

.contributor-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem;
    border-radius: 10px;
}

.contributor-badge {
    border: 2px solid rgba(107, 142, 35, 0.4);
    color: #9acd32;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    line-height: normal;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.contributor-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contributor-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contributor-avatar-placeholder i {
    font-size: 18px;
    color: var(--bs-light);
}

.contributor-badge:hover {
    background: linear-gradient(135deg, #6b8e23 0%, #7ea82e 100%);
    border-color: #9acd32;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 142, 35, 0.4);
}

.admin-edit-link {
    background: rgba(160, 82, 45, 0.4);
    border: 2px solid rgba(160, 82, 45, 0.6);
    color: #d4744f;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.admin-edit-link:hover {
    background: linear-gradient(135deg, #a0522d 0%, #b8632f 100%);
    border-color: #cd7f3a;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(160, 82, 45, 0.5);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* ASP.NET CheckBox Bootstrap Fix */
/* ASP.NET wraps checkbox in a span, we need to unwrap it visually */
.form-check span:has(> input[type="checkbox"]) {
    display: contents;
}

/* Apply Bootstrap form-check-input styling directly to the input */
.form-check input[type="checkbox"],
.form-switch input[type="checkbox"] {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
    print-color-adjust: exact;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    border-radius: 0.25em;
}

.form-switch input[type="checkbox"] {
    width: 2em;
    margin-left: -2.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: background-position 0.15s ease-in-out;
}

.form-check input[type="checkbox"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-switch input[type="checkbox"]:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check input[type="checkbox"]:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Hide ASP.NET's auto-generated label */
.form-check span > label,
.form-switch span > label {
    display: none;
}

/* Eye icon color based on checkbox state */
.chkEnabled-eye-icon {
    color: #dc3545 !important; /* Red when unchecked */
    transition: color 0.15s ease-in-out;
}

#chkEnabled:checked ~ label .chkEnabled-eye-icon {
    color: #198754 !important; /* Green when checked */
}

/* Mobile Responsive - Item Page */
@media (max-width: 768px) {
    .action-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .counter-display {
        min-width: 55px;
        padding: 0.4rem 0.7rem;
    }
    
    .counter-number {
        font-size: 0.9rem;
    }
    
    .expand-text {
        font-size: 0.85rem;
    }
    
    .comment-avatar {
        width: 40px;
    }
    
    .comment-avatar-img {
        width: 40px;
        height: 40px;
    }
    
    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .comment-bubble {
        padding: 1rem;
    }
    
    .contributors-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .contributor-badge {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
        min-height: 42px;
    }
    
    .contributor-avatar,
    .contributor-avatar-placeholder {
        width: 26px;
        height: 26px;
    }
    
    .contributor-avatar-placeholder i {
        font-size: 16px;
    }
    
    .admin-edit-link {
        padding: 0.65rem 0.85rem;
        font-size: 0.95rem;
        min-height: 42px;
    }
    
    .contributor-item {
        gap: 0.3rem;
        padding: 0.25rem;
    }
}

/* Fix modal z-index issues - ensure modal appears above backdrop */
/* Bootstrap 5 default z-index values:
   - Dropdown: 1000
   - Sticky: 1020
   - Fixed: 1030
   - Offcanvas backdrop: 1040
   - Offcanvas: 1045
   - Modal backdrop: 1050
   - Modal: 1055
*/
/* Z-index hierarchy: action-bar(1000) < navbar(1030) < offcanvas(1045) < modal-backdrop(1050) < modal(1055) */

.modal-backdrop {
    z-index: 1025 !important;
}

.modal {
    z-index: 1060 !important;
}

.modal-dialog {
    z-index: 1061 !important;
}

.modal-content {
    z-index: 1062 !important;
}

/* Specific fix for filter modals */
.modal-filter {
    z-index: 1050 !important;
}

.modal-filter .modal-dialog {
    z-index: 1055 !important;
}

.modal-filter .modal-content {
    position: relative;
    z-index: 1060 !important;
}

.thumbnail-wrapper {
    width: 100px; /* Set desired width */
    height: 100px; /* Set desired height */
    overflow: hidden;
}

    .thumbnail-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

:root {
    --bs-dark-red: #8b0000;
    --bs-dark-red-subtle: #5a0000;
    --bs-playpilot-blue: #233257;
    --bs-playpilot-blue-hover: #080a13;
    --bs-imdb-yellow: #e2b616;
    --bs-imdb-yellow-hover: #8b710e;
    --bs-tvdb-green: #293a36;
    --bs-tvdb-green-hover: #263535;
    --bs-tmdb-blue: #19b7d9;
    --bs-tmdb-blue-hover: #084a80;
}

.dark-red {
    background-color: var(--bs-dark-red) !important;
    color: #fff !important;
    border-color: var(--bs-dark-red) !important;
}

    .dark-red:hover {
        background-color: var(--bs-dark-red-subtle) !important;
        border-color: var(--bs-dark-red-subtle) !important;
        color: #fff !important;
    }

.playpilot-blue {
    background-color: var(--bs-playpilot-blue) !important;
    color: #fff !important;
    border-color: var(--bs-playpilot-blue) !important;
}

    .playpilot-blue:hover {
        background-color: var(--bs-playpilot-blue-hover) !important;
        border-color: var(--bs-playpilot-blue-hover) !important;
        color: #fff !important;
    }

.imdb-yellow {
    background-color: var(--bs-imdb-yellow) !important;
    color: #000 !important;
    border-color: var(--bs-imdb-yellow) !important;
}

    .imdb-yellow:hover {
        background-color: var(--bs-imdb-yellow-hover) !important;
        border-color: var(--bs-imdb-yellow-hover) !important;
        color: #fff !important;
    }

.tvdb-green {
    background-color: var(--bs-tvdb-green) !important;
    color: #fff !important;
    border-color: var(--bs-tvdb-green) !important;
}

    .tvdb-green:hover {
        background-color: var(--bs-tvdb-green-hover) !important;
        border-color: var(--bs-tvdb-green-hover) !important;
        color: #fff !important;
    }

.tmdb-blue {
    background-color: var(--bs-tmdb-blue) !important;
    color: #000 !important;
    border-color: var(--bs-tmdb-blue) !important;
}

    .tmdb-blue:hover {
        background-color: var(--bs-tmdb-blue-hover) !important;
        border-color: var(--bs-tmdb-blue-hover) !important;
        color: #fff !important;
    }

.btn-icon {
    height: 18px;
}

.no-select {
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently supported by Chrome, Opera and Edge */
}

.rounded {
    border-radius: 50%;
}

/* Ensure your styles are applied after Bootstrap's styles */
.table-transparent {
    background-color: transparent !important;
    border: none !important; /* Optionally remove borders */
    /* Override Bootstrap's custom properties */
    --bs-table-color: initial !important;
    --bs-table-bg: initial !important;
    --bs-table-striped-bg: initial !important;
    --bs-table-active-bg: initial !important;
    --bs-table-hover-bg: initial !important;
    /* Ensure other styles don't interfere */
    width: 100% !important;
    margin-bottom: 1rem !important;
    vertical-align: top !important;
    border-color: transparent !important;
}

/*@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}*/

.text-monospace {
    font-family: monospace, monospace;
}

.brand {
    font-weight: 700;
    font-style: italic;
}

h1, h2, h3, h4, h5 {
    color: #e4e4e4;
    font-weight: 600;
    font-style: italic;
}

.title {
    margin-bottom: 0px;
}

.content {
    /*padding-bottom: 30px;*/
}

.new-item-images {
    max-height: 600px;
    overflow: auto;
}

.audit-log {
    max-height: 500px;
    overflow: auto;
}

.modal {
    color: #000;
}

    .modal label {
        color: #000;
    }

.card {
    background-image: url('https://assets.flixy.dk/Images/placeholder-lazy.jpg');
    background-size: cover; /* Ensures the image covers the entire card */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
}


.card-item-title {
    color: #fff;
    text-decoration: none;
}

.card-item-text-sm {
    font-size: 12px;
}

.card-attributes-sm {
    color: #fff;
    font-size: 12px;
}

.card-img-sm {
    max-height: 150px;
}

.card-link,
.card-link:hover,
.card-link:visited {
    text-decoration: none !important;
    color: inherit; /* Inherit text color from parent */
}

.card:hover {
    /*background-color: #B85C38;*/
}

.card-item a,
.card-item a:visited {
    color: #E0C097 !important; /* Use !important to ensure this style is applied */
}

.b {
    font-weight: bold;
}

.white {
    color: #fff;
}

.hidden {
    visibility: hidden;
}

.center {
    text-align: center;
}

.search {
    margin-top: 4%;
}

.socialicon {
    font-size: 18px;
    cursor: default;
}

    .socialicon a {
        text-decoration: none;
        cursor: default;
    }

.btn {
    color: #fff;
}

/*.btn, a {
    color: #fff;
}

    .btn, a:visited {
        color: #fff;
    }*/

.cases {
}

    .cases img {
        max-height: 50px;
        -webkit-filter: grayscale(100%);
        filter: grayscale(100%);
        margin-top: -20px;
    }

        .cases img:hover {
            -webkit-filter: grayscale(0%);
            filter: grayscale(0%);
        }

.bg-dark {
    /*    --bs-dark-rgb: 92,61,46;
    --bs-bg-opacity: 1;*/
}

.bg-brown {
    --bs-rgb: 92,61,46;
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-rgb), var(--bs-bg-opacity));
}

.external-links {
    background-color: #5C3D2E;
}

.form-control {
    color: #e4e4e4;
}

.comment {
    color: #fff;
    background-color: #B85C38;
    border: var(--bs-border-width) var(--bs-border-style) #5C3D2E !important;
}

.items-gallery-view {
    color: #2D2424;
    text-decoration: none;
}

.card {
    --bs-card-bg: #5C3D2E;
    color: #E0C097;
    height: 100%;
}

.text-primary {
    color: #909090;
}

/*.item-top {
    background-color: #1b1616;
}*/

@keyframes pan-background {
    0% {
        background-position: top center;
        opacity: 1;
    }

    45% {
        background-position: bottom center;
        opacity: 1;
    }

    50% {
        background-position: bottom center;
        opacity: 0; /* Start fading out */
    }

    55% {
        background-position: top center;
        opacity: 0; /* Completely faded out */
    }

    60% {
        background-position: top center;
        opacity: 1; /* Fade back in */
    }

    100% {
        background-position: top center;
        opacity: 1;
    }
}

.top-slide {
    /* margin-top removed to prevent navbar overlap */
}



.item-top {
    margin-top: -15px;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 500px;
}
@media (max-width: 768px) {
    .item-top {
        min-height: 300px;
    }
}
    .item-top::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: inherit; /* Use the same background image */
        background-size: cover;
        background-position: top center;
        background-repeat: no-repeat;
        z-index: 0;
        animation: pan-background 700s linear infinite;
    }

    .item-top::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(27, 22, 22, 0.8); /* #1b1616 color with 0.8 opacity */
        z-index: 1;
    }

    .item-top .container {
        position: relative;
        z-index: 2;
    }

.modal-title {
    color: #000;
}

.modal {
    color: #000;
}

    .modal label {
        color: #000;
    }

    /* Ensure links within modals are styled appropriately */
    .modal a {
        color: #000 !important;
    }

        .modal a:hover,
        .modal a:active,
        .modal a:visited {
            color: grey !important;
        }

input[type=checkbox], label {
    padding-left: 5px;
}

.form-floating {
    color: #000;
}

.form-control {
    color: #000;
}

/*table > tbody {
    color: #fff;
    --bs-table-striped-color: #fff;
}*/

/* LINKS */
a {
    color: #e4e4e4;
}

    a:active {
        color: grey;
        text-decoration: none;
    }

    a:hover {
        color: grey;
        text-decoration: none;
    }

    a:visited {
        /*color: #e4e4e4;*/
        text-decoration: none;
    }

/*.dropdown-item a {
    color: #000;
}

    .dropdown-item a:active {
        color: #000;
        text-decoration: none;
    }

    .dropdown-item a:hover {
        color: #000;
        text-decoration: none;
    }

    .dropdown-item a:visited {
        color: #000;
        text-decoration: none;
    }*/

.list-group > a {
    color: #fff;
    background-color: #5C3D2E;
}

    .list-group > a:visited {
        color: #fff;
        background-color: #5C3D2E;
    }

    .list-group > a:hover {
        color: #fff;
        background-color: #B85C38;
    }

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #B85C38;
    --bs-btn-border-color: #B85C38;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #633523;
    --bs-btn-hover-border-color: #633523;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #633523;
    --bs-btn-active-border-color: #633523;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #B85C38;
    --bs-btn-disabled-border-color: #B85C38;
}

.offcanvasNav, .list-group-item {
    --bs-list-group-border-color: #B85C38;
}

.text-muted > a {
    color: #e4e4e4;
}

    .text-muted > a:active {
        color: grey;
        text-decoration: none;
    }

    .text-muted > a:hover {
        color: grey;
        text-decoration: none;
    }

    .text-muted > a:visited {
        color: #e4e4e4;
        text-decoration: none;
    }

/* Initially hide the overlay and description */
.hover-card .card-overlay,
.hover-card .description-short {
    display: none;
}

/* Style the overlay */
.hover-card:hover .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay color */
    display: block;
    z-index: 1;
}

/* Style the description to appear on top of the overlay on hover */
.hover-card:hover .description-short {
    display: block;
    width: 85%;
    position: absolute;
    top: 25%; /* Adjust this as needed */
    left: 50%; /* Adjust this as needed */
    transform: translate(-50%, -50%);
    color: white; /* Text color on overlay */
    z-index: 2; /* Place it above the overlay */
}


/* BUTTONS - Rust/Terracotta Theme */

/* Override Bootstrap btn-primary with rust/terracotta style */
.btn-primary {
    background: linear-gradient(135deg, #c55742 0%, #d4744f 100%) !important;
    border-color: #c55742 !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4744f 0%, #e38963 100%) !important;
    border-color: #d4744f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(197, 87, 66, 0.5);
    color: white !important;
}

.btn-primary:active, .btn-primary:focus {
    background: linear-gradient(135deg, #c55742 0%, #d4744f 100%) !important;
    border-color: #c55742 !important;
    transform: translateY(0);
    color: white !important;
}

/* Action buttons - standardized sizing */
.btn-lg.btn-primary {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
}

.btn-primary:not(.btn-sm):not(.btn-lg) {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
}

/* Secondary button - Rust */
.btn-secondary {
    background: linear-gradient(135deg, #a0522d 0%, #b8632f 100%) !important;
    border-color: #a0522d !important;
    color: white !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #b8632f 0%, #cd7f3a 100%) !important;
    border-color: #b8632f !important;
    box-shadow: 0 4px 10px rgba(160, 82, 45, 0.5);
}

/* Success button - Sage Green */
.btn-success {
    background: linear-gradient(135deg, #6b8e23 0%, #7ea82e 100%) !important;
    border-color: #6b8e23 !important;
    color: white !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #7ea82e 0%, #8fb936 100%) !important;
    box-shadow: 0 4px 10px rgba(107, 142, 35, 0.5);
}

/* Warning button - Clay */
.btn-warning {
    background: linear-gradient(135deg, #8b4513 0%, #a0552d 100%) !important;
    border-color: #8b4513 !important;
    color: white !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #a0552d 0%, #b86638 100%) !important;
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.5);
}

/* Danger/Info outline buttons keep their style but match theme */
.btn-outline-danger:hover {
    background-color: #cd5c5c !important;
    border-color: #cd5c5c !important;
}

/* Bootstrap Primary Color Overrides for text and backgrounds */
:root {
    --bs-primary: #c55742;
    --bs-primary-rgb: 197, 87, 66;
    --bs-link-color: #c55742;
    --bs-link-hover-color: #d4744f;
}

.text-primary {
    color: #c55742 !important;
}

.bg-primary {
    background-color: #c55742 !important;
}

.badge.bg-primary {
    background-color: #c55742 !important;
    color: #fff !important;
}

.btn-link {
    color: #c55742;
}

.btn-link:hover,
.btn-link:focus {
    color: #d4744f;
}

/* Fix focus shadow on all buttons and inputs */
.btn:focus,
.btn:focus-visible,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(197, 87, 66, 0.25) !important;
    border-color: #c55742 !important;
}

/* Items List View Styling */
#listView .list-group-item {
    background-color: transparent;
    color: inherit;
}

#listView .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

#listView .list-group-item h6 {
    color: #fff;
}

#listView .list-group-item .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Fix button group focus specifically */
.btn-group .btn-primary:focus,
.btn-group .btn-primary:focus-visible,
.btn-group .btn-primary.active,
.btn-group .btn-primary:active {
    box-shadow: 0 0 0 0.25rem rgba(184, 92, 56, 0.25) !important;
    border-color: #B85C38 !important;
}

.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    box-shadow: 0 0 0 0.25rem rgba(184, 92, 56, 0.25) !important;
}

/* Remove any residual box-shadow from button group */
.btn-group .btn-primary {
    box-shadow: none;
}

.btn-group .btn-primary.active,
.btn-group .btn-primary:active {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
}


/* Sticky footer styles (Bootstrap 5 Flexbox approach)
-------------------------------------------------- */
/* Body and html styling moved to inline classes in Layout.Master */
/* body: d-flex flex-column min-vh-100 */
/* form: d-flex flex-column flex-grow-1 */
/* content: flex-grow-1 */

.footer {
    padding: 20px 0;
    color: #fff;
    background-color: #5C3D2E;
    width: 100%;
    min-height: 90px;
    margin-bottom: 0 !important;
}

/* Default.aspx - Homepage Styles
-------------------------------------------------- */

/* Hero Section with Animated Gradient (commented out but kept for reference) */
.hero-section {
    background: linear-gradient(135deg, #5C3D2E 0%, #8B4513 50%, #D2691E 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.stats-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Note: .stat-number in hero section uses gradient text, but .stats-bar .stat-number is white */
.hero-section .stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Carousel */
.top-slide {
    position: relative;
    z-index: 1;
}

.carousel {
    position: relative;
    z-index: 1;
}

.top-slide-latest {
    background-image: url('/path-will-be-dynamic');
}

.top-slide-trending {
    background-image: url('/path-will-be-dynamic');
}

.top-slide-mostcollected {
    background-image: url('/path-will-be-dynamic');
}

.carousel-item {
    position: relative;
    z-index: 1;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.carousel-item > div {
    position: relative;
    z-index: 2;
}

/* Trending Badge */
.trending-badge {
    background: linear-gradient(135deg, #D2691E 0%, #FF8C00 100%);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Enhanced Cards */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

/* Modern CTA Button */
.cta-button {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    border: none;
    color: white;
    padding: 16px 48px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.6);
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
}

/* Section Divider */
.section-divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #8B4513 0%, #D2691E 100%);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* Category Cards */
.category-card {
    background: linear-gradient(135deg, #5C3D2E 0%, #3a2619 100%);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Contributor Badge */
.contributor-badge {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}

/* Carousel item covers */
.item-cover.carousel-cover {
    max-height: 400px;
}

/* "Se alle emner" card with background */
.see-all-card {
    min-height: 300px;
    background-image: url('https://assets.flixy.dk/Images/thumb.jpg');
    background-size: cover;
    background-position: center;
}

.see-all-card .overlay {
    background: linear-gradient(135deg, rgba(92, 61, 46, 0.85) 0%, rgba(139, 69, 19, 0.85) 100%);
}

.see-all-card .content {
    z-index: 3;
}

/* Top contributors card */
.contributors-card {
    background-color: #3a2619;
}

/* Contributors table styling */
.contributors-table {
    background-color: #3a2619;
    color: white;
    --bs-table-bg: #3a2619;
    --bs-table-hover-bg: rgba(210, 105, 30, 0.3);
    --bs-table-color: white;
}

.contributors-table .contributor-row {
    transition: all 0.3s ease;
}

.contributors-table .contributor-row:hover {
    background-color: rgba(210, 105, 30, 0.3) !important;
    transform: translateX(5px);
}

.contributors-table tbody {
    border: none !important;
}

.contributors-table td {
    border: none !important;
}

/* Contributor rank number */
.contributor-rank {
    min-width: 20px;
    display: inline-block;
}

/* Contributor avatar/profile image */
.contributor-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contributor-avatar img {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.contributor-avatar i {
    font-size: 32px;
    line-height: 1;
}

/* Community info section */
.community-info {
    background-color: #2b2b2b;
}

/* Layout.Master - Navigation & Stats Styles
-------------------------------------------------- */

/* Sticky top navbar - ensure it stays above content */
.sticky-top {
    position: sticky !important;
    top: 0 !important;
    /*z-index: 1030 !important;*/
}

/* Top stats bar */
.stats-bar {
    background-color: #2b2b2b;
    border-bottom-width: 2px !important;
}

/* Stats bar item with background icon */
.stats-bar .stat-item {
    position: relative;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Background icon behind text */
.stats-bar .stat-icon-bg {
    position: absolute;
    font-size: 3rem;
    color: #ffc107;
    opacity: 0.15;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Online icon uses green color */
.stats-bar .stat-icon-bg.text-success {
    color: #198754;
}

.stats-bar .stat-number {
    font-size: 0.85rem;
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    position: relative;
    z-index: 1;
}

.stats-bar .stat-label {
    font-size: 0.65rem;
    position: relative;
    z-index: 1;
}

/* Navbar search field max width */
.navbar-search {
    max-width: 400px;
}

/* Input group - dark background styling */
.navbar .input-group .input-group-text {
    background-color: #3a2619;
    border-color: #3a2619;
    border-right-width: 0 !important;
    border-right-style: none !important;
    color: #E0C097;
    padding: 0.5rem 0.75rem;
}

.navbar .input-group .input-group-text i {
    color: #E0C097 !important;
}

.navbar .input-group .form-control {
    background-color: #3a2619;
    border-color: #3a2619;
    border-left-width: 0 !important;
    border-left-style: none !important;
    border-right-width: 0 !important;
    border-right-style: none !important;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem;
}

.navbar .input-group .btn {
    padding: 0.5rem 0.75rem;
}

.navbar .input-group .form-control::placeholder {
    color: rgba(224, 192, 151, 0.6);
}

/* Remove default focus styling from form control */
.navbar .input-group .form-control:focus {
    box-shadow: none !important;
    border-color: #3a2619 !important;
    background-color: #3a2619;
    color: #fff;
}

/* Apply focus effect to the entire input-group container */
.navbar .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.4);
    border-radius: 0.375rem;
    transition: box-shadow 0.15s ease-in-out;
}

.navbar .input-group {
    transition: box-shadow 0.15s ease-in-out;
}

/* Navbar container z-index */
.bg-brown {
    position: relative;
    z-index: 1030;
}

/* Reusable Dark Theme Components */
/* -------------------------------------------------- */

/* Dark card header styling */
.card-header-dark {
    background: rgba(44, 24, 16, 0.7);
    border-bottom: 1px solid #c55742 !important;
    color: white;
}

/* Text colors - Rust/Terracotta palette */
.text-rust-light {
    color: #E0C097;
}

.text-rust {
    color: #a0522d;
}

.text-rust-primary {
    color: #d4744f;
}

/* Dark input styling */
.input-dark {
    background-color: #1a1a2e;
    border: 2px solid #a0522d;
    color: white;
}

.input-dark:focus {
    background-color: #16213e;
    border-color: #c55742;
    color: white;
}

.input-dark::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-dark-disabled {
    background-color: #16213e !important;
    border: 2px solid #6b8e23 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.input-dark-disabled:disabled {
    background-color: #16213e !important;
    border: 2px solid #6b8e23 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

/* Form text muted for dark theme */
.form-text-dark {
    color: rgba(224, 192, 151, 0.7);
}

/* Validator error text */
.validator-error {
    color: #ff6b6b;
}

/* Clickable labels */
.label-clickable {
    cursor: pointer;
}

/* Profile page icon circle */
.profile-icon-circle {
    background: rgba(184, 92, 56, 0.15);
    width: 64px;
    height: 64px;
}

/* Profile page card height overrides */
.profile-cards .card {
    height: auto !important;
    min-height: auto !important;
    border: none !important;
}

.profile-cards .card:hover {
    border: none !important;
}

.profile-cards .row {
    height: auto !important;
}

.profile-cards .col-lg-8,
.profile-cards .col-lg-4 {
    height: auto !important;
}

/* Footer styling */
.footer {
    background-color: #5C3D2E;
    border-top: 2px solid #D2691E;
}

footer .text-muted {
    color: #fff !important;
}

footer a {
    color: grey;
}

    footer a:hover {
        color: darkgray;
        text-decoration: none;
    }

    footer a:active {
        color: grey;
        text-decoration: none;
    }

    footer a:visited {
        color: grey;
        text-decoration: none;
    }

/* END OF Sticky footer styles
-------------------------------------------------- */

.modal-lightbox {
    background-color: unset;
    height: 100%;
}

#LightboxCanvas {
    max-width: 100%;
    max-height: 100%;
}

/** ITEM **/

.item-cover {
    max-width: 300px;
    max-height: 400px;
    overflow: hidden;
}

/** ITEM end **/

/** ITEM LIST **/

.card-item {
    max-width: 540px;
    max-height: 200px;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: right;
}

@media only screen and (max-width: 900px) {
    .card-item {
        max-width: 540px;
        max-height: 100%;
        overflow: hidden;
    }

    /* .card-item img {
            max-height: 200px;
        }*/

    .card-img-top {
        width: 100%;
        height: 400px;
        object-fit: cover;
        object-position: right;
    }

    .items-gallery-view > .card-item {
        max-height: 200px;
        overflow: hidden;
    }
}

/** ITEM LIST end **/
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

    .video-container iframe, .video-container object, .video-container embed {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* Loading Circle */
.ball {
    background-color: rgba(0,0,0,0);
    border: 5px solid rgba(0,183,229,0.9);
    opacity: .9;
    border-top: 5px solid rgba(0,0,0,0);
    border-left: 5px solid rgba(0,0,0,0);
    border-radius: 50px;
    box-shadow: 0 0 35px #2187e7;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    -moz-animation: spin .5s infinite linear;
    -webkit-animation: spin .5s infinite linear;
}

.ball1 {
    background-color: rgba(0,0,0,0);
    border: 5px solid rgba(0,183,229,0.9);
    opacity: .9;
    border-top: 5px solid rgba(0,0,0,0);
    border-left: 5px solid rgba(0,0,0,0);
    border-radius: 50px;
    box-shadow: 0 0 15px #2187e7;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    position: relative;
    top: -40px;
    -moz-animation: spinoff .5s infinite linear;
    -webkit-animation: spinoff .5s infinite linear;
}

@-moz-keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
    }

    100% {
        -moz-transform: rotate(360deg);
    }
}

@-moz-keyframes spinoff {
    0% {
        -moz-transform: rotate(0deg);
    }

    100% {
        -moz-transform: rotate(-360deg);
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes spinoff {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(-360deg);
    }
}

/* Loading Circle END */

/* Apply a background color and padding to the top header */
.top-header {
    background-color: #5C3D2E;
    padding: 10px 0;
}

    /* Center the site name and make it larger */
    .top-header .fs-4 {
        font-size: 24px;
        font-weight: bold;
    }

    /* Adjust the styles of the navigation links */
    .top-header .nav-item {
        margin-left: 10px;
    }

    .top-header .nav-link {
        color: #fff;
        font-weight: bold;
        text-decoration: none;
    }

        .top-header .nav-link:hover {
            color: #e4e4e4;
        }

    /* Style the "Log ind" button */
    .top-header .btn-primary {
        background-color: #B85C38;
        border-color: #B85C38;
        font-weight: bold;
        text-decoration: none;
    }

        .top-header .btn-primary:hover {
            background-color: #633523;
            border-color: #633523;
        }

    /* Style the user profile dropdown */
    .top-header .dropdown-menu {
        background-color: #5C3D2E;
        border-color: #B85C38;
    }

    .top-header .dropdown-item {
        color: #e4e4e4;
    }

        .top-header .dropdown-item:hover {
            background-color: #B85C38;
        }

        /* Style the "Giv feedback" and "Opret emne" buttons in the dropdown */
        .top-header .dropdown-item .btn {
            background-color: #B85C38;
            border-color: #B85C38;
            font-weight: bold;
            text-decoration: none;
            margin-right: 5px;
        }

            .top-header .dropdown-item .btn:hover {
                background-color: #633523;
                border-color: #633523;
            }

        /* Style the user icon in the dropdown */
        .top-header .dropdown-item .bi-person {
            font-size: 1.5rem;
        }

/* Adjust the styles of the footer */
.footer {
    padding: 20px 0;
    color: #fff;
    background-color: #5C3D2E;
}

    .footer a {
        color: #e4e4e4;
        text-decoration: none;
    }

        .footer a:hover {
            color: grey;
        }

.blur {
    filter: blur(10px);
}

.lightbox-image-container {
    max-height: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.watermark-container {
    text-align: center;
    pointer-events: none;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.watermark-lightbox {
    opacity: 0.5;
    width: 35px;
    height: auto;
    margin-right: 10px;
}

.watermark-text {
    color: white;
    font-size: 25px;
    opacity: 0.5;
}

/* Removed duplicate - already defined at top of file */

/* ============================================
   OFFCANVAS MENU - MODERN HOVER EFFECTS
   ============================================ */

/* Offcanvas list group items with smooth hover effects */
.offcanvas .list-group-item {
    transition: all 0.3s ease;
    border-radius: 6px !important;
    margin-bottom: 2px;
    padding: 8px 12px;
    font-size: 0.95rem;
}

.offcanvas .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(5px);
    padding-left: 16px;
}

.offcanvas .list-group-item:active {
    transform: translateX(3px) scale(0.98);
}

/* Icon animation on hover */
.offcanvas .list-group-item i {
    transition: transform 0.3s ease;
}

.offcanvas .list-group-item:hover i {
    transform: scale(1.2);
}

/* Quick action buttons in offcanvas */
.offcanvas .btn-primary,
.offcanvas .btn-secondary {
    transition: all 0.3s ease;
}

.offcanvas .btn-primary:hover,
.offcanvas .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.offcanvas .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.offcanvas .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Section headers in offcanvas */
.offcanvas h6 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Navbar links hover effect */
.navbar .nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar .nav-link i {
    transition: transform 0.3s ease;
}

.navbar .nav-link:hover i {
    transform: scale(1.15);
}

/* Mobile menu offcanvas links */
.offcanvas-start .nav-link {
    transition: all 0.3s ease;
}

.offcanvas-start .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    padding-left: 24px !important;
}

/* Logout button hover */
.offcanvas .btn-outline-danger {
    transition: all 0.3s ease;
}

.offcanvas .btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* User Item Edit Page Styles */
.h-auto {
    height: auto !important;
}

.card-header-dark {
    background: linear-gradient(135deg, #2c1810 0%, #1a1a2e 100%);
    border-bottom: 2px solid rgba(197, 87, 66, 0.4) !important;
}

.card-header-dark h5,
.card-header-dark h6 {
    color: #d4744f;
    font-size: 1.1rem;
}

.card-header-dark i {
    font-size: 1.2rem;
}

.input-dark {
    background-color: #1a1a2e !important;
    border: 2px solid #a0522d !important;
    color: white !important;
    transition: all 0.3s ease;
}

.input-dark:focus {
    background-color: #16213e !important;
    border-color: #c55742 !important;
    box-shadow: 0 0 0 0.25rem rgba(197, 87, 66, 0.3) !important;
    color: white !important;
}

.input-dark::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Sort Dropdown Styling - Match Button Height and Theme */
.sort-dropdown-wrapper {
    position: relative;
}

.sort-dropdown-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-left: 0.75rem;
    color: white;
    pointer-events: none;
    z-index: 10;
}

.sort-dropdown {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border: 1px solid var(--bs-primary) !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem 0.6rem 2.5rem !important;
    height: auto !important;
    line-height: 1.5;
    min-width: 180px;
    font-size: 1rem;
}

.sort-dropdown:focus {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25) !important;
}

.sort-dropdown option {
    background-color: white;
    color: black;
}

/* Fix for floating labels on dark inputs */
.form-floating > .input-dark ~ label {
    color: rgba(212, 116, 79, 0.9) !important;
    background: none !important;
}

.form-floating > .input-dark:focus ~ label,
.form-floating > .input-dark:not(:placeholder-shown) ~ label {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
    background: none !important;
}

/* Override Bootstrap's default white background on floating labels */
.form-floating > label,
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    background: none !important;
    background-color: transparent !important;
}

.input-dark option {
    background-color: #1a1a2e;
    color: white;
}

.input-dark-disabled {
    background-color: #0f1419 !important;
    border: 2px solid #6c757d !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed;
}

.text-rust-primary {
    color: #d4744f !important;
}

.text-rust {
    color: #c55742 !important;
}

.text-rust-light {
    color: rgba(212, 116, 79, 0.9) !important;
}

.form-text-dark {
    color: rgba(212, 116, 79, 0.7) !important;
}

.validator-error {
    color: #cd5c5c !important;
}

.label-clickable {
    cursor: pointer;
    user-select: none;
}

.profile-icon-circle {
    background: linear-gradient(135deg, #c55742 0%, #d4744f 100%);
    box-shadow: 0 4px 12px rgba(197, 87, 66, 0.3);
}

/* Image Upload Styles */
.image-upload-card {
    background: linear-gradient(135deg, #2c1810 0%, #1a1a2e 100%);
    border: 2px dashed rgba(197, 87, 66, 0.4);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-upload-card:hover {
    border-color: rgba(197, 87, 66, 0.7);
    background: linear-gradient(135deg, #3d2418 0%, #16213e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 87, 66, 0.3);
}

.image-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: visible;
    transition: box-shadow 0.3s ease;
}

.image-gallery-item:hover {
    box-shadow: 0 8px 24px rgba(197, 87, 66, 0.4);
}

.image-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.image-gallery-item:hover .image-gallery-overlay {
    opacity: 1;
}

/* ============================================
   ADMIN DASHBOARD STYLING
   ============================================ */

/* Admin-specific styling with rust/terracotta theme */
body.admin-page {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/* Global admin body styling */
.admin-body {
    color: #e0e0e0;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body h4,
.admin-body h5,
.admin-body h6 {
    display: none; /* Hide duplicate H1 tags - we use PageTitle instead */
}

/* All tables in admin should use admin-table styling */
.admin-body table:not(.admin-table) {
    background: transparent !important;
    color: #e0e0e0 !important;
}

.admin-body table:not(.admin-table) thead {
    background: rgba(197, 87, 66, 0.2) !important;
}

.admin-body table:not(.admin-table) thead th,
.admin-body table:not(.admin-table) thead td {
    background: rgba(197, 87, 66, 0.2) !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

.admin-body table:not(.admin-table) tbody td {
    color: #e0e0e0 !important;
    background: transparent !important;
    border-color: #444 !important;
}

.admin-body table:not(.admin-table) tbody tr:hover {
    background: rgba(197, 87, 66, 0.1) !important;
}

/* Text color fixes */
.admin-body p,
.admin-body label,
.admin-body span:not(.badge):not(.null-date) {
    color: #e0e0e0 !important;
}

.admin-body .text-muted {
    color: #999 !important;
}

/* Card styling in admin */
.admin-body .card {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    border-color: #444;
    color: #e0e0e0;
}

.admin-body .card-title,
.admin-body .card-text {
    color: #e0e0e0 !important;
}

.admin-body .card-footer {
    background: rgba(197, 87, 66, 0.1);
    border-color: #444;
}

/* Sidebar styling */
.admin-sidebar {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    min-height: 100vh;
    padding: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    z-index: 1000;
    overflow-y: auto;
}

.admin-sidebar-header {
    background: linear-gradient(135deg, #c55742 0%, #d4744f 100%);
    padding: 1.5rem;
    color: white;
    text-align: center;
    border-bottom: 3px solid #a0522d;
}

.admin-sidebar-header h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
}

.admin-sidebar-header small {
    opacity: 0.9;
    font-size: 0.85rem;
}

/* Navigation menu */
.admin-nav {
    padding: 1rem 0;
}

.admin-nav-section {
    margin-bottom: 1.5rem;
}

.admin-nav-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.admin-nav-link:visited {
    color: #e0e0e0;
}

.admin-nav-link:hover {
    background: rgba(197, 87, 66, 0.1);
    color: #d4744f;
    border-left-color: #c55742;
}

.admin-nav-link.active {
    background: linear-gradient(90deg, rgba(197, 87, 66, 0.3) 0%, rgba(197, 87, 66, 0.1) 100%);
    color: #fff;
    border-left-color: #d4744f;
    font-weight: 600;
    box-shadow: inset 0 0 10px rgba(197, 87, 66, 0.3);
}

.admin-nav-link.active i {
    color: #d4744f;
}

.admin-nav-link i {
    width: 24px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Main content area */
.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 0;
}

/* Top header bar */
.admin-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    padding: 1rem 2rem;
    border-bottom: 2px solid #c55742;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.75rem;
    color: #e0e0e0;
    font-weight: 700;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user-info .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

/* Content body */
.admin-body {
    padding: 2rem;
}

/* Cards */
.admin-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.admin-card-header {
    background: linear-gradient(135deg, #c55742 0%, #d4744f 100%);
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #a0522d;
    color: white;
    font-weight: 600;
}

.admin-card-body {
    padding: 1.5rem;
}

/* Stats cards */
.stat-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(197, 87, 66, 0.3);
    border-color: #c55742;
}

.stat-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #c55742;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.stat-card-label {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tables */
.admin-table {
    background: transparent !important;
    color: #e0e0e0 !important;
    border: none !important;
}

.admin-table thead,
.admin-table thead *,
.admin-table > thead,
.admin-table > thead > tr,
.admin-table > thead > tr > th {
    background: rgba(197, 87, 66, 0.2) !important;
    background-color: rgba(197, 87, 66, 0.2) !important;
    border-bottom: 2px solid #c55742 !important;
}

.admin-table thead th {
    border: none !important;
    color: #e0e0e0 !important;
    font-weight: 600;
    padding: 0.75rem !important;
    background: rgba(197, 87, 66, 0.2) !important;
    background-color: rgba(197, 87, 66, 0.2) !important;
    font-size: 0.9rem;
}

.admin-table thead tr {
    background: rgba(197, 87, 66, 0.2) !important;
    background-color: rgba(197, 87, 66, 0.2) !important;
}

/* Additional GridView header overrides */
.admin-table-header,
tr.admin-table-header,
tr.admin-table-header th {
    background: rgba(197, 87, 66, 0.2) !important;
    background-color: rgba(197, 87, 66, 0.2) !important;
    color: #e0e0e0 !important;
}

.admin-table tbody tr {
    border-bottom: 1px solid #444 !important;
    transition: background 0.2s ease;
    background: transparent !important;
}

.admin-table tbody tr:hover {
    background: rgba(197, 87, 66, 0.1) !important;
}

.admin-table tbody td {
    padding: 0.6rem 0.75rem !important;
    border: none !important;
    vertical-align: middle;
    color: #e0e0e0 !important;
    background: transparent !important;
    font-size: 0.9rem;
}

/* GridView specific overrides */
.admin-table tbody td a {
    color: #d4744f !important;
    text-decoration: none;
}

.admin-table tbody td a:hover {
    color: #e89b7d !important;
    text-decoration: underline;
}

/* Remove GridView borders */
.admin-table,
.admin-table * {
    border-collapse: collapse !important;
}

/* DetailsView styling */
.admin-table .aspNetDisabled {
    opacity: 0.6;
}

/* ============================================
   DUPLICATE DETECTION STYLING
   ============================================ */

/* Duplicate Modal */
#duplicateModal .modal-content {
    border-width: 2px;
}

#duplicateModal .modal-header {
    padding: 1rem 1.25rem;
}

#duplicateModal .modal-body {
    max-height: 60vh;
}

/* Scrollable list area */
.duplicate-scroll-list {
    max-height: 50vh;
    overflow-y: auto;
    background-color: #fff;
}

/* Duplicate items list */
#duplicateList .list-group-item {
    transition: all 0.15s ease;
    border-left: 3px solid #ffc107;
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    background-color: #fff;
}

#duplicateList .list-group-item:first-child {
    border-top: none;
}

#duplicateList .list-group-item:last-child {
    border-bottom: none;
}

#duplicateList .list-group-item:hover {
    background-color: #fff3cd;
    border-left-color: #ffb300;
}

#duplicateList .list-group-item .d-flex {
    gap: 12px;
}

/* Duplicate item thumbnail */
.duplicate-item-thumbnail {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.05);
}

.duplicate-item-thumbnail.no-image {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

/* Responsive - smaller on mobile */
@media (max-width: 768px) {
    .duplicate-item-thumbnail {
        width: 40px;
        height: 56px;
    }
    
    .duplicate-item-thumbnail.no-image {
        font-size: 1rem;
    }
}

/* Button styling for DetailsView and other controls */
.admin-card-body input[type="button"],
.admin-card-body input[type="submit"],
.admin-card-body button:not(.btn) {
    background: linear-gradient(135deg, #c55742 0%, #d4744f 100%) !important;
    border: none !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-card-body input[type="button"]:hover,
.admin-card-body input[type="submit"]:hover,
.admin-card-body button:not(.btn):hover {
    background: linear-gradient(135deg, #d4744f 0%, #e89b7d 100%) !important;
    box-shadow: 0 2px 8px rgba(197, 87, 66, 0.4) !important;
}

/* Null date styling - use same color as other text */
.null-date {
    color: #e0e0e0 !important;
    opacity: 0.5;
}

/* ==========================================
   USER IMAGES PAGE STYLES
   ========================================== */

/* Image gallery card styling */
.image-gallery-item {
    transition: box-shadow 0.2s ease;
}

.image-gallery-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.3) !important;
}

.image-gallery-item .card-img-top {
    transition: none;
}

.image-gallery-item:hover .card-img-top {
    /* No transform on hover */
}

.image-gallery-item .card {
    overflow: visible;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-gallery-item .card > a {
    overflow: hidden;
    display: block;
}

/* Upload section styling - Rust/Terracotta theme */
.upload-section {
    background: linear-gradient(135deg, rgba(197, 87, 66, 0.1) 0%, rgba(212, 116, 79, 0.1) 100%);
    border: 2px dashed rgba(197, 87, 66, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
    padding: 3rem 2rem;
}

.upload-section:hover {
    border-color: rgba(197, 87, 66, 0.6);
    background: linear-gradient(135deg, rgba(197, 87, 66, 0.15) 0%, rgba(212, 116, 79, 0.15) 100%);
    transform: translateY(-2px);
}

.upload-section.drag-over {
    border-color: rgba(197, 87, 66, 1);
    background: linear-gradient(135deg, rgba(197, 87, 66, 0.25) 0%, rgba(212, 116, 79, 0.25) 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(197, 87, 66, 0.3);
}

/* Section headers */
.section-header {
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #c55742 0%, #d4744f 100%) 1;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #c55742 0%, #d4744f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button improvements */
.btn-group .btn {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-group .btn:hover {
    /* No transform - prevents button jumping */
}

/* Rotate overlay improvements */
[id^="rotateOverlay_"] {
    backdrop-filter: blur(5px);
}

/* Upload icon animation */
.upload-icon {
    font-size: 4rem;
    transition: transform 0.3s ease;
    color: #c55742;
}

.upload-section:hover .upload-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Help text styling */
.help-text {
    background: rgba(197, 87, 66, 0.1);
    border-left: 4px solid #c55742;
    padding: 1rem;
    border-radius: 8px;
}

/* Card animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-gallery-item {
    /* Removed fadeInUp animation to reduce visual noise */
}

/* Upload Queue Modal Styles */
.upload-queue-progress {
    height: 30px;
}

.upload-log {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.1);
}

.upload-current-file {
    background: rgba(197, 87, 66, 0.1);
    border: 1px solid rgba(197, 87, 66, 0.2);
}

/* Crop loading overlay */
#cropLoadingOverlay {
    backdrop-filter: blur(5px);
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
}

/* Image card positioning */
.image-card-container {
    position: relative;
}

/* Image actions dropdown - positioned on top right of image */
.image-actions-dropdown {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.image-actions-dropdown .btn {
    background-color: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding: 0.25rem 0.5rem !important;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.image-actions-dropdown .btn:hover {
    background-color: rgba(197, 87, 66, 0.9) !important;
    border-color: rgba(197, 87, 66, 1) !important;
    transform: scale(1.05);
}

/* Primary image badge - positioned on top left */
.image-primary-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 4px;
    padding: 4px 8px;
    backdrop-filter: blur(5px);
}

.image-primary-badge i {
    font-size: 1rem;
    filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.8));
}

/* Image card dropdown styling */
.image-card-container .dropdown-menu {
    background-color: #2c1810 !important;
    border: 1px solid rgba(197, 87, 66, 0.3) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5) !important;
    min-width: 200px !important;
    z-index: 1050 !important;
}

.image-card-container .dropdown-item {
    color: #e4e4e4 !important;
    padding: 0.5rem 1rem !important;
    transition: background-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.image-card-container .dropdown-item:hover,
.image-card-container .dropdown-item:focus {
    background-color: rgba(197, 87, 66, 0.3) !important;
    color: #fff !important;
}

.image-card-container .dropdown-item.text-warning {
    color: #ffc107 !important;
}

.image-card-container .dropdown-item.text-warning:hover {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
}

.image-card-container .dropdown-item.text-danger {
    color: #dc3545 !important;
}

.image-card-container .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: #ff4d5e !important;
}

.image-card-container .dropdown-divider {
    border-color: rgba(197, 87, 66, 0.3) !important;
    margin: 0.25rem 0 !important;
}

.image-card-container .dropdown-item i {
    color: inherit !important;
}

/* Image gallery thumbnail size */
.image-gallery-thumb {
    height: 150px;
    object-fit: cover;
}

/* Rotate overlay base styles */
[id^="rotateOverlay_"] {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    border-radius: 0.375rem;
}

/* Crop modal styles */
.crop-modal-body {
    position: relative;
}

.crop-image-container {
    height: 100%;
}

#cropImage {
    max-width: 100%;
    max-height: 100%;
}

#croppedImageContainer {
    display: none;
    margin-top: 20px;
}

#croppedImage {
    max-width: 100%;
}

.crop-spinner {
    width: 3rem;
    height: 3rem;
}

/* Primary button override to match theme */
.btn-primary {
    background: linear-gradient(135deg, #c55742 0%, #d4744f 100%) !important;
    border-color: #c55742 !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #d4744f 0%, #e89b7d 100%) !important;
    border-color: #d4744f !important;
    box-shadow: 0 2px 8px rgba(197, 87, 66, 0.4) !important;
}

/* Scrollbar styling */
.admin-sidebar::-webkit-scrollbar {
    width: 8px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: #c55742;
    border-radius: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: #d4744f;
}

/* Responsive */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
}

/* ==========================================
   USER ITEM PAGE STYLES
   ========================================== */

/* Image rotation and delete overlays */
.image-card-container {
    position: relative;
}

#rotateOverlay_0,
[id^="rotateOverlay_"] {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    border-radius: 0.375rem;
    backdrop-filter: blur(5px);
}

#deleteOverlay_0,
[id^="deleteOverlay_"] {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.9);
    z-index: 10;
    border-radius: 0.375rem;
    backdrop-filter: blur(5px);
}

/* Crop modal styling */
#cropModal .modal-dialog {
    max-width: 90vw;
    margin: 1.75rem auto;
}

#cropModal .modal-body {
    max-height: 70vh;
    overflow: auto;
}

#cropImage {
    max-width: 100%;
    display: block;
}

#cropLoadingOverlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1050;
    border-radius: 0.5rem;
}

/* Upload queue modal styling */
.upload-log {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.875rem;
}

.upload-log-item {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-log-item.success {
    color: #28a745;
}

.upload-log-item.error {
    color: #dc3545;
}

.upload-log-item.info {
    color: #17a2b8;
}

/* Upload section styling for Item page - Compact version */
.upload-section {
    background: linear-gradient(135deg, rgba(197, 87, 66, 0.1) 0%, rgba(212, 116, 79, 0.1) 100%);
    border: 2px dashed rgba(197, 87, 66, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
}

.upload-section:hover {
    border-color: rgba(197, 87, 66, 0.6);
    background: linear-gradient(135deg, rgba(197, 87, 66, 0.15) 0%, rgba(212, 116, 79, 0.15) 100%);
    transform: translateY(-2px);
}

.upload-section.drag-over {
    border-color: rgba(197, 87, 66, 1);
    background: linear-gradient(135deg, rgba(197, 87, 66, 0.25) 0%, rgba(212, 116, 79, 0.25) 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(197, 87, 66, 0.3);
}

/* Upload icon animation */
.upload-icon {
    font-size: 3rem;
    transition: transform 0.3s ease;
    color: #c55742;
}

.upload-section:hover .upload-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Help text styling */
.help-text {
    background: rgba(197, 87, 66, 0.1);
    border-left: 4px solid #c55742;
    padding: 0.75rem;
    border-radius: 4px;
    max-width: 400px;
    margin: 0 auto;
}

.upload-section h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-section p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Image drop zone - compact version */
.image-drop-zone {
    background: linear-gradient(135deg, rgba(197, 87, 66, 0.05) 0%, rgba(212, 116, 79, 0.05) 100%);
    border: 2px dashed rgba(197, 87, 66, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-drop-zone:hover {
    border-color: rgba(197, 87, 66, 0.6);
    background: linear-gradient(135deg, rgba(197, 87, 66, 0.1) 0%, rgba(212, 116, 79, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 87, 66, 0.2);
}

.image-drop-zone.drag-over {
    border-color: rgba(197, 87, 66, 1);
    background: linear-gradient(135deg, rgba(197, 87, 66, 0.2) 0%, rgba(212, 116, 79, 0.2) 100%);
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(197, 87, 66, 0.3);
}

.image-drop-zone i {
    transition: transform 0.3s ease;
}

.image-drop-zone:hover i {
    transform: scale(1.1) translateY(-5px);
}

/* ==========================================
   USER ITEM PAGE - FORM STYLES
   ========================================== */

/* Modern CheckBoxList styling - Input and Label are siblings */
#chklGenres,
#chklPublishers {
    width: 100% !important;
}

#chklGenres tr,
#chklPublishers tr {
    display: block !important;
    margin-bottom: 0.25rem !important;
}

#chklGenres td,
#chklPublishers td {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

#chklGenres td:hover,
#chklPublishers td:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(4px);
    transition: all 0.2s ease;
}

#chklGenres input[type="checkbox"],
#chklPublishers input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

#chklGenres label,
#chklPublishers label {
    cursor: pointer !important;
    margin: 0 !important;
    flex: 1 !important;
}

#chklGenres tr.hidden,
#chklPublishers tr.hidden {
    display: none !important;
}

/* Search input styling */
#searchGenres:focus,
#searchPublishers:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 252, 0.25);
}

/* Force transparent background on floating labels */
.form-floating > label {
    background: none !important;
    background-color: transparent !important;
}

.form-floating > label::before,
.form-floating > label::after {
    display: none !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    background: none !important;
    background-color: transparent !important;
}

.form-floating > .form-control:focus ~ label::before,
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::before,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after {
    display: none !important;
}

.form-floating > .input-dark:focus ~ label,
.form-floating > .input-dark:not(:placeholder-shown) ~ label {
    color: rgba(255, 255, 255, 0.7) !important;
    background: none !important;
    background-color: transparent !important;
}

.form-floating > .input-dark:focus ~ label::before,
.form-floating > .input-dark:focus ~ label::after,
.form-floating > .input-dark:not(:placeholder-shown) ~ label::before,
.form-floating > .input-dark:not(:placeholder-shown) ~ label::after {
    display: none !important;
}

/* Text wrap utility */
td.text-wrap {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Collection Profile Image */
.collection-profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bs-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.collection-profile-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bs-dark);
    border: 3px solid var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bs-primary);
}

/* ==========================================
   LINK STYLES
   ========================================== */

/* White link that stays white on hover */
a.link-white,
a.link-white:link,
a.link-white:visited,
a.link-white:active {
    color: white !important;
}

a.link-white:hover,
a.link-white:focus {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ==========================================
   LIVE SEARCH DROPDOWN
   ========================================== */

.live-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c1810 0%, #3d2418 100%);
    border: 1px solid #5c3d2e;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    margin-top: 2px;
}

.live-search-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #e9ecef;
    border-bottom: 1px solid rgba(92, 61, 46, 0.3);
    transition: all 0.15s ease;
    cursor: pointer;
}

.live-search-item:hover {
    background-color: rgba(92, 61, 46, 0.3);
}

.live-search-item.active {
    background-color: #a86741;
    color: white;
}

.live-search-item.active .live-search-title {
    color: white;
}

.live-search-item.active .live-search-meta {
    color: rgba(255, 255, 255, 0.85);
}

.live-search-item:last-of-type {
    border-bottom: none;
}

.live-search-img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(92, 61, 46, 0.4);
}

.live-search-details {
    flex: 1;
    min-width: 0;
}

.live-search-title {
    font-weight: 600;
    color: #f8f9fa;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-search-meta {
    font-size: 0.875rem;
    color: #adb5bd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Inactive item styling */
.live-search-item-inactive {
    opacity: 0.6;
}

.live-search-item-inactive .live-search-img {
    filter: grayscale(50%);
}

.live-search-inactive-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
}

.live-search-item.active .live-search-inactive-badge {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.live-search-no-results {
    padding: 20px;
    text-align: center;
    color: #adb5bd;
    font-style: italic;
}

.live-search-view-all {
    display: block;
    padding: 12px 16px;
    text-align: center;
    background-color: rgba(92, 61, 46, 0.3);
    color: #d4a574;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid rgba(92, 61, 46, 0.5);
    transition: all 0.15s ease;
}

.live-search-view-all:hover {
    background-color: rgba(92, 61, 46, 0.5);
    color: #e8c9a0;
}

/* Make search input group relative for dropdown positioning */
.navbar .input-group {
    position: relative;
}

/* Mobile adjustments for live search */
@media (max-width: 768px) {
    /* Make search input group relative parent on mobile */
    .navbar .input-group {
        position: static;
    }
    
    .live-search-dropdown {
        position: fixed;
        left: 0;
        right: 0;
        top: 130px; /* Height of navbar */
        width: 100vw;
        border-radius: 0;
        border-left: none;
        border-right: none;
        max-height: 50vh;
        margin-top: 0;
    }
    
    .live-search-img {
        width: 40px;
        height: 56px;
    }
    
    .live-search-item {
        padding: 10px 12px;
    }
}

/* ============================================
   PROGRESS TRACKER - Item Completion Status
   ============================================ */

/* Progress tracker lists */
.progress-tracker-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.progress-tracker-list li {
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.progress-tracker-list li i {
    margin-right: 0.4rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Required fields - default incomplete state */
.progress-item.incomplete {
    opacity: 0.7;
}

.progress-item.incomplete span {
    color: var(--rust-light);
}

/* Required fields - complete state */
.progress-item.complete {
    opacity: 1;
}

.progress-item.complete span {
    color: var(--rust-light);
    font-weight: 500;
}

/* Optional fields - unfilled state */
.progress-item-optional {
    opacity: 0.6;
    color: var(--rust-light);
}

/* Optional fields - filled state */
.progress-item-optional.filled {
    opacity: 1;
    font-weight: 500;
}

.progress-item-optional.filled i {
    color: #20c997; /* teal/success color */
}

/* Progress bar container */
.progress-tracker-bar .progress {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.progress-tracker-bar .progress-bar {
    transition: width 0.6s ease;
    border-radius: 0.5rem;
}

/* Optional list styling */
.progress-tracker-optional li {
    font-size: 0.8rem;
    padding: 0.25rem 0;
}

/* Badge styling for counts */
.progress-tracker-optional .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    margin-left: 0.25rem;
    transition: all 0.3s ease;
}
