/* #region General Site CSS Stuff */

/* Necessary to ensure footer stays at bottom */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Make the main content area grow to fill available space */
#MainContainer {
    flex: 1 0 auto;
}

/* Ensure the footer stays at bottom */
#footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0px;
    position: inherit;
}

header {
    position: relative;
    top: 0;
    width: 100%;
}

html > body header {
    width: 100%;
}

.navbar-overhang {
    position: absolute;
    top: 14px;
    transform: translateY(-10%);
}
   
.siteNameBig, .siteNameSmall > a {
    padding-left: 120px;
}

/* Svg Container (put Svg files inside a #container for scaling */
svg, #container {
    height: 100%;
    width: 100%;
}

/* Svg Nav Bar Small Logo */
.logo {
    height: 72px;
}

/* SVG Nav Bar 'Name' Logo */
.nbLogo {
    height: 18px;
}

/* cloudlg */
.cloudlg {
    height:140px;
}

/* cloudbannersm */
.cloudbannersm {
    height: 30px;
}

/* cloudiconsm */
.cloudiconsm {
    height: 14px;
}

/* cloudsm */
.cloudsm {
    height: 30px;
}

/* Svg Footer Logo */
.footer-logo {
    height: 20px;
}

.footer-spacing {
    margin-bottom: 50px;
}

.fw-bold { 
    font-weight: 500;
}

/* No Radius Right or Left */
.no-right-radius {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.no-left-radius {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* List Word Break */
@media (max-width: 767.98px) {
    .list-group-item span.flex-grow-1 {
        word-break: break-word;
    }
}

/* make everything a borderbox */
* {
    box-sizing: border-box;
}

/* General input and select focus styles */
page-item:focus,
page-link:focus,
input:focus,
select:focus,
textarea:focus,
.form-control:focus, /* Targets standard Bootstrap form controls */
.custom-select:focus /* Targets Bootstrap custom select elements */ {
    outline: none !important;
    box-shadow: none !important;
    border-color: initial !important; /* Resets the border color to its default state, removing any blue tint */
    background-color: initial !important;
}

/* Adjust form styling within nav-item to prevent misalignment */
.navbar-nav .nav-item form.form-inline {
    margin: 0; /* Remove any default margin */
    padding: 0; /* Remove any default padding */
    display: block; /* Forms are block by default, but confirm */
    /* You might need vertical-align depending on specific issue */
    vertical-align: middle;
}

    /* Further adjustments to the button within the form if needed */
    .navbar-nav .nav-item form.form-inline .btn.nav-link {
        /* Ensure no extra margin/padding on the button itself that deviates from regular nav-links */
        padding-top: .3rem; /* Match Bootstrap's default nav-link padding */
        padding-bottom: .9rem; /* Match Bootstrap's default nav-link padding */
        /* Check horizontal padding too if needed */
    }

#pdf-viewer-container {
    width: 100%; /* Use 100% width */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Set Image pointer and border transition */
img {
    cursor: pointer;
    transition: border 0.3s ease-in-out;
}

/* #endregion General Site CSS Stuff */

/* #region More Links System CSS */

/* Link styling */
.link-item {
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #495057 !important;
    border: 1px solid transparent;
}

.link-item:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #0d6efd !important;
    text-decoration: none;
    transform: translateX(2px);
}

.link-item:hover .bi-eye {
    color: #0d6efd !important;
}

/* Fish-Smart Card styling */
.fish-smart-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--card-bg, #DCEDFF) !important;
}

.fish-smart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fish-smart-card-header {
    background-color: var(--card-header-bg, #A3CBF6) !important;
    border-bottom: none;
    font-weight: 500;
    color: #424143 !important; /* Use dark gray/black for good contrast against light blue background */
}

.fish-smart-card-body {
    background-color: var(--card-body-bg, #F8F9FA) !important;
    color: #424143 !important; /* Use dark gray/black for good contrast against light background */
}

/* Admin buttons responsive spacing */
.admin-buttons-container {
    gap: 0.5rem;
}

/* Table hover effects */
.table tbody tr:hover {
    background-color: rgba(0,0,0,0.02);
}

/* Button group styling */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

/* Form styling */
.form-check {
    padding-top: 0.5rem;
}

/* Badge links */
.badge.text-decoration-none:hover {
    opacity: 0.8;
}

/* URL text styling */
code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    word-break: break-all;
}

/* Form styling improvements */
.form-text {
    font-size: 0.875em;
}

/* Select dropdown styling */
.form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* External link button styling */
.btn-outline-primary:hover .fa-external-link-alt {
    transform: scale(1.1);
}

/* Ensure equal height columns */
.card.h-100 {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .link-item {
        padding: 10px 8px;
        font-size: 0.95em;
    }
    
    .card-header h5 {
        font-size: 1.1em;
    }
}

@media (max-width: 576px) {
    .admin-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .admin-buttons-container .btn {
        width: auto;
        min-width: 150px;
    }
}

/* #endregion More Links System CSS */

/* #region More Links Responsive Layout */

/* Desktop/Tablet: Column-based layout */
.masonry-columns-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.masonry-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Mobile: Linear layout (hidden on desktop/tablet) */
.masonry-mobile-linear {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.masonry-item {
    width: 100%;
    margin-bottom: 0;
}

.masonry-item .card {
    height: auto;
    display: flex;
    flex-direction: column;
}

.masonry-item .card-body {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
}

/* Tablet: 2 columns */
@media (max-width: 1200px) {
    .masonry-columns-desktop {
        grid-template-columns: 1fr 1fr;
    }
    
    .masonry-column {
        gap: 1.25rem;
    }
    
    .masonry-item .card-body {
        max-height: 350px;
    }
}

/* Mobile: Switch to linear layout maintaining sort order */
@media (max-width: 768px) {
    .masonry-columns-desktop {
        display: none;
    }
    
    .masonry-mobile-linear {
        display: flex;
    }
    
    .masonry-item .card-body {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .masonry-mobile-linear {
        gap: 0.75rem;
    }
    
    .masonry-item .card-body {
        max-height: 250px;
    }
}

/* Custom scrollbar styling for better UX */
.masonry-item .card-body::-webkit-scrollbar {
    width: 6px;
}

.masonry-item .card-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.masonry-item .card-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.masonry-item .card-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Firefox scrollbar styling */
.masonry-item .card-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
}

/* #endregion More Links Responsive Layout */



