﻿.table-responsive::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.table-responsive {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}


/* Desktop Hover Effects */
@media (hover: hover) and (pointer: fine) {
    .extra-details {
        display: none;
        opacity: 0;
        transition: opacity 0.2s ease;
        box-shadow: inset 0 4px 8px -6px rgba(0, 0, 0, 0.1),
        inset 0 -4px 8px -6px rgba(0, 0, 0, 0.1);
    }

    .extra-details.active {
        display: table-row !important;
        opacity: 1;
    }
}

/* Mobile Touch Styles */
@media (pointer: coarse) {
    .mobile-chevron {
        display: none;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.2s ease;
        color: #6c757d;
    }

    .extra-details {
        display: none !important;
    }

    .extra-details.active {
        display: table-row !important;
        animation: slideDown 0.3s ease;
    }

    .main-row.active .mobile-chevron {
        transform: translateY(-50%) rotate(90deg);
    }

    .main-row {
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
    }

    @media (max-width: 767.98px) {
    .mobile-chevron {
        display: inline-block !important;
    }

    .table td:not(:first-child),
    .table th:not(:first-child) {
        padding-right: 1.5rem;
    }
}
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Header Styles */
.content-header {
    z-index: 18;
    background-color: rgba(0,0,0,.2);
    flex-shrink: 0;
    align-items: center;
    height: 3.75rem;
    padding: 0 1.25rem;
    display: flex;
    overflow-x: hidden;
    overflow-y: hidden; /* Prevent vertical scrollbar in header */
}

.profile-mini-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
    flex-wrap: nowrap !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

.profile-mini-info > div {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.profile-mini-info .health-container,
.profile-mini-info .energy-container,
.profile-mini-info .cash-container {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: 80px !important;
}

.health-progress,
.energy-progress {
    width: 100% !important;
    height: 20px !important;
    position: relative !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.health-progress .progress-bar {
    transition: width 0.3s ease !important;
    min-width: 0 !important;
    height: 100% !important;
    background-color: #28a745 !important;
}

.energy-progress .progress-bar {
    transition: width 0.3s ease !important;
    min-width: 0 !important;
    height: 100% !important;
    background-color: #ffc107 !important;
}

.health-text,
.energy-text {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    font-weight: bold !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.health-text span,
.energy-text span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

.cash-pill {
    width: 100% !important;
    height: 20px !important;
    background-color: rgba(40, 167, 69, 0.2) !important;
    border: 1px solid rgba(40, 167, 69, 0.4) !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

.cash-pill span {
    font-size: 11px !important;
    line-height: 1 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    color: #28a745 !important;
    font-weight: bold !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* Notoriety Styling */
.notoriety-container {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    margin-left: 0.5rem !important;
}

.notoriety-stars {
    gap: 0.125rem !important;
}

.notoriety-stars .icon {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.3) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    transition: color 0.2s ease !important;
}

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

.notoriety-stars .icon:hover {
    color: rgba(255, 193, 7, 0.7) !important;
}

.notoriety-number {
    font-size: 0.875rem !important;
}

.notoriety-number i {
    font-size: 0.875rem !important;
    color: #ffc107 !important;
}

.notoriety-number span {
    color: white !important;
    font-size: 0.875rem !important;
    min-width: 1rem !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .content-header {
        padding: 0 0.5rem;
        height: 3.5rem;
    }
    
    .profile-mini-info {
        gap: 0.5rem !important;
    }
    
    .profile-mini-info .health-container,
    .profile-mini-info .energy-container,
    .profile-mini-info .cash-container {
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        flex-basis: 60px !important;
    }
    
    .health-text,
    .energy-text {
        font-size: 10px !important;
    }
    
    .cash-pill span {
        font-size: 10px !important;
    }
    
    .notoriety-container {
        margin-left: 0.25rem !important;
    }
    
    /* Switch to number display on mobile - override Bootstrap classes */
    .notoriety-container .notoriety-stars {
        display: none !important;
    }
    
    .notoriety-container .notoriety-number.d-none {
        display: flex !important;
    }
}

@media (max-width: 576px) {
    .content-header {
        padding: 0 0.25rem;
        height: 3.25rem;
    }
    
    .profile-mini-info {
        gap: 0.375rem !important;
    }
    
    .profile-mini-info .health-container,
    .profile-mini-info .energy-container,
    .profile-mini-info .cash-container {
        width: 45px !important;
        min-width: 45px !important;
        max-width: 45px !important;
        flex-basis: 45px !important;
    }
    
    .health-progress,
    .energy-progress {
        height: 16px !important;
    }
    
    .health-text,
    .energy-text {
        font-size: 8px !important;
    }
    
    .cash-pill span {
        font-size: 8px !important;
    }
    
    .notoriety-container {
        margin-left: 0.125rem !important;
    }
}

@media (max-width: 480px) {
    .content-header {
        padding: 0 0.125rem;
    }
    
    .profile-mini-info {
        gap: 0.25rem !important;
    }
    
    .profile-mini-info .health-container,
    .profile-mini-info .energy-container,
    .profile-mini-info .cash-container {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        flex-basis: 40px !important;
    }
    
    .health-progress,
    .energy-progress {
        height: 14px !important;
    }
    
    .health-text,
    .energy-text {
        font-size: 7px !important;
    }
    
    .cash-pill span {
        font-size: 7px !important;
    }
    
    .notoriety-container {
        margin-left: 0px !important;
    }
}

/* Animations for content header */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 0.6s ease-in-out !important;
}

/* Smooth transitions for all elements */
.health-progress,
.energy-progress {
    transition: all 0.3s ease !important;
}

.health-text,
.energy-text {
    transition: all 0.2s ease !important;
}

.cash-pill {
    transition: all 0.2s ease !important;
}

/* Mission Details layout */
.mission-details.card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.mission-details .mission-header .desc { max-width: 720px; }
.mission-steps { counter-reset: step; }
.mission-step { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(12,16,20,.75); box-shadow: 0 6px 20px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.03); }
.mission-step + .mission-step { margin-top: 12px; }
.mission-step .index { width:32px; height:32px; border-radius:50%; background:#1b2025; color:#d0d6dc; display:flex; align-items:center; justify-content:center; font-weight:700; }
.mission-step.current { border-color: var(--bs-info); box-shadow: 0 0 0 2px rgba(13,110,253,.25), 0 6px 20px rgba(0,0,0,.25); }
.mission-step.locked { opacity:.9; filter: saturate(.8) brightness(.95); }
.mission-step .flavor { color:#9aa3ad; }
.mission-step .actions .btn { white-space: nowrap; }
.mission-step .step-icon { color:#8fb4ff; opacity:.9; }
.mini-progress { height:6px; background:#2b2f33; border-radius:999px; overflow:hidden; }

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .animate-pulse,
    .health-progress,
    .energy-progress,
    .health-text,
    .energy-text,
    .cash-pill,
    .notoriety-stars .icon,
    .notoriety-number {
        animation: none !important;
        transition: none !important;
    }
}

/* Custom Notification Bell */
.custom-notification-bell {
    isolation: isolate;
    position: relative;
}

.custom-notification-bell .notification-bell-button {
    position: relative;
    z-index: 2;
    min-width: 2rem;
    height: 2rem;
    color: var(--bs-emphasis-color);
    border-radius: 0.375rem;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    background: transparent;
    border: none;
    padding: 0;
}

.custom-notification-bell .notification-bell-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-notification-bell .notification-bell-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Background color indicator - only when there are unread notifications */
.custom-notification-bell.has-unread .notification-bell-button {
    background-color: #ffc107 !important; /* Bootstrap warning yellow */
    color: #000 !important; /* Black text for better contrast */
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

/* Profile Display Component */

/* Profile Display Component Styles */
.profile-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Default / normal images (48px max) */
.profile-image-default,
.profile-image-avatar {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Compact images (32px max) */
.profile-image-compact {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Card images (64px max) */
.profile-image-card {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

/* Compact layout container */
.profile-display-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    width: 100%;
}

.profile-list-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.profile-list-item .profile-image-list {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-weight: 500;
    color: var(--bs-body-color);
}

.profile-location {
    font-size: 0.875rem;
    color: var(--bs-secondary);
}

.profile-status.online {
    color: var(--bs-success);
    font-size: 0.875rem;
}

.profile-status.online i {
    font-size: 0.5rem;
    margin-right: 0.25rem;
}

.profile-info {
    flex: 1;
}

.profile-details {
    flex: 1;
}

/* Dark theme adjustments for organization page */
.table .profile-list-item {
    background: transparent;
}

.table .profile-list-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.table .profile-name {
    color: #fff;
}

.table .profile-location {
    color: rgba(255, 255, 255, 0.7);
}

/* Table-specific profile display */
.table-profile-display {
    margin: 0;
    padding: 0;
}

.table-profile-display .profile-list-item {
    padding: 0;
    margin: 0;
}

.table-profile-display .profile-image-list {
    width: 35px;
    height: 35px;
} 