﻿/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
    color: #000133 !important;
}

a:visited {
    color: #000133;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


.truncate-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Number of lines to show initially */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.expanded {
    -webkit-line-clamp: unset;
}

.toggle-btn {
    color: #0d6efd;
    cursor: pointer;
    user-select: none;
    display: inline-block;
    margin-top: 8px;
}

    .toggle-btn:hover {
        text-decoration: underline;
    }

.tooltip-wide .tooltip-inner {
    max-width: 700px; /* Adjust this value as needed */
    width: 700px; /* For a fixed width */
    text-align: left; /* Left-align text for better readability */
}


.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.comment-actions {
    display: flex;
    gap: 0.25rem;
}

    .comment-actions .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

.comment-edit-form textarea {
    resize: vertical;
    min-height: 80px;
}

.comment-text {
    white-space: pre-line;
    word-wrap: break-word;
}

.comment-card:hover .comment-actions {
    opacity: 1;
}

.comment-actions {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comment-actions {
        align-self: flex-end;
    }
}

/* Fix for left column extending below footer */

/* Option 1: Add max-height and scrolling to the left column */
.col-md-4 {
    max-height: calc(100vh - 200px); /* Adjust 200px based on your header/footer height */
    overflow-y: auto;
    position: sticky;
    top: 80px; /* Same as your right panel */
}

/* Option 2: Alternative - constrain the accordion container specifically */
#frameworkSectionsAccordion {
    max-height: calc(100vh - 250px); /* Adjust based on header + footer height */
    overflow-y: auto;
}

/* Option 3: If you prefer, add padding to the main content area to prevent footer overlap */
main#main {
    padding-bottom: 100px; /* Add space before footer */
}

/* Ensure footer stays at bottom and doesn't overlap content */
#footer {
    margin-top: auto;
}

/* Smooth scrolling for the left panel */
.col-md-4::-webkit-scrollbar {
    width: 8px;
}

.col-md-4::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.col-md-4::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    .col-md-4::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }

/* Add this to your existing styles */
.left-navigation-sticky {
    position: sticky;
    top: 80px; /* Adjust based on your fixed header height */
    max-height: calc(100vh - 100px); /* Viewport height minus header/margins */
    overflow-y: auto;
    padding-right: 15px; /* Space for scrollbar if needed */
}

    /* Optional: Custom scrollbar styling */
    .left-navigation-sticky::-webkit-scrollbar {
        width: 8px;
    }

    .left-navigation-sticky::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .left-navigation-sticky::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }


/* Add this to eliminate the gap above footer */
.main-page-container {
    min-height: calc(100vh - 140px); /* Adjust 140px based on your header + footer height */
}

/* Alternative flexbox approach (more robust) */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content-flex {
    flex: 1;
}