/* app/static/css/style.css */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #0d1117 !important; /* A darker github-like background */
}

.card {
    background-color: #161b22 !important; /* A darker card background */
    border: 1px solid #30363d !important;
}

.card-header {
    background-color: rgba(33, 37, 41, 0.5) !important;
    border-bottom: 1px solid #30363d !important;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #0d6efd;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.form-control, .form-select {
    background-color: #0d1117;
    border: 1px solid #30363d;
    color: #c9d1d9;
}

.form-control:focus, .form-select:focus {
    background-color: #0d1117;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    color: #c9d1d9;
}

.btn-primary {
    --bs-btn-bg: #1f6feb;
    --bs-btn-border-color: #1f6feb;
    --bs-btn-hover-bg: #1159c8;
    --bs-btn-hover-border-color: #1159c8;
}

/* Flash message styling */
.alert {
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Add these styles to the end of app/static/css/style.css */

/* Make the user list scrollable */
.user-list-container {
    max-height: 450px; /* Adjust height as needed */
    overflow-y: auto;
}

/* Style for the selected user in the list */
.list-group-item.active {
    background-color: rgba(31, 111, 235, 0.2);
    border-color: #1f6feb;
    color: #c9d1d9;
}

/* Add these styles to the end of app/static/css/style.css */

.image-evidence-card img {
    width: 100%;
    height: 150px; /* Or adjust to your preferred height */
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid #30363d;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.image-evidence-card img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(31, 111, 235, 0.4);
    z-index: 10;
    position: relative;
}

.image-evidence-card .badge {
    border: 1px solid currentColor;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(31, 111, 235, 0.3) !important;
    transition: all 0.2s ease-in-out;
}

/* Add this style for the new thumbnails in the recent activity table */

.activity-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.375rem; /* Bootstrap's default border-radius */
    border: 1px solid #30363d;
    transition: transform 0.2s ease-in-out;
}

.activity-thumbnail:hover {
    transform: scale(1.1);
}

/* Add these styles to the end of your CSS file */

.use-case-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid #444;
    transition: all 0.2s ease-in-out;
}

.use-case-card img:hover {
    transform: scale(1.05);
    border-color: #0d6efd;
}

.accordion-body {
    background-color: #0d1117; /* A slightly darker bg for contrast */
}

.accordion-button:not(.collapsed) {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.125);
}

/* Add these new styles to the end of your CSS file */

/* Grid for the detected people cards */
.detections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    max-height: 260px; /* Give a max height for scrolling */
    overflow-y: auto;
    padding-right: 5px; /* space for scrollbar */
}

/* Individual card for each person detected */
.person-card {
    background-color: #0d1117;
    border: 1px solid #30363d;
    padding: 0.75rem;
    border-radius: 0.375rem;
}

/* List of PPE items */
.ppe-list {
    font-size: 0.8rem;
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ppe-list i {
    font-size: 0.9rem; /* Make icons slightly larger than text */
}

.use-case-card img {
    height: 150px; /* Increase height for a better view */
}
/* Add these styles to the end of your file */

.ptw-list-container {
    overflow-y: auto;
}

.ptw-list-item.active {
    background-color: rgba(31, 111, 235, 0.2);
    border-color: #1f6feb;
    color: #c9d1d9;
    border-radius: 0.375rem;
}

.ptw-list-item.active .bi-chevron-right {
    transform: scale(1.2);
    color: #c9d1d9;
}

.use-case-container {
    max-height: 500px; /* Adjust as needed */
    overflow-y: auto;
    padding-right: 10px; /* space for scrollbar */
}

/* For the clickable chart */
.chart-clickable:hover {
    cursor: pointer;
}

/* For the scrollable violators list */
.scrollable-list {
    overflow-y: auto;
}
.scrollable-list .list-group-item-action:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
/* Add these new rules to your style.css file */

.auth-bg-section {
    position: relative; /* This is crucial for positioning the video and overlay */
    overflow: hidden;
}

/* The container for the particle animation */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Places it in the background */
}

/* The container for the logo and text */
.auth-content {
    position: relative;
    z-index: 1; /* Places it ON TOP of the animation */
    text-align: center;
    padding: 2rem;
}
/* The video itself */
.auth-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2; /* Puts it all the way in the back */
}

/* A dark, semi-transparent overlay on top of the video */
.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 17, 23, 0.7); /* Adjust opacity (0.7) as needed */
    z-index: -1; /* Puts it between the video and the content */
}

/* The container for the logo and text */
.auth-content {
    position: relative;
    z-index: 1; /* Places it ON TOP of the video and overlay */
    text-align: center;
    padding: 2rem;
    color: white;
}
/* Add these new styles for the collapsible sidebar */

.main-wrapper {
    display: flex;
}

.sidebar {
    width: 280px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transition: all 0.3s ease;
    z-index: 1000;
}

.main-content {
    margin-left: 280px;
    transition: all 0.3s ease;
    padding: 1rem; /* Add some default padding */
}

.sidebar-header {
    min-height: 60px; /* Give header a fixed height */
}

.sidebar-brand .sidebar-logo-text {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sidebar .nav-link .link-text, .sidebar .dropdown strong.link-text {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* === COLLAPSED STATE === */

.main-wrapper.sidebar-collapsed .sidebar {
    width: 80px; /* Collapsed width */
}

.main-wrapper.sidebar-collapsed .main-content {
    margin-left: 80px; /* Adjust main content margin */
}

.main-wrapper.sidebar-collapsed .sidebar-brand .sidebar-logo-text {
    opacity: 0;
    pointer-events: none; /* Make text unclickable when hidden */
}

.main-wrapper.sidebar-collapsed .sidebar .nav-link .link-text,
.main-wrapper.sidebar-collapsed .sidebar .dropdown strong.link-text {
    opacity: 0;
    pointer-events: none;
    width: 0;
    display: inline-block; /* Prevents text from wrapping on collapse */
    white-space: nowrap;
}

.main-wrapper.sidebar-collapsed .sidebar-header {
    justify-content: center !important; /* Center the toggle button */
}

.main-wrapper.sidebar-collapsed .sidebar-header .sidebar-brand {
    display: none; /* Hide the brand text completely when collapsed */
}

/* Ensure icons are centered when collapsed */
.main-wrapper.sidebar-collapsed .sidebar .nav-link {
    text-align: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.main-wrapper.sidebar-collapsed .sidebar .nav-link i {
    margin-right: 0 !important;
    font-size: 1.5rem;
}

.main-wrapper.sidebar-collapsed .dropdown {
    text-align: center;
}
.main-wrapper.sidebar-collapsed .dropdown-toggle::after {
    display: none; /* Hide dropdown arrow when collapsed */
}