/* -app.css */
/* ============================================
   MATCHKEYZ APP STYLES
   ============================================ */

/* ============================================
   1. BASE STYLES
   ============================================ */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

main {
    margin: 12px;
}

h1:focus {
    outline: none;
}

/* ============================================
   2. APP BRANDING
   ============================================ */
.app-brand {
    overflow: visible;
}

.app-brand-logo img {
    margin-top: 22px;
    margin-bottom: 10px;
    max-height: 42px !important;
    width: auto;
    overflow: visible;
}

/* Hide the search box until we get that part fully ready */
#searchbox_container {
    display: none !important;
}

/* ============================================
   3. NAVIGATION & LAYOUT
   ============================================ */
ul.navbar-nav li.nav-item {
    margin-left: 15px;
}

/* So that the modal is higher (at 1001) */
.layout-content-navbar .layout-navbar {
    z-index: 999 !important;
}

/* ============================================
   4. FORMS & INPUTS
   ============================================ */
.form-h1 {
    font-size: 1.5rem;
    font-weight: normal;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

    .form-group textarea.form-control {
        min-height: 100px;
    }

.form-check-label {
    padding-left: 10px;
}

/* To give the checkbox-list proper spacing */
.form-check-list-container .form-check {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* To ensure that checkboxes and radio buttons look consistent (even in modals) */
.form-group .form-check-input {
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
}

/* When the label and Input are on the same line/row */
.col-form-label {
    font-weight: 500;
    text-align: right;
}

/* On small screens, align labels to the left when they stack */
@media (max-width: 575.98px) {
    .col-form-label {
        text-align: left;
    }
}

/* Default form group row - center items vertically (good for single-line inputs) */
.row.form-group-row {
    display: flex;
    align-items: center;
}

    /* For rows containing textareas - align items to top instead of center */
    .row.form-group-row:has(textarea),
    .row.form-group-row.has-textarea {
        align-items: flex-start;
    }

        /* Additional refinement: ensure proper spacing for top-aligned labels */
        .row.form-group-row:has(textarea) .col-form-label,
        .row.form-group-row.has-textarea .col-form-label {
            padding-top: 0.375rem; /* Match the textarea's top padding */
            padding-bottom: 0;
        }

    /* For stacked layouts (when label is on top) */
    .row.form-group-row.stacked-title {
        flex-direction: column;
        align-items: flex-start;
    }

    /* For long text content in view mode (read-only displays) */
    .row.form-group-row:has(.form-control-plaintext) .col-form-label,
    .row.form-group-row.has-long-text .col-form-label {
        align-self: flex-start;
        padding-top: 0.375rem;
    }

/* The core.css is doing some funky stuff which is causing misalignment */
.view-form .col-form-label {
    padding-top: 0;
    padding-bottom: 0;
}

.modal-form input[type=text],
.modal-form textarea {
    width: 100%;
    max-width: 600px;
}

/* Limit width for date, time, and number inputs */
input[type="date"],
input[type="time"],
input[type="number"] {
    max-width: 200px;
    width: 100%;
}

/* Adjust width for smaller screens */
@media (max-width: 576px) {
    input[type="date"],
    input[type="time"],
    input[type="number"] {
        max-width: 100%;
    }
}

/* ============================================
   5. VALIDATION & ALERTS
   ============================================ */
.validation-message {
    font-size: 12px !important;
    font-family: system-ui;
}

.alert-danger {
    color: darkred;
}

/* Forms ValidationMessages (for field & misc validation) */
.alert-validation {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Custom styles for MajorErrorAlert component */
.alert-major {
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    background-color: #fff;
}

.alert-major-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffc107;
}

.alert-major p {
    font-size: 1.25rem;
    color: #343a40;
}

.alert-major-heading > .alert-icon {
    color: #ffc107;
    margin-right: 0.75rem;
}

.alert-major button {
    font-weight: 600;
}

.alert-bar {
    font-size: 1.25rem;
    font-weight: bold;
}

    .alert-bar > .alert-icon {
        font-size: 1.5rem;
        margin-right: .75rem;
    }

    .alert-bar > .text-muted {
        font-size: 1.25rem;
    }

/* Custom style for Parsley error messages to use Bootstrap danger color */
.parsley-errors-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

    .parsley-errors-list li {
        color: #dc3545;
        font-size: 0.875em;
    }

/* ============================================
   6. BLAZOR ERROR HANDLING
   ============================================ */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 10.25rem 0.7rem 21.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ============================================
   7. INTERACTIVE ELEMENTS
   ============================================ */
/* for places, like DE sections and field titles, which are clickable for onclick and oncontextmenu to show options */
.clickable-menu {
    cursor: pointer;
}

.contextmenu-opener {
    cursor: context-menu !important;
}

.field-edit-icon {
    opacity: 0.10;
}

    .field-edit-icon:hover {
        opacity: 1;
    }

.field-edit-link,
.field-title-edit-link,
.section-edit-link {
    cursor: pointer;
}

    .field-edit-link:hover,
    .field-title-edit-link:hover,
    .section-edit-link:hover {
        color: #696cff
    }

.field-label-clickable {
    cursor: pointer;
    user-select: none;
}

    .field-label-clickable:hover {
        text-decoration: underline;
    }

/* ============================================
   8. ICONS & LINKS
   ============================================ */
.main-icon-link {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px !important;
    margin: 0;
}

.icon-link {
    color: #017BFE;
    font-size: 20px;
}

    .icon-link:hover {
        color: #017BFE;
    }

.required-field-indicator {
    color: #D32F2F;
    margin-left: 4px;
    font-weight: bold;
}

/* ============================================
   9. DROPDOWNS & SELECTS
   ============================================ */
.my-groups-select {
    max-width: 200px;
}

.dropdown {
    width: 100%;
    max-width: 600px;
}

/* for the number drop down */
.form-rec-num-select {
    max-width: 200px;
}

.dropdown-menu .dropdown-item i {
    margin-right: 0.5rem;
}

/* For the Radzen Dropdown to use the "faux-optGroup" */
.dropdown-group-header {
    font-weight: bold;
    color: #333;
    background-color: #f7f7f7;
}

.dropdown-item {
    padding-left: 20px;
}

.form-select-lg .rz-dropdown {
    font-size: 1.25rem;
    padding: .5rem 1rem;
}

.rec-options-menu-wrapper .dropdown-toggle::after {
    display: none;
}

.field-context-dropdown {
    position: fixed !important;
    z-index: 1050 !important;
}

/* Use flex to ensure the select and the icon appear on the same line */
.list-long-container {
    display: flex;
    align-items: center;
    width: 100%;
}

    /* Let the Select2 container expand to fill available space */
    .list-long-container select,
    .list-long-container .select2-container {
        flex: 1;
        width: 100% !important;
        min-width: 0;
    }

/* Add spacing so the icon isn't touching the Select2 */
.list-long-view-all-btn {
    margin-left: 0.5rem;
}

/* ============================================
   10. RADZEN COMPONENT STYLES
   ============================================ */
.rz-textbox,
.rz-textarea {
    width: 100%;
    max-width: 600px;
}

/* Style for the context menu container */
.rz-context-menu {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}

    /* Style for the menu list */
    .rz-context-menu .rz-menu {
        margin: 0;
        padding: 0;
    }

    /* Style for individual menu items */
    .rz-context-menu .rz-navigation-item {
        margin: 0;
        padding: 8px 16px;
    }

        /* Hover state for menu items */
        .rz-context-menu .rz-navigation-item-wrapper:hover,
        .rz-context-menu .rz-navigation-item-link:hover,
        .rz-context-menu .rz-navigation-item:hover {
            background-color: #f0f0f0;
            cursor: pointer;
            color: #696cff !important;
        }

    .rz-context-menu .rz-navigation-item-text {
        font-weight: 500;
        padding: 10px;
    }

    .rz-context-menu .rz-navigation-item:hover .rz-navigation-item-text {
        color: #696cff !important;
    }

.rz-navigation-item-wrapper,
.rz-navigation-item-link,
.rz-navigation-item-text {
    transition: none;
}

/* Override Radzen modal header to use Sneat theme's Bootstrap 5 modal-header styles */
.rz-dialog .rz-dialog-header {
    padding: var(--bs-modal-header-padding-y, 1rem) var(--bs-modal-header-padding-x, 1.5rem);
    background-color: var(--bs-modal-header-bg, var(--bs-white)) !important;
    border-bottom: var(--bs-border-width, 1px) solid var(--bs-border-color) !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

/* Style the Radzen dialog title text exactly like Sneat's modal-title */
.rz-dialog .rz-dialog-title {
    margin: 0;
    font-size: var(--bs-modal-title-font-size, 1.25rem);
    font-weight: var(--bs-modal-title-font-weight, 500);
    line-height: var(--bs-modal-title-line-height, 1.5);
    color: var(--bs-body-color) !important;
}

/* Make the close icon match the Sneat close-button style */
.rz-dialog .rz-dialog-header .rz-dialog-close {
    color: var(--bs-body-color) !important;
    font-size: var(--bs-modal-title-font-size, 1.25rem);
    line-height: var(--bs-modal-title-line-height, 1.5);
}

.rz-dialog-content .rec-options-menu-wrapper {
    position: absolute;
    right: 1rem;
    top: 4rem;
    z-index: 1;
}

    /* Make the icon larger */
    .rz-dialog-content .rec-options-menu-wrapper .dropdown-toggle > i {
        font-size: 1.25rem;
    }

/* ============================================
   11. CARDS & PANELS
   ============================================ */
.card {
    margin-bottom: 1rem;
}

.card-header {
    font-weight: 100;
    font-size: 1.25rem;
}

    .card-header .card-hint {
        font-size: 0.875rem;
        color: #6c757d;
        line-height: 1.4;
        margin-top: 0.25rem;
        margin-bottom: 0;
        opacity: 0.8;
    }

.form-card {
    margin-bottom: 20px;
}

.form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   12. DATA DISPLAY
   ============================================ */
.data-display {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.label-display {
    color: #777;
    font-size: 0.9em;
}

.display-value.empty-value {
    color: #6c757d;
}

/* de = Data-Explorer */
.de-navbar {
    margin-bottom: 20px;
}

/* ============================================
   13. FIELD VALUE EDIT
   ============================================ */
#FormForFieldValueEdit {
    margin: 0 1em;
}

    #FormForFieldValueEdit .form-label {
        font-size: 1rem;
    }

    #FormForFieldValueEdit textarea {
        min-height: 200px;
    }

/* ============================================
   14. LOADING SPINNER
   ============================================ */
.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.spinner-container-small {
    height: auto;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 2s linear infinite;
}

.spinner-small {
    border-width: 2px;
    width: 20px;
    height: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   15. SIDEBAR SUBMENU
   ============================================ */
/* Styling to match Sneat's look */
.menu-link {
    padding: 0.625rem 1rem;
    color: var(--bs-body-color);
    text-decoration: none;
}

    .menu-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

/* Submenu styling */
/* Reset padding and margins to match main menu items */
.menu-inner .menu-sub {
    padding-left: 1rem !important;
    margin-left: 0 !important;
    list-style: none !important;
}

    /* Ensure menu links in submenus have consistent styling */
    .menu-inner .menu-sub .menu-link {
        padding-left: 0.5rem !important;
    }

        /* Remove any pseudo-element bullet from menu-link in a submenu */
        .menu-inner .menu-sub .menu-link::before {
            content: none !important;
            display: none !important;
            background-image: none !important;
        }

    /* Turn off default list styling just in case */
    .menu-inner .menu-sub .menu-item {
        list-style: none !important;
    }

/* ============================================
   16. FILE UPLOAD
   ============================================ */
.file-upload-wrapper {
    position: relative;
}

.uploaded-file-container {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
}

.uploaded-badge {
    display: inline-flex;
    align-items: center;
    background-color: #198754;
    color: white;
    border-radius: 0.25rem;
    padding: 0.35em 0.65em;
    font-size: 0.875em;
}

    .uploaded-badge i {
        margin-right: 5px;
    }

.file-name {
    font-weight: 500;
    margin-right: 10px;
    color: #212529;
}

.re-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    transition: all 0.2s ease;
}

    .re-upload-btn:hover {
        background-color: rgba(13, 110, 253, 0.2);
        color: #0a58ca;
    }

/* ============================================
   17. PHOTO UPLOAD
   ============================================ */
.image-container {
    cursor: pointer;
}

/* Common styles for all photo wrappers */
.photo-wrapper {
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.photo-icon {
    font-size: 4rem;
    color: #adb5bd;
}

/* For the icon button on the bottom right side */
.photo-upload-btn {
    position: absolute;
    bottom: 8px;
    right: -5px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid white;
}

/* Profile photo styles */
.photo-profile-wrapper {
    width: 150px;
}

.photo-profile-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

/* Banner photo styles */
.photo-banner-image-container {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

@media (max-width: 768px) {
    .photo-banner-image-container {
        height: 160px;
    }
}

/* Preview image styles */
.photo-preview,
.page-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner-container {
    margin-bottom: 20px;
}

.img-hidden {
    display: none;
}

/* Upload overlay */
.upload-overlay {
    opacity: 0;
    background-color: rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.photo-profile-image-container:hover .upload-overlay,
.photo-banner-image-container:hover .upload-overlay {
    opacity: 1;
}

/* Button styles */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   18. IMAGE CROPPER
   ============================================ */
/* Crop modal styles */
.img-container {
    height: calc(80vh - 120px);
    max-height: 700px;
    overflow: hidden;
    background-color: #f0f0f0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-to-crop {
    display: block;
    max-width: 100%;
}

/* Make cropper canvas fill available space */
.cropper-container {
    min-width: 90%;
    min-height: 90%;
}

/* Make the cropper overlay more visible */
.cropper-view-box {
    outline: 1px solid #fff;
    outline-color: rgba(255, 255, 255, 0.8);
}

.profile-crop .cropper-view-box,
.profile-crop .cropper-face {
    border-radius: 50%;
}

.cropper-line,
.cropper-point {
    background-color: #0d6efd;
}

/* Responsive styles */
@media (max-width: 768px) {
    .img-container {
        height: calc(70vh - 100px);
    }
}

/* ============================================
   19. PASSWORD CONFIRMATION
   ============================================ */
.confirm-password-wrapper {
    margin-top: .5rem;
}

/* ============================================
   20. SELECT2 STYLES
   ============================================ */
/* Make Select2's single-selection span look just like Sneat inputs */
.select2-container--bootstrap-5
.select2-selection--single.form-select {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    padding-block-start: 7px !important;
    padding-block-end: 7px !important;
    padding-inline-start: 14px !important;
    padding-inline-end: 14px !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 15px !important;
    line-height: 22.95px !important;
    color: rgb(105, 122, 141) !important;
    background-color: rgb(255, 255, 255) !important;
    background-clip: padding-box !important;
    border-style: solid !important;
    border-width: 0.8px !important;
    border-color: rgb(110, 113, 253) !important;
    border-radius: 6px !important;
    box-shadow: rgba(105, 108, 255, 0.08) 0 0 3.9px 0.78px !important;
    appearance: none !important;
}

/* ============================================
   21. DIRECTORY BROWSER
   TODO: This should probably be broken up into its own CSS file for clarity
   ============================================ */
.hero-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(to right, #0077B5, #0A66C2);
    color: white;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 15px;
    margin-bottom: 60px;
}

@media (max-width: 991.98px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.grid-item {
    display: flex;
}

.team-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .team-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

/* Make profile photos round like LinkedIn */
.card-img-container {
    width: 120px;
    height: 120px;
    margin: 20px auto;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 50%;
}

.team-card:hover .card-img {
    transform: scale(1.03);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #0077B5, #0A66C2);
    color: white;
    border-radius: 50%;
}

.initials {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Adjust card content padding for better LinkedIn-like appearance */
.card-content {
    padding: 15px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Center align name and position for LinkedIn-like style */
.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: #333;
    text-align: center;
}

/* LinkedIn-style tagline */
.member-position {
    font-size: 0.95rem;
    color: #666666;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: center;
}

/* Push member-section down by adding margin-top auto */
.member-section {
    margin-top: auto;
    margin-bottom: 15px;
    flex-grow: 0;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

/* Ensure the About section takes up appropriate space */
.truncated-text {
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
    min-height: 2.8em;
}

    /* Make truncated text hoverable WITHOUT dotted underline */
    .truncated-text.hover-trigger {
        cursor: pointer;
        transition: color 0.2s ease;
        position: relative;
        z-index: 2;
        text-decoration: none !important;
    }

        .truncated-text.hover-trigger:hover {
            color: #0077B5;
            text-decoration: none !important;
        }

.member-tags {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
    gap: 6px;
}

.member-tag {
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f3f6f8;
    color: #0077B5;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Keep member-social at the very bottom */
.member-social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    padding-top: 15px;
    position: relative;
    z-index: 2;
}

/* Group social links on the left */
.social-links {
    display: flex;
    gap: 10px;
}

/* Group offers/requests icons on the right */
.offers-requests-icons {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f6f8;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

    .social-btn:hover {
        background-color: #0077B5;
        color: white;
    }

/* Style offer and request icons with cute peachy color */
.offer-icon,
.request-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
    background-color: #ffccbc;
    color: #bf360c;
}

    .offer-icon:hover,
    .request-icon:hover {
        background-color: #ffab91;
        color: #d84315;
        transform: scale(1.1);
    }

    .offer-icon i,
    .request-icon i {
        font-size: 0.9rem;
    }

/* For the special way of making the whole card clickable */
.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    white-space: nowrap;
    overflow: hidden;
}

/* Featured styles - kept for compatibility */
.featured .team-card {
    border: 1px solid #0077B5;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #0077B5;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

/* Make sure interactive elements are above the card-link overlay */
.hover-trigger,
.offer-icon,
.request-icon,
.social-btn {
    position: relative;
    z-index: 2;
}

/* Make touch targets larger on mobile */
@media (max-width: 768px) {
    .offer-icon,
    .request-icon {
        width: 40px;
        height: 40px;
    }

    .truncated-text.hover-trigger {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Custom hover cards */
.custom-hover-card {
    max-width: 350px;
    padding: 16px;
    padding-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    border: 1px solid #e0e0e0;
    z-index: 9999 !important;
    position: relative;
}

    /* Update border colors to match new icon colors */
    .custom-hover-card.offers-card {
        border-left: 4px solid #ffab91;
    }

    .custom-hover-card.requests-card {
        border-left: 4px solid #ffab91;
    }

    .custom-hover-card.about-card {
        border-left: 4px solid #0077B5;
    }

.custom-hover-card-header {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.offers-card .custom-hover-card-header,
.requests-card .custom-hover-card-header {
    color: #bf360c;
}

.about-card .custom-hover-card-header {
    color: #0077B5;
}

/* Close button for touch devices */
.custom-hover-card-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .custom-hover-card-close:hover {
        color: #333;
    }

/* ============================================
   22. RESPONSIVE UTILITIES
   ============================================ */
/* Was previously suggested to use 768px but Sneat uses 576 and Radzen uses 1024 */
@media (min-width: 1024px) {
    .right-align-md-up {
        text-align: right;
    }
}