/* Main Styles for RoundupHero */

/* ============================================
   LAYOUT STYLES
   ============================================ */

/* Sticky footer setup */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* Make main content grow to fill available space */
main {
    flex: 1 0 auto;
}

/* Footer stays at bottom */
.footer {
    flex-shrink: 0;
    border-top: 1px solid #dee2e6;
}

/* Sticky bottom container for action buttons */
.sticky-bottom-container {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.continue-btn {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Sticky bottom container for publish page - always in view */
.sticky-bottom-container-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   MY ACCOUNT PAGE STYLES
   ============================================ */


/* Hide LinkedIn info by default (shown only in edit mode) */
.linkedin-info {
    display: none;
}

/* Account page specific styles*/
.account-container {
  padding: 1.5rem 1.5rem 0 1.5rem;
}
.card-body {
    padding: 1.25rem 1.875rem 0 1.25rem;
}

/* Reduce padding on very small screens */
@media (max-width: 375px) {
    .account-container .card-body {
        padding: 1.25rem 1rem 1.875rem 1rem;
    }
    
    /* Stack account header elements vertically */
    .account-header {
        flex-direction: column;
        text-align: center;
    }
    
    .account-header .account-photo-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .account-header .account-info {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .account-header .edit-section-btn {
        width: 100%;
        max-width: 200px;
    }
    .expert-card .btn-sm {
      padding: 10px 0 !important;
    }
}

/* Increase border radius for LinkedIn data box */
.account-container .bg-light.rounded {
    border-radius: 1.25rem;
}

/* Custom icon-only account tabs styling */
.account-container .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
    gap: 0;
}

.account-container .nav-tabs .nav-link {
    border: none;
    background: none;
    color: #6c757d;
    padding: 1rem;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 0;
    min-width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Only apply hover effects on devices that can actually hover */
@media (hover: hover) {
    .account-container .nav-tabs .nav-link:hover {
        border-color: transparent;
        background-color: #f8f9fa;
        color: #6c757d;
    }
}

.account-container .nav-tabs .nav-link.active {
    color: #6f42c1;
    background-color: transparent;
    border-bottom-color: #6f42c1;
}

.account-container .nav-tabs .nav-link i {
    font-size: 1.2rem;
    margin: 0;
    color: #000;
}

/* Professional alert positioning */
.professional-alert {
    position: static;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.professional-alert-tab {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1rem;
    margin: 0;
}

.professional-alert-sidebar {
    font-size: 1rem;
    margin-left: 0.5rem;
}

/* Field display mode styling */
.field-display {
    margin-bottom: 0.5rem;
}

.field-display .field-value {
    display: block;
    padding: 0.375rem 0;
    font-size: 1.1rem;
    color: #212529;
    min-height: 1.5rem;
}

.field-display .field-value:empty:before {
    content: "—";
    color: #6c757d;
}

.field-display small {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Readonly field styling - make them look like plain text */
.account-section input[readonly],
.account-section input[disabled]:not([type="file"]),
.account-section select[disabled],
.account-section .select2-container--disabled .select2-selection {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: default !important;
    padding-left: 0 !important;
    color: #212529 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Remove focus and selection states from all readonly inputs */

input[readonly]:focus,
textarea[readonly]:focus {
    outline: none;
    box-shadow: none;
    border-color: inherit;
}

/* Keep input group icons visible but subtle for disabled fields */
.account-section .input-group-text {
    transition: all 0.3s ease;
}

.account-section input[disabled] ~ .input-group-text,
.account-section .input-group:has(input[disabled]) .input-group-text {
    background-color: transparent;
    border: none;
    color: #6c757d;
    opacity: 0.5;
}

/* Hide Select2 dropdown arrow when disabled */
.account-section .select2-container--disabled .select2-selection__arrow {
    display: none !important;
}

/* Hide Select2 clear button when disabled */
.account-section .select2-container--disabled .select2-selection__clear {
    display: none !important;
}

/* Prevent interaction with disabled Select2 */
.account-section .select2-container--disabled {
    pointer-events: none !important;
}

/* Make disabled Select2 look like plain text */
.account-section .select2-container--disabled .select2-selection--single {
    background: transparent !important;
    cursor: default !important;
}

/* Remove padding from disabled Select2 */
.account-section .select2-container--disabled .select2-selection__rendered {
    padding-left: 0 !important;
}

/* Style for middle name field when disabled */
.account-section input[name="middle_name"][disabled] {
    padding-left: 0.375rem !important; /* Keep some padding for middle name */
}

/* Restore normal styling when fields are enabled */
.account-section input:not([readonly]):not([disabled]),
.account-section select:not([disabled]),
.account-section .select2-container:not(.select2-container--disabled) .select2-selection {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    box-shadow: none !important;
    padding-left: 0.75rem !important;
}

/* Restore input group styling when enabled */
.account-section input:not([disabled]) ~ .input-group-text,
.account-section .input-group:has(input:not([disabled])) .input-group-text {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    color: #495057;
    opacity: 1;
}

/* Show Select2 elements when enabled */
.account-section .select2-container:not(.select2-container--disabled) .select2-selection__arrow {
    display: block !important;
}

.account-section .select2-container:not(.select2-container--disabled) .select2-selection__clear {
    display: inline-block !important;
}

.account-section .select2-container:not(.select2-container--disabled) .select2-selection__rendered {
    padding-left: 0.75rem !important;
}

/* Re-enable interaction when not disabled */
.account-section .select2-container:not(.select2-container--disabled) {
    pointer-events: auto !important;
}

.account-section .select2-container:not(.select2-container--disabled) .select2-selection--single {
    background: #fff !important;
    cursor: pointer !important;
}

.account-sidebar {
    border-right: 1px solid #dee2e6;
}

/* Desktop Sidebar Menu Styles */
.account-menu {
    padding: 0;
    margin: 0;
    list-style: none;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.account-menu li {
    border-bottom: 1px solid #e9ecef;
}

.account-menu li:last-child {
    border-bottom: none;
}

.account-menu-item {
    display: block;
    padding: 1rem 1.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    outline: none;
}

.account-menu-item:focus {
    outline: none;
    box-shadow: none;
}

@media (hover: hover) {
    .account-menu-item:hover {
        background-color: #e9ecef;
        color: #6f42c1;
        text-decoration: none;
    }
}

.account-menu-item.active {
    background-color: #6f42c1;
    color: white;
    border-left-color: #5a2d91;
}

.account-menu-item i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

.account-menu-item .menu-text {
    margin-left: 0.25rem;
}

/* Tablet view - narrow sidebar with icons only at 768px */
@media (min-width: 768px) and (max-width: 991px) {
    /* Make sidebar narrower */
    .account-sidebar.col-md-3 {
        flex: 0 0 auto;
        width: 15%;
        max-width: 100px;
    }
    
    /* Make content area wider */
    .account-content.col-md-9 {
        flex: 0 0 auto;
        width: 85%;
    }
    
    /* Hide menu text labels */
    .account-menu-item .menu-text {
        display: none;
    }
    
    /* Center icons and adjust padding */
    .account-menu-item {
        padding: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .account-menu-item i {
        margin: 0;
        font-size: 1.25rem;
    }
    
    /* Hide professional alert in narrow view */
    .professional-alert-sidebar {
        display: none;
    }
    
    /* Remove rounded corners and shadow for cleaner look */
    .account-menu {
        border-radius: 8px;
    }
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

/* Account header with photo */
.account-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
}

.account-photo-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.account-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.account-info {
    flex: 1;
}

.account-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

.account-email {
    color: #6c757d;
    font-size: 0.9rem;
}

.edit-section-btn {
    padding: 6px 16px;
    font-size: 0.875rem;
}

/* Mobile styles for screens 767px and lower */
@media (max-width: 767px) {
    /* Hide Edit button text on small screens */
    .edit-section-btn .edit-btn-text {
        display: none;
    }
    
    .edit-section-btn {
        padding: 6px 12px;
    }
    
    .edit-section-btn i {
        margin: 0;
    }
    
    /* Make nav tabs fill full width evenly */
    .account-container .nav-tabs {
        display: flex;
        width: 100%;
    }
    
    .account-container .nav-tabs .nav-item,
    .manage-tabs .nav-item {
        flex: 1;
    }
    
    .account-container .nav-tabs .nav-link {
        width: 100%;
        border-radius: 0;
    }
    
    /* Make all buttons full width like back button */
    .btn:not(.btn-sm):not(.delete-expert):not(.view-expert-quote):not([class*="btn-outline-primary"]):not([class*="btn-outline-danger"]):not([class*="btn-outline-warning"]) {
        width: 100% !important;
        margin-bottom: 0.75rem;
    }
    
    /* Specifically target common button types */
    .btn-primary,
    .btn-secondary,
    .btn-outline-secondary,
    .btn-success,
    .btn-warning,
    .btn-danger,
    .btn-info {
        width: 100% !important;
        margin-bottom: 0.75rem;
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Exception for inline action buttons in cards/tables */
    .expert-card .btn,
    .roundup-card .btn,
    .btn-sm,
    .modal .btn {
        width: auto;
        margin-bottom: 0;
    }
    
    /* Roundup cards responsive layout (767px and lower) */
    .roundup-card {
        padding: 1.5rem !important;
        border-radius: 0.5rem;
        margin-bottom: 1rem !important;
    }
    
    /* Hide desktop layout, show mobile layout */
    .roundup-card .d-none.d-md-block {
        display: none !important;
    }
    
    .roundup-card .d-md-none {
        display: block !important;
    }
    
    /* Style roundup card similar to expert cards */
    .roundup-card h6 {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .roundup-card .badge {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.75rem !important;
        font-weight: 500 !important;
    }
    
    .roundup-card .text-muted.small {
        font-size: 0.875rem !important;
        color: #6c757d !important;
    }
    
    /* Meta info row spacing */
    .roundup-card .row.g-2.mb-2 {
        margin-bottom: 0.75rem !important;
    }
    
    /* Bottom row with experts and actions */
    .roundup-card .d-flex.justify-content-between.align-items-center {
        margin-top: 0.75rem !important;
        padding-top: 0.75rem !important;
        border-top: 1px solid #e9ecef !important;
    }
    
    /* Action buttons in roundup cards */
    .roundup-card .d-flex.gap-1 {
        gap: 0.5rem !important;
    }
    
    .roundup-card .btn-sm {
        font-size: 0.875rem !important;
        padding: 0.375rem 0.75rem !important;
        border-radius: 0.375rem !important;
    }
    
    /* New submissions badge styling */
    .roundup-card .badge.bg-warning.circular-badge {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }
    
    /* Clickable card styling */
    .clickable-card {
        transition: all 0.2s ease;
    }
    
}

/* Form field styles */
.field-readonly {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Select2 custom styling for account page */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 38px !important;
}

.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.375rem 0.75rem !important;
}

.select2-container--bootstrap-5.select2-container--disabled .select2-selection {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* LinkedIn connection status */
.linkedin-connected {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #0077b5;
    color: white;
    border-radius: 4px;
    font-size: 0.875rem;
}

.linkedin-not-connected {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #6c757d;
    color: white;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* LinkedIn profile badge on expert photos */
.expert-photo-container {
    position: relative;
    display: inline-block;
}

.linkedin-profile-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #0077b5;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid white;
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none;
}

.linkedin-profile-badge:hover {
    background: #005582;
    color: white;
}

.linkedin-profile-badge:visited {
    background: #0077b5;
    color: white;
}

.linkedin-profile-badge:focus {
    background: #0077b5;
    color: white;
    outline: none;
    box-shadow: none;
}

.linkedin-profile-badge:active {
    background: #005582;
    color: white;
    outline: none;
}

.linkedin-profile-badge i {
    margin: 0;
}

/* Remove active/focus states from filter checkboxes and radio buttons */
.form-check-input:focus {
    border-color: #dee2e6;
    outline: 0;
    box-shadow: none;
}

.form-check-input:active {
    filter: none;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input:checked:focus {
    border-color: #0d6efd;
    box-shadow: none;
}

/* Mobile navigation - stack logo and Experts Directory vertically */
@media (max-width: 767px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .navbar .container > .d-flex:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .navbar .container > .d-flex:first-child .nav-link {
        margin-top: 0.5rem;
        padding-left: 0;
    }

    .navbar .container > .d-flex:last-child {
        position: absolute;
        top: 0.5rem;
        right: 1rem;
    }
}

/* Professional photo crop modal */
.professional-crop-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

#professional-frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/white-label-frame.png');
    background-size: 100% 100%;  /* Stretch frame to fill entire container */
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.8;  /* Slightly more transparent to see crop area */
}

/* Remove animated hint circle since we have the actual frame */

/* Hide cropper UI elements */
.professional-crop-container .cropper-line,
.professional-crop-container .cropper-point,
.professional-crop-container .cropper-grid,
.professional-crop-container .cropper-crop-box {
    display: none !important;
}

.professional-crop-container .cropper-crop-box {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Remove the dark overlay that dims the photo */
.professional-crop-container .cropper-modal {
    background-color: transparent !important;
    opacity: 0 !important;
}

/* ============================================
   END MY ACCOUNT PAGE STYLES
   ============================================ */

/* Navigation improvements */
.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 600;
  transition: all 0.3s ease;
}

@media (hover: hover) {
    .navbar-brand:hover {
        transform: scale(1.05);
    }
}

.nav-link {
  transition: all 0.3s ease;
  border-radius: 6px;
  margin: 0 0.25rem;
}

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

/* Badge icon colors */
.badge-icon::before {
  color: white;
}

/* Force invalid-feedback to be visible for debugging */
.invalid-feedback {
  display: block !important;
  color: #dc3545 !important;
  font-size: 0.875rem !important;
  margin-top: 0.25rem !important;
}

/* Ensure is-invalid class styling works */
.form-control.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Font size utilities */
.fs-1rem {
  font-size: 1rem;
}

/* Custom button group with spacing */
.action-buttons {
  display: flex;
  gap: 3px;
}

.action-buttons .btn {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

/* Modal header logo styling */
.modal-logo {
  height: 24px;
  margin-right: 12px;
}

:root {
  --primary-color: #6f42c1;
  --primary-hover: #5a32a3;
  --primary-light: #8b5fbf;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --purple-gradient-start: #7c3aed;
  --purple-gradient-end: #a855f7;
}

/* Override Bootstrap primary background color */
.bg-primary {
  background-color: #9166E1 !important;
}

/* Continue to Publish button border color */
a[href*="publish"].btn-primary,
.btn-primary.disabled .fa-newspaper,
.btn-primary.disabled,
button.btn-primary[disabled] {
  border-color: #6f42c1 !important;
}

/* Disable Bootstrap table striped background */
.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
  --bs-table-striped-bg: transparent;
  background-color: transparent;
}

/* Remove dimming from user dropdown text */
#userDropdown {
  opacity: 1;
  color: white;
}

/* Make all FontAwesome close/times icons white by default, but allow text-danger to override 
.fa-close:before, 
.fa-multiply:before, 
.fa-remove:before, 
.fa-times:before, 
.fa-xmark:before {
  color: white;
}
*/

.text-danger .fa-close:before,
.text-danger .fa-multiply:before,
.text-danger .fa-remove:before,
.text-danger .fa-times:before,
.text-danger .fa-xmark:before,
.fa-close.text-danger:before,
.fa-multiply.text-danger:before,
.fa-remove.text-danger:before,
.fa-times.text-danger:before,
.fa-xmark.text-danger:before {
  color: #dc3545 !important;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  background-color: #ede9f4;
  min-height: 100vh;
}

/* Global form styling - make labels smaller than values for better hierarchy */
.form-label, label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6c757d;
}

.form-control, .form-select, input, textarea, select {
  font-size: 1rem;
  font-weight: 400;
  color: #212529;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e1e5e9;
  transition: all 0.2s ease;
}

.form-select, select {
  cursor: pointer;
}

.form-control:focus, .form-select:focus, input:focus, textarea:focus, select:focus {
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.15);
  border-color: #6f42c1;
  outline: none;
}

/* Placeholder text styling - make it smaller and subtle */
.form-control::placeholder, input::placeholder, textarea::placeholder {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 300;
  opacity: 0.8;
}

/* Make the main content take up remaining space */
main {
  flex: 1;
}

/* Dashboard stats cards */
.stats-card {
  text-align: center;
  padding: 1.5rem;
}

.stats-card .stats-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.stats-card .stats-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stats-card .stats-label {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* Form customizations */
.form-control {
  border-radius: 8px;
  border: 1px solid #e0e6ed;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.2rem;
}

.form-text {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Required field indicator */
.text-danger {
  color: var(--danger-color) !important;
}

/* Form sections spacing */
.mb-3 {
  margin-bottom: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 2rem !important;
}

/* Global button styles */
.btn {
  border-radius: 50px !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-color: var(--primary-color);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(111, 66, 193, 0.2);
}

@media (hover: hover) {
    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
        border-color: var(--primary-hover);
    }
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* .btn-primary:active - no additional styles needed */

/* Enhanced outline buttons */
.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

@media (hover: hover) {
    .btn-outline-primary:hover {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
        border-color: var(--primary-color);
    }
}

/* Enhanced secondary buttons */
.btn-secondary,
.btn-outline-secondary {
  background-color: white;
  color: #6c757d;
  border: 1px solid #dee2e6;
  font-weight: 500;
  transition: all 0.3s ease;
}

@media (hover: hover) {
    .btn-secondary:hover,
    .btn-outline-secondary:hover {
        background-color: #6c757d;
        color: white;
        border-color: #6c757d;
    }
}

/* Success buttons with subtle animation */
.btn-success {
  transition: all 0.3s ease;
}

/* .btn-success:hover - no additional styles needed */

/* Warning buttons */
.btn-warning {
  transition: all 0.3s ease;
}

/* .btn-warning:hover - no additional styles needed */

/* Expert list styles */
.expert-list .expert-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.expert-list .expert-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.expert-list .expert-info {
  flex: 1;
}

.expert-list .expert-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.expert-list .expert-meta {
  font-size: 0.85rem;
  color: #6c757d;
}

.expert-list .expert-status {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

/* Roundup status badges */
.badge-draft {
  background-color: var(--secondary-color);
  color: white;
}

.badge-collecting {
  background-color: var(--info-color);
  color: white;
}

.badge-review {
  background-color: var(--warning-color);
  color: #212529;
}

.badge-published {
  background-color: var(--success-color);
  color: white;
}

/* Color picker input */
.color-picker-input {
  display: flex;
  align-items: center;
}

.color-picker-input input[type="color"] {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
}

.color-picker-input input[type="text"] {
  flex: 1;
}

/* Quote card preview */
.quote-card-preview {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Logo overlay positioning using CSS variables */
.logo-overlay {
  position: absolute;
  top: var(--logo-top);
  left: var(--logo-left);
  max-width: var(--logo-max-width);
  max-height: var(--logo-max-height);
  object-fit: contain;
  z-index: 10;
  transition: all 0.3s ease;
}

/* Login/Register pages */
.auth-container {
  max-width: 500px;
  margin: 3rem auto;
}

/* Wider container for complex forms */
.form-container {
  max-width: 700px;
  margin: 3rem auto;
}

/* Card styling consistency */
.card {
  border: none;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  padding-bottom: 1.75rem;
}

.card-header {
  border-radius: 12px 12px 0 0 !important;
  border-bottom: 1px solid #e9ecef;
  background-color: #f8f9fa;
}

.card-footer {
  border-radius: 0 0 12px 12px !important;
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fa;
}

.card-filter {
  padding-left: 15px;
}

/* Enhanced table styling */
.table {
  margin-bottom: 0;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: var(--dark-color);
  background-color: rgba(111, 66, 193, 0.05);
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: rgba(248, 249, 250, 0.5);
}

/* Success badge styling - distinct from buttons */
.badge.bg-success {
  background-color: #198754 !important;
  border: 1px solid #157347;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* Loading states */
.btn[disabled], .btn.disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state .empty-icon {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.empty-state h4 {
  color: #495057;
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* Enhanced spacing utilities */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* Link improvements */
a {
  transition: all 0.3s ease;
}

@media (hover: hover) {
    a:not(.btn):hover {
        text-decoration: none;
        opacity: 0.8;
    }
}

/* Focus improvements for accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn:focus, .form-control:focus {
  outline: none;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .auth-container, .form-container {
    margin: 1rem;
    max-width: none;
  }
  
  .card-header h4, .card-header h2 {
    font-size: 1.5rem;
  }

  
  .btn-group .btn {
    width: auto;
    margin-bottom: 0;
  }
  
  .table-responsive {
    font-size: 0.9rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .empty-state {
    padding: 2rem 1rem;
  }
  
  .empty-state .empty-icon {
    font-size: 2.5rem;
  }
/* Make invite expert button 40% width on mobile */
  #inviteExpertBtn {
    width: 40%;
    max-width: 200px;
    }
    
  /* Left align status badges on mobile */
  .expert-card .col-md-2 .text-center {
    text-align: left !important;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Print styles */
@media print {
  .navbar, .btn, .card-footer {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }
}

/* Utility classes for common inline styles */
.hidden-form {
  display: none;
}

.inline-form {
  display: inline;
}

.full-size-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-avatar-large {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  overflow: hidden;
}

.profile-placeholder {
  width: 150px;
  height: 150px;
}

.profile-placeholder-icon {
  font-size: 24px;
}

.hidden-file-input {
  display: none;
}

.expert-quote-bg {
  white-space: pre-wrap;
  background-color: #e8f5e8 !important;
}

.copy-btn-position {
  top: 8px;
  right: 8px;
}

.log-search-input {
  width: 300px;
}

/* Dashboard Search Styles */
.dashboard-search-wrapper {
  position: relative;
}

.dashboard-search-input {
  min-width: 200px;
  padding-right: 2rem;
}

.dashboard-search-clear {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  padding: 0;
  color: #6c757d;
  background: none;
  border: none;
}

.dashboard-search-clear:hover {
  color: #495057;
}

.search-error {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  font-weight: 200;
}

/* Inverted New Status Badge */
.badge-new-inverted {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
}


.frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.logo-preview {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: 60px;
  max-height: 60px;
  display: none;
  z-index: 10;
}

/* Expert submit page specific styles */
.expert-submit-logo {
  max-height: 40px;
}

.expert-submit-profile-preview {
  width: 100px;
  height: 100px;
}

.expert-submit-profile-placeholder {
  width: 100px;
  height: 100px;
}

.expert-submit-profile-icon {
  font-size: 2rem;
}

.brand-color-section-hidden {
  display: none;
}

.feedback-field-hidden {
  display: none;
}

.circular-photo {
  border-radius: 50%;
}

.email-highlight-box {
  margin: 20px 0;
  padding: 15px;
  border-left: 4px solid #3498db;
  background-color: #f8f9fa;
}

/* JavaScript toggle utilities - for dynamic show/hide */
.js-hidden {
  display: none !important;
}

.js-visible {
  display: block !important;
}

/* Conditional display utilities */
.show-on-solid {
  display: none;
}

.show-on-default, .show-on-white-label {
  display: none;
}

/* Active state classes */
.active-section {
  display: block !important;
}

/* Landing page styles */
.hero-section {
  background: linear-gradient(135deg, var(--purple-gradient-start) 0%, var(--purple-gradient-end) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-card .feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Flash message styling - Bottom right bubbles */
.flash-messages-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050; /* High z-index to appear above content */
  pointer-events: none; /* Allow clicks to pass through */
  max-width: 400px; /* Limit width of bubble messages */
}

.flash-messages-wrapper .alert {
  pointer-events: auto; /* But allow clicks on the alerts themselves */
}

.flash-container {
  transition: opacity 0.3s ease-in-out;
}

/* Make flash messages compact bubbles */
.flash-container .alert {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 25px; /* Rounded bubble shape */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 400px;
  font-size: 0.9rem;
  font-weight: 600; /* Semi-bold text */
  border: none; /* Remove bootstrap border */
  /* No default animation - auto-fade will handle slide-in */
}

/* Success messages - green bubble */
.flash-container .alert-success {
  background-color: #28a745;
  color: white;
}

/* Info messages - blue bubble */
.flash-container .alert-info {
  background-color: #17a2b8;
  color: white;
}

/* Warning messages - orange bubble */
.flash-container .alert-warning {
  background-color: #ffc107;
  color: #212529;
}

/* Danger messages - red bubble */
.flash-container .alert-danger {
  background-color: #dc3545;
  color: white;
}

/* Slide in animation */
@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Close button styling for bubbles */
.flash-container .alert .btn-close {
  position: relative;
  padding: 0.25rem;
  font-size: 0.8rem;
  filter: brightness(0) invert(1); /* Make close button white */
  margin-left: 0.5rem;
}

/* Close button for warning messages (dark text) */
.flash-container .alert-warning .btn-close {
  filter: brightness(0); /* Make close button dark for yellow background */
  height: 1.5rem;
  width: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto; /* Push button to the right */
}

.auto-fade {
  animation: slideInThenSlideOut 11s ease-out forwards;
}

/* Combined animation: slide in, stay visible, then slide out */
@keyframes slideInThenSlideOut {
  0% {
    transform: translateX(100%);
  }
  3.6% { /* 0.4s of 11s = 3.6% */
    transform: translateX(0);
  }
  94.5% { /* 10.4s of 11s = 94.5% - stay visible for 10s */
    transform: translateX(0);
  }
  100% { /* Final 0.6s for slide out */
    transform: translateX(100%);
  }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Keep alert visible on hover or focus */
.alert.auto-fade:hover,
.alert.auto-fade:focus-within {
  animation-play-state: paused;
  opacity: 1;
}

/* Form elements improvements */
.form-check,
.form-check-label,
.form-check-input {
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #000000;
  border-color: #000000;
}

/* Admin dashboard styles */
.card-header h6 {
  font-size: 1.5rem;
}

/* DataTables-style sorting */
.sorting {
  position: relative;
  cursor: pointer;
  padding-right: 20px !important;
}

/* Question item styling */
.question-item {
  position: relative;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.question-item .remove-question {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

#questionList {
  min-height: 100px;
}

/* Review submission styles */
.question-block {
  border-radius: 8px;
  padding: 0.25rem 1.5rem 1.5rem 1.5rem;
}

/* Redundant 64px expert-avatar removed - using 60px version from manage page */

.answer-block {
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.status-badge {
  font-size: 0.9rem;
}

/* Status badge colors - muted tones */
.badge-pending {
  background-color: #ffc107;
  color: #856404;
}

.badge-approved {
  background-color: #28a745;
  color: #155724;
}

.badge-needs-revision {
  background-color: #fd7e14;
  color: #7d3c00;
}

.badge-rejected {
  background-color: #dc3545;
  color: #721c24;
}

/* Message styles from expert view */
.revision-thread {
  max-height: 500px;
  overflow-y: auto;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #dee2e6;
}

.message-bubble {
  max-width: 50%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  position: relative;
  margin-bottom: 1rem;
}

.message-bubble-author {
  background-color: #e3f2fd;
  border-radius: 18px 0 18px 18px;
  margin-left: auto;
  text-align: right;
}

.message-bubble-expert {
  background-color: #e8f5e8;
  border-radius: 0 18px 18px 18px;
}

.message-timestamp {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.message-sender {
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

/* Revision message layout */
.revision-message-layout {
    display: flex;
    gap: 0.75rem;
}

.revision-author-section {
    flex-shrink: 0;
}

.revision-content-section {
    flex: 1;
    min-width: 0;
}

/* Revision author photo */
.revision-author-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.revision-author-initials {
    background-color: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
}

/* Rich text content styling */
.answer-block p {
  margin-bottom: 0.5rem;
}

.answer-block ul,
.answer-block ol {
  margin-bottom: 0.5rem;
}

.answer-block blockquote {
  border-left: 3px solid #dee2e6;
  padding-left: 1rem;
  margin: 0.5rem 0;
  font-style: italic;
}

/* Role switcher styles */
.role-switcher {
  transition: all 0.3s ease;
}

.sorting:after,
.sorting_asc:after,
.sorting_desc:after {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}

.sorting:after {
  content: "\f0dc";
  color: #ddd;
  font-size: 0.9em;
}

.sorting_asc:after {
  content: "\f0de";
  color: #007bff;
}

.sorting_desc:after {
  content: "\f0dd";
  color: #007bff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .stats-card .stats-number {
    font-size: 1.75rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
}

/* 
 * Profile photo and image cropping fixes 
 * This ensures that when a profile image is displayed, placeholders are properly hidden
 */

/* When preview is visible, hide all placeholders */
#profile-preview:not([style*="display: none"]) ~ #profile-placeholder,
#profile-preview:not([style*="display:none"]) ~ #profile-placeholder,
#profile-preview:not([style*="display: none"]) ~ .profile-placeholder,
#profile-preview:not([style*="display:none"]) ~ .profile-placeholder {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Additional specificity for containers with visible preview images */
.d-flex:has(#profile-preview:not([style*="display: none"])) #profile-placeholder,
.d-flex:has(#profile-preview:not([style*="display:none"])) #profile-placeholder,
.form-group:has(#profile-preview:not([style*="display: none"])) #profile-placeholder,
.form-group:has(#profile-preview:not([style*="display:none"])) #profile-placeholder {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Add a fallback for browsers that don't support :has() */
.profile-placeholder.hidden-placeholder,
#profile-placeholder.hidden-placeholder {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Circular photo display styles */
.circular-photo {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Roundup preview styles */
.card-preview-container {
  position: relative;
  width: var(--preview-size, 250px);
  height: var(--preview-size, 250px);
  margin: 0 auto;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.preview-text {
  position: absolute;
  left: 20px;
  right: 20px;
  text-align: center;
  z-index: 10;
}

.preview-text-top {
  top: 50px;
  font-weight: 600;
  font-size: 14px;
}

.preview-text-bottom {
  bottom: 25px;
  font-weight: 500;
  font-size: 12px;
}

.preview-text-dark {
  color: #333;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.preview-text-light {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Solid and gradient specific text positioning - allows custom spacing */
.preview-text-solid-gradient-top {
  top: 50px; /* Customize this for solid/gradient top spacing */
}

.preview-text-solid-gradient-bottom {
  bottom: 25px; /* Customize this for solid/gradient bottom spacing */
}

/* Hide the default "No file chosen" text on file inputs */
input[type="file"] {
  color: transparent;
}

input[type="file"]::-webkit-file-upload-button {
  color: initial;
}

input[type="file"]::-moz-file-upload-button {
  color: initial;
}

/* Enhanced file upload status styling */
.alert.py-2 {
  border-left: 4px solid;
}

.alert-info {
  border-left-color: #0dcaf0;
  background-color: #cff4fc;
}

.alert-success {
  border-left-color: #198754;
  background-color: #d1e7dd;
  max-width: 900px;
}
.alert-purple {
 /*  border-left: 4px solid #6f42c1;
  background-color: #f3e5f5;*/
  color: #6f42c1;
}

.alert img.img-thumbnail {
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Review submission page styles */
.review-submission-container {
  border: 1px solid #e0e0e0;
  max-width: 900px;
  margin: 0 auto;
}

.approval-status-indicator {
  top: 1.5rem;
  right: 1.5rem;
}

/* Common width constraint for review page containers */
.review-content-width {
  max-width: 900px;
  margin: 0 auto;
}

/* Hide empty paragraphs in answer content */
.answer-content-wrapper p:empty {
  display: none;
}

/* Remove bottom margin from last element to reduce gap */
.answer-content-wrapper > :last-child {
  margin-bottom: 0;
}

/* Consistent font styling in answer content - no !important needed */
.answer-content-wrapper {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
}

/* Proper heading hierarchy */
.answer-content-wrapper h1 {
  font-size: 1.75rem;
}
.answer-content-wrapper h2 {
  font-size: 1.5rem;
}
.answer-content-wrapper h3 {
  font-size: 1.25rem;
}

/* Updated answer highlighting */
.answer-updated {
  border-left: 4px solid #ffc107 !important;
  position: relative;
}

/* Updated badge - positioned vertically on the left */
.answer-updated-badge {
  position: absolute;
  left: -57px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  background-color: #ffc107;
  color: #212529;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
}

.review-separator {
  border-color: #bcb5b5;
  border-width: 1px;
}

.review-question {
  font-size: 1rem;
  color: #333;
  font-weight: normal;
}

.review-answer-block {
  border-left: 3px solid #ccc;
  padding-left: 20px;
  max-width: 800px;
}

.review-copy-btn {
  top: 8px;
  right: 8px;
  color: #666;
  max-width: 46px;
}

/* Reject button with grey border but red text/icon */
#rejectBtn {
  color: #dc3545;
}

#rejectBtn i {
  color: #dc3545;
}

#rejectBtn:hover,
#rejectBtn:hover i {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

/* New submissions highlight */
.roundup-card.has-new-submissions {
  border-color: #ffc107 !important;
  border-width: 2px !important;
}

.roundup-card.has-new-submissions h6,
.roundup-card.has-new-submissions .fw-semibold {
  color: #ffc107 !important;
}

/* File input feedback styling */
.form-text strong.text-primary {
  font-weight: 600;
}

input[type="file"]:focus + .form-text {
  color: #0d6efd;
}

/* Pagination styling */
.pagination {
  gap: 0.25rem;
}

.page-item {
  margin: 0 2px;
}

.page-link {
  border-radius: 50px;
  padding: 0.5rem 1rem;
  min-width: 40px;
  text-align: center;
  border: 1px solid #dee2e6;
  background-color: white;
  color: #6c757d;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Override Bootstrap's first/last child border radius with higher specificity */
.pagination .page-item:first-child .page-link {
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
}

.pagination .page-item:last-child .page-link {
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

@media (hover: hover) {
    .page-link:hover {
        background-color: #e7e8e9;
        border-color: #dee2e6;
        color: #495057;
    }
}

.page-item.active .page-link {
  background-color: white;
  border-color: #6f42c1;
  color: #6c757d;
}

.page-item.disabled .page-link {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  opacity: 0.5;
}

/* Previous/Next buttons - keep same as other buttons for consistent roundness */
.page-link[aria-label*="Previous"],
.page-link[aria-label*="Next"] {
  padding: 0.5rem 1rem;
}

/* Action buttons spacing in tables */
td .btn + .btn,
td .btn + a.btn,
td form + form .btn,
td form + a.btn,
td a.btn + form .btn,
td .d-inline + .d-inline .btn,
td .inline-form + .inline-form .btn {
  margin-left: 0;
}


/* Re-crop functionality */
.photo-recrop-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.photo-recrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .photo-recrop-wrapper:hover .photo-recrop-overlay {
        opacity: 1;
    }
}

.photo-recrop-text {
    color: white;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Professional photo preview */
.professional-photo-preview {
    display: inline-block;
    position: relative;
}

/* Center professional photo preview on small screens */
@media (max-width: 425px) {
    .professional-photo-preview {
        display: block;
        text-align: center;
    }
    
    .professional-photo-preview .photo-recrop-wrapper {
        display: inline-block;
        margin: 0 auto;
    }
}

/* Profile photo in account header - styles combined with main definition above */

/* ============================================
   DASHBOARD STYLES
   ============================================ */

/* Roundup Cards Horizontal Styling */
.roundup-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    border-radius: 2.5rem;
    transition: all 0.2s ease;
    min-height: 66px;
}

/* Let Bootstrap's g-3 gutter system work naturally - no override needed */

/* Add spacing between roundup cards */
#roundupsGrid .roundup-card,
#availableRoundupsGrid .roundup-card {
    margin-bottom: 8px;
    padding: 1.2rem 0.75rem 0.75rem 0.75rem; 
}

/* Fix Bootstrap grid column widths for better spacing at medium and large screens */
@media (min-width: 768px) {
    .roundup-card .col-md-2 {
        flex: 0 0 auto;
        width: 14%;
    }
    
    .roundup-card .col-md-1 {
        flex: 0 0 auto;
        width: 13%;
    }
}

@media (min-width: 992px) {
    .roundup-card .col-lg-2 {
        flex: 0 0 auto;
        width: 24.66666667%;
    }
    
    .roundup-card .col-lg-1 {
        flex: 0 0 auto;
        width: 10.33333333%;
    }
}


.roundup-details h6 {
    color: #2c3e50;
    line-height: 1.3;
}

/* Clickable roundup title styling */
.roundup-card .col-md-4 a h6 {
    border-bottom: 1px dashed #dee2e6;
    padding-bottom: 5px;
    transition: border-color 0.2s ease;
}

@media (hover: hover) {
    .roundup-card .col-md-4 a:hover h6 {
        border-bottom-color: #6c757d;
    }
}

.roundup-details .text-muted {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Status badges - FluentUI style */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    /*min-width: 90px;*/
    text-align: center;
    text-transform: none;
}

/* Duplicate badge colors removed - keeping complete set at end of file */

/* Action buttons in cards */
.roundup-card .btn-sm {
    padding: 0.25rem 0.45rem;
    font-size: 0.8rem;
}

/* Compact text and icons in roundup cards */
.roundup-card .text-muted.small {
    font-size: 0.8rem;
}

.roundup-card .text-muted.small i {
    font-size: 0.75rem;
}

/* Card body  
.card.shadow-sm .card-body {
    margin-top: 1rem;
}*/

/* Empty state styling */
.text-center.py-5 {
    padding: 3rem 1rem;
}

/* Responsive design for roundup cards */
@media (max-width: 768px) {
    .roundup-card {
        font-size: 0.875rem;
    }
    
    /* Mobile roundup titles - larger */
    .roundup-card .d-md-none h6 {
        font-size: 1.2rem;
    }
    
    /* Mobile text-muted small - bigger */
    .roundup-card .d-md-none .text-muted.small {
        font-size: 1rem;
    }
    
    /* Mobile view button - 3x wider than delete/cancel */
    .roundup-card .d-md-none .btn-outline-primary {
        min-width: 90px;
    }
    
    .roundup-card .d-md-none .btn-outline-danger,
    .roundup-card .d-md-none .btn-outline-warning {
        min-width: 30px;
    }
    
    .roundup-details h6 {
        font-size: 0.95rem;
    }
    
    .roundup-details .text-muted {
        font-size: 0.75rem;
    }
    
    .badge {
        font-size: 0.65rem;
        min-width: 70px;
        padding: 0.25rem 0.5rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Mobile card design for 425px and lower */
@media (max-width: 425px) {
    .roundup-card {
        border-radius: 1.5rem;
        padding: 1.25rem !important;
        margin-bottom: 1rem;
        background: white;
        border: 1px solid #e9ecef;
    }
    
    /* Center align title */
    .roundup-card .d-md-none > div:first-child {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .roundup-card .d-md-none h6 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #212529;
    }
    
    /* Center the status badge */
    .roundup-card .d-md-none > div:nth-child(2) {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Compact badge styling */
    .roundup-card .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
        border-radius: 50px;
        min-width: auto;
    }
    
    /* Meta info in a single centered row */
    .roundup-card .row.g-2 {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .roundup-card .row.g-2 .col-6 {
        text-align: center;
        max-width: 110px;
    }
    
    .roundup-card .text-muted.small {
        font-size: 0.85rem;
        color: #6c757d;
    }
    
    .roundup-card .text-muted.small i {
        font-size: 0.8rem;
        margin-right: 0.25rem;
    }
    
    /* Bottom section - experts and buttons */
    .roundup-card .d-flex.justify-content-between {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    /* Expert count centered */
    .roundup-card .text-muted.small.d-flex {
        justify-content: center;
        font-size: 0.9rem;
    }
    
    /* Button group styling */
    .roundup-card .d-flex.gap-1 {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
    }
    
    /* Pill-shaped buttons with permanent hover state */
    .roundup-card .btn-sm {
        border-radius: 50px;
        padding: 0.5rem 2rem;
        font-size: 0.875rem;
        min-width: 110px;
        border-width: 2px;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    /* Primary button (View) - always show hover state */
    .roundup-card .btn-outline-primary {
        background: linear-gradient(135deg, #6f42c1 0%, #8b5fbf 100%);
        border-color: #6f42c1;
        color: white;
    }
    
    /* Danger button (Delete) - always show hover state */
    .roundup-card .btn-outline-danger {
        background-color: #dc3545;
        border-color: #dc3545;
        color: white;
        min-width: 50px;
        padding: 0.5rem 1rem;
    }
    
    /* Warning button (Cancel) - always show hover state */
    .roundup-card .btn-outline-warning {
        background-color: #ffc107;
        border-color: #ffc107;
        color: #212529;
        min-width: 50px;
        padding: 0.5rem 1rem;
    }
    
    /* Success button (Published) - always show hover state */
    .roundup-card .btn-outline-success {
        background-color: #28a745;
        border-color: #28a745;
        color: white;
    }
    
    /* Remove text from icon-only buttons on very small screens */
    .roundup-card .btn-sm i {
        font-size: 0.9rem;
    }
    
}

/* Add 3px spacing between buttons in btn-group */
.btn-group-sm .btn {
    margin-right: 3px;
}

.btn-group-sm .btn:last-child {
    margin-right: 0;
}

/* New submission alert styles for dashboard cards */
.roundup-card.has-new-submissions {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.roundup-card .new-submission-alert {
    position: absolute;
    top: 26px;
    right: 18px;
    width: 20px;
    height: 20px;
    background-color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    z-index: 10;
}

.roundup-card .new-submission-alert i {
    color: white;
    font-size: 0.7rem;
}

/* Circular badge for new submissions */
.circular-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    padding: 0 4px;
    box-sizing: border-box;
}

/* Pulse animation for badges */
.pulse-animation {
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
        transform: scale(1);
    }
}

/* Green pulsating indicator for draft tab */
.draft-indicator {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: green-pulse 2s infinite;
}

@keyframes green-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
        transform: scale(1);
    }
}

/* ============================================
   MANAGE PAGE STYLES
   ============================================ */

/* Manage page specific styles */
.manage-roundup-title {
    font-weight: 600;
}

.manage-card {
    border-radius: 1.5rem;
    border: 1px solid #e9ecef;
}

.manage-badge {
    font-size: 0.6rem;
    padding: 2px 4px;
    min-width: auto;
}

.manage-badge-mobile {
    font-size: 0.6rem;
}

.manage-empty-icon {
    font-size: 3rem;
}

.manage-first-roundup-icon {
    font-size: 3rem;
}

/* Modal styles */
.modal-content {
    border-radius: 20px;
}

/* Modal body padding */
.modal-body-padded {
    padding: 10px 40px 10px 40px;
}

/* Complete Roundup modal list styling */
.complete-modal-list {
    text-align: left;
    margin: 1rem 0 2rem 2rem;
}

/* Custom column widths for medium screens - Removed to use mobile layout instead */

/* Custom column widths for large screens */
@media (min-width: 992px) {
    .expert-card .col-lg-4:first-child {
        flex: 0 0 40%;
        max-width: 40%;
    }
    
    .expert-card .col-lg-3:nth-child(2) {
        flex: 0 0 18%;
        max-width: 18%;
    }
}

/* Fix double padding on very small devices */
@media (max-width: 450px) {
    .container.py-4 {
        padding-top: 1rem !important;
    }
}

/* Hide nav text labels on very small screens */
@media (max-width: 444px) {
    .manage-tabs .nav-text {
        display: none;
    }
}

/* Responsive design for expert cards - Apply mobile layout from 991px and below */
@media (max-width: 991px) {
    .expert-card .row > div {
        margin-bottom: 0.75rem;
    }
    
    .expert-card .row > div:last-child {
        margin-bottom: 0;
    }
    
    /* Center action buttons on mobile/tablet */
    .expert-card .d-flex.justify-content-end,
    .expert-card .d-flex {
        justify-content: left;
        gap: 0.5rem;
    }
    
    .badge {
        min-width: auto;
    }
    
    /* Stack columns vertically on medium screens */
    .expert-card .col-md-4,
    .expert-card .col-md-3,
    .expert-card .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Center align status badges on tablets and mobile */
    .expert-card .col-md-2 .text-center {
        text-align: center;
    }
    
    /* Ensure buttons have consistent width */
    .expert-card .btn-sm {
        min-width: 5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
    }
    
    /* Add text labels to buttons on mobile/tablet */
    .expert-card .btn-outline-warning .fa-bell::after {
        content: " Remind";
        font-family: 'Roboto', sans-serif;
        margin-left: 0.25rem;
    }
    
    .expert-card .btn-outline-danger .fa-trash::after {
        content: " Delete";
        font-family: 'Roboto', sans-serif;
        margin-left: 0.25rem;
    }
    
    .expert-card .btn-outline-primary .fa-eye::after {
        content: " View";
        font-family: 'Roboto', sans-serif;
        margin-left: 0.25rem;
    }
    
    .expert-card .btn-outline-primary .fa-clipboard-check::after {
        content: "Revise";
        font-family: 'Roboto', sans-serif;
        margin-left: 0.25rem;
    }
    
    /* Reduce card width on tablets */
    .expert-card {
        /* max-width: 70%; */
        padding: 1rem !important;
    }
}

/* For smaller mobile screens, use full width */
@media (max-width: 576px) {
    .expert-card {
        max-width: 100%;
    }
}

/* For very small screens (350px and below), stack buttons vertically */
@media (max-width: 350px) {
    .expert-card .d-flex {
        flex-direction: column;
        align-items: stretch;
    }
    
    .expert-card .d-flex form {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .expert-card .d-flex form:last-child {
        margin-bottom: 0;
    }
    
    .expert-card .btn-sm {
        width: 100%;
        min-width: auto;
    }
}

/* Hide clipboard emoji on very small screens */
@media (max-width: 375px) {
    .me-3[style*="font-size: 1.5rem"] {
        display: none;
    }
}

/* Continue button container alignment */
.continue-button-container {
    justify-content: flex-end; /* Right-aligned on desktop/tablet */
}

@media (max-width: 425px) {
    .continue-button-container {
        justify-content: center; /* Center-aligned on mobile */
    }
    
    /* Center expert photo stack horizontally on small screens */
    .d-flex:has(.expert-photo-stack) {
        justify-content: center;
    }
}

/* Ensure tooltips work on mobile devices */
@media (max-width: 767px) {
    .tooltip {
        pointer-events: none;
        z-index: 1070;
    }
    
    
    .tooltip-inner {
        max-width: 200px;
        font-size: 0.875rem;
        white-space: normal;
        text-align: center;
    }
    
    /* Tooltip pointer events handled globally above */
    
    /* Ensure mobile tab tooltips appear above tabs */
    .manage-tabs .nav-link[data-bs-toggle="tooltip"] {
        position: relative;
    }
}

/* Manage page tabs - similar to account page */
.manage-content .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
    gap: 0;
}

.manage-tabs .nav-link {
    border: none;
    background: none;
    color: #6c757d;
    padding: 1rem;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 0;
    min-width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.manage-tabs .nav-link i {
    font-size: 1.2rem;
    margin: 0;
    color: #000;
}

.manage-tabs .nav-link.active {
    color: #6f42c1;
    background-color: transparent;
    border-bottom-color: #6f42c1;
}

.manage-tabs .nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-text {
    padding-left: 10px;
    display: inline-flex;
    align-items: center;
    color: inherit;
}

.navbar .header-bell-icon {
    color: white;
}

/* Allow tooltips to work on disabled nav-links across all screen sizes */
.nav-link.disabled[data-bs-toggle="tooltip"] {
    pointer-events: auto;
}

/* Header container for title and calendar */
.header-container {
    min-height: 80px;
}

.header-content {
    padding-right: 90px; /* Space for calendar widget */
}

/* Tear-off calendar widget styling */
.calendar-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 8px;
    min-width: 70px;
    position: relative;
    z-index: 10;
}

.top-negative {
    top: -30px !important;
}

/* ============================================
   QUOTE SELECTION UI - PUBLISH PAGE
   ============================================ */

/* Text selection highlighting */
.answer-text.selectable {
    cursor: text;
    user-select: text;
    position: relative;
}

/* Current saved quote highlighting */
.current-quote {
    background-color: #fff3cd;
    padding: 2px 0;
    border-radius: 2px;
    position: relative;
}

/* New selection highlighting */
.new-selection {
    background-color: rgba(111, 66, 193, 0.1);
    padding: 2px 0;
    border-radius: 2px;
    position: relative;
    border: 1px solid rgba(111, 66, 193, 0.3);
}

/* Character limit reached indicator */
.selection-limit-reached {
    animation: pulse-red 0.5s ease-out;
}

@keyframes pulse-red {
    0% { border-color: rgba(220, 53, 69, 0.5); }
    50% { border-color: rgba(220, 53, 69, 1); box-shadow: 0 0 8px rgba(220, 53, 69, 0.5); }
    100% { border-color: rgba(220, 53, 69, 0.5); }
}

/* Character counter styling */
.char-counter {
    font-size: 0.875rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.char-counter.warning {
    color: #ffc107;
    background: #fff3cd;
}

.char-counter.danger {
    color: #dc3545;
    background: #f8d7da;
}

/* Edit mode visual indicator */
.expert-response.edit-mode {
    border: 2px dashed #6f42c1;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(111, 66, 193, 0.02);
}

/* ============================================
   PUBLISH PAGE STYLES
   ============================================ */

/* Main content area */
.publish-page .article-preview h2 {
    color: #333;
    margin-bottom: 1rem;
}

.publish-page .article-preview .description {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Expert response container */
.publish-page .expert-response {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 25px;
    counter-reset: question-counter;
}

/* Expert header - hidden as info shown in tab */
.publish-page .expert-header {
    display: none;
}

/* Expert avatar */
.publish-page .expert-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.publish-page .expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Expert info */
.publish-page .expert-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.publish-page .expert-info .title {
    color: #666;
    font-size: 0.9rem;
}

/* Answer sections */
.publish-page .answer-section {
    margin: 0;
}

.publish-page .answer-section h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    counter-increment: question-counter;
}

.publish-page .answer-section h5::before {
    content: counter(question-counter) ". ";
}

.publish-page .answer-text {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.publish-page .answer-text p {
    margin: 0;
}

/* Sidebar card */
.publish-page .sidebar-card {
    position: sticky;
    top: 20px;
}

/* Action buttons */
.publish-page .action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* URL input group */
.publish-page .url-input-group {
    margin-bottom: 1.5rem;
}

/* Expert list */
.publish-page .expert-list {
    margin-bottom: 1.5rem;
}

.publish-page .expert-list-container.scrollable {
    max-height: 300px;
    overflow-y: auto;
}

.publish-page .expert-item {
    display: block;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.publish-page .expert-item:hover {
    background-color: #f8f9fa;
    border-color: #6f42c1;
    transform: translateX(3px);
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.1);
}

.publish-page .expert-item:active {
    transform: translateX(1px);
}

.publish-page .expert-item:last-child {
    margin-bottom: 0;
}

/* Expert Tabs Navigation (Folder Style) */
.publish-page .expert-tabs-container {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}

.publish-page .expert-tabs-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0.5rem 0 0;
    scrollbar-width: thin;
}

.publish-page .expert-tabs-scroll::-webkit-scrollbar {
    height: 6px;
}

.publish-page .expert-tabs-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.publish-page .expert-tabs-scroll::-webkit-scrollbar-thumb {
    background: #6f42c1;
    border-radius: 3px;
}

.publish-page .expert-tab {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.5rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: -2px;
}

.publish-page .expert-tab:hover {
    background: #ffffff;
}

.publish-page .expert-tab.active {
    gap: 0.75rem;
    background: #ffffff;
    border-bottom: none;
    box-shadow: 0 -2px 8px rgba(111, 66, 193, 0.1);
    z-index: 2;
    margin-bottom: -1px;
}

.publish-page .expert-tab-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.publish-page .expert-tab.active .expert-tab-photo {
    border-color: #6f42c1;
}

.publish-page .expert-tab-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publish-page .expert-tab-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6f42c1;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.publish-page .expert-tab-info {
    flex: 1;
    min-width: 0;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.2s ease;
}

.publish-page .expert-tab.active .expert-tab-info {
    max-width: 300px;
    opacity: 1;
}

.publish-page .expert-tab-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.publish-page .expert-tab-title {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.publish-page .expert-tab.active .expert-tab-name {
    color: #6f42c1;
}

/* Quote Card Preview Styles */
.publish-page .quote-card-container {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.publish-page .quote-card-container:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.15);
}

.publish-page .quote-card-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .publish-page .expert-tab {
        padding: 0.5rem 0.5rem;
    }

    .publish-page .expert-tab-photo {
        width: 48px;
        height: 48px;
    }
}

/* Selection tooltip */
.selection-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}

.selection-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #333;
}

.calendar-month {
    background: #6f42c1;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px 4px 0 0;
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
}

.calendar-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 2px;
}

.calendar-time {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
}


/* Tablet view - narrow sidebar with icons only (768px-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    /* Make manage sidebar narrower */
    .manage-content ~ .account-sidebar.col-md-3,
    .row.account-container .col-md-3.account-sidebar {
        flex: 0 0 auto;
        width: 15%;
        max-width: 100px;
    }
    
    /* Make manage content area wider */
    .manage-content.col-md-9 {
        flex: 0 0 auto;
        width: 85%;
    }
    
    /* Hide menu text labels in manage page */
    .row.account-container .account-menu-item .menu-text {
        display: none;
    }
    
    /* Center icons and adjust padding */
    .row.account-container .account-menu-item {
        padding: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .row.account-container .account-menu-item i {
        margin: 0;
        font-size: 1.25rem;
    }
    
    /* Hide manage badge in narrow view or make it absolute */
    .row.account-container .manage-badge {
        position: absolute;
        top: 0.25rem;
        right: 0.25rem;
        margin: 0 !important;
    }
}

/* Mobile styles for manage tabs (425px and lower) */
@media (max-width: 425px) {
    /* Make manage nav tabs fill full width evenly */
    .manage-tabs {
        display: flex;
        width: 100%;
    }
    
    .manage-tabs .nav-link {
        width: 100%;
        border-radius: 0;
    }
}

/* Extra small screens - fit all tabs on one line */
@media (max-width: 320px) {
    .account-container .nav-tabs .nav-link,
    .manage-tabs .nav-link,
    .manage-tabs .mobile-tooltip-wrapper {
        padding: 0.5rem 0.25rem !important;
        min-width: auto !important;
        font-size: 0.875rem !important;
    }
    
    .account-container .nav-tabs .nav-link i,
    .manage-tabs .nav-link i,
    .manage-tabs .mobile-tooltip-wrapper i {
        font-size: 1rem !important;
    }
    
    /* Reduce gaps between tabs */
    .manage-tabs {
        gap: 0;
    }
}

/* Expert avatar styles */
.expert-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Expert profile typography */
.expert-name {
    font-weight: 600;
    color: #212529;
}

.expert-meta {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Review submission page styles */
.question-title {
    font-weight: 600;
    color: #212529;
    font-size: 1.25rem;
}

.answer-header {
    font-weight: 600;
    font-size: 1rem;
}

.revision-header {
    font-weight: 600;
    color: #212529;
}

.revision-header i {
    color: #212529;
}

.roundup-review-title {
    font-weight: 600;
    color: #212529;
    font-size: 1.75rem;
    word-wrap: break-word;
    line-height: 1.3;
}

.expert-bio {
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.4;
}

.social-link-text {
    font-weight: 500;
    font-size: 0.85rem;
}

.company-website-link {
    font-weight: normal;
    color: #6f42c1;
    font-size: 0.9rem;
}

.submission-timestamp {
    font-size: 0.85rem;
}

.timestamp-label {
    font-weight: 500;
}

/* Answer container with copy button */
.answer-container {
    position: relative;
}

.copy-answer-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: white;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    opacity: 0.7;
    transition: all 0.2s ease;
    z-index: 10;
}

.copy-answer-btn:hover {
    opacity: 1;
    background-color: #f8f9fa;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.copy-answer-btn.copied {
    color: var(--success-color);
    border-color: var(--success-color);
}

.copy-answer-btn.copied i::before {
    content: "\f00c"; /* Font Awesome check icon */
}

.custom-modal-title {
    font-weight: 600;
    color: #212529;
}

/* Custom review action buttons - elegant design */
.custom-btn-success {
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(111, 66, 193, 0.15);
    transition: all 0.2s ease;
}

.custom-btn-success:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 2px 6px rgba(111, 66, 193, 0.25);
    transform: translateY(-1px);
}

.custom-btn-warning {
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    background-color: white;
    border: 1px solid #dee2e6;
    color: var(--secondary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.custom-btn-warning:hover {
    background-color: #f8f9fa;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.15);
    transform: translateY(-1px);
}

.custom-btn-danger {
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    background-color: white;
    border: 1px solid #dee2e6;
    color: var(--danger-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.custom-btn-danger:hover {
    background-color: #fff5f5;
    border-color: var(--danger-color);
    color: var(--danger-color);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.15);
    transform: translateY(-1px);
}

/* Expert review header layout */
.expert-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.expert-profile-section {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below content width */
}

/* Prevent link overflow */
.expert-profile-section a {
    word-break: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

.submission-status-section {
    text-align: end;
    flex-shrink: 0;
}

/* Review action buttons layout */
.review-action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Medium screens - company name below position */
@media (max-width: 1199px) {
    .expert-job-info {
        display: flex;
        flex-direction: column;
    }
    
    .job-separator {
        display: none;
    }
    
    .company-name {
        margin-top: 0.125rem;
    }
}

/* Tablet layout - adjust expert card layout */
/* Tablet-specific styles removed - now using mobile layout for medium screens */

/* Role toggle header styles */
.role-toggle-header {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 0.25rem 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin: 0 0.5rem 0.25rem 0.5rem;
    background-color: #f8f9fa;
}

.role-toggle-header:hover {
    color: #495057;
    background-color: #e9ecef;
}

.role-toggle-header i {
    font-size: 0.75rem;
}

/* Notification dropdown styles */
.notification-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 350px !important; /* Ensure consistent width */
}

.notification-item {
    border-bottom: 1px solid #f8f9fa;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent any overflow */
}

.notification-item .text-body-secondary,
.notification-item .text-muted {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Notification with actor styles */
.notification-with-actor .d-flex {
    width: 100%;
    max-width: 100%;
}

.notification-with-actor .notification-avatar {
    flex-shrink: 0;
    width: 40px;
}

.notification-with-actor .flex-grow-1 {
    min-width: 0; /* Allow flex item to shrink below content size */
    overflow: hidden;
}

.notification-with-actor .fw-semibold,
.notification-with-actor .text-body-secondary,
.notification-with-actor .text-muted {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Ensure dropdown items don't create horizontal scroll */
.notification-dropdown .dropdown-item {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Quote card 3-dot menu styles */
.quote-card-preview .dropdown-menu {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
}

.quote-card-preview .dropdown-item {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #212529;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.quote-card-preview .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.quote-card-preview .dropdown-item i {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Author photo in available roundups */
.author-photo-sm {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.notification-item {
    cursor: default;
}

.notification-item[onclick]:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.notification-item:not([onclick]):hover {
    /* Non-clickable notifications: subtle hover effect only */
    background-color: #fafafa;
    cursor: default;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-unread-dot {
    flex-shrink: 0;
}

/* Enhanced styling for notifications with user photos */
.notification-with-actor {
    border-radius: 12px;
    margin: 4px 8px;
    border: 1px solid #f0f0f0;
}

.notification-with-actor:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.notification-avatar {
    flex-shrink: 0;
}

.notification-avatar img {
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#notification-badge {
    font-size: 10px;
    min-width: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    padding: 0;
    text-align: center;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    /* Fix copy button stretching issue */
    .copy-answer-btn {
        width: auto;
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    /* Limit message bubble width */
    .message-bubble {
        max-width: 90%;
    } 
}

@media (max-width: 767px) {
    /* Expert header responsive */
    .expert-review-header {
        flex-direction: column;
    }
    
    .expert-profile-section {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Stack expert avatar on top for mobile */
    .expert-profile-section .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Avatar adjustments for mobile stacking */
    .expert-profile-section .expert-avatar {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
    
    .submission-status-section {
        width: 100%;
        text-align: left;
        border-top: 1px solid #dee2e6;
        padding-top: 1rem;
    }
    
    .submission-timestamp {
        justify-content: flex-start;
    }
    
    /* Review action buttons stack vertically on mobile */
    .review-action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .review-action-buttons button {
        width: 100%;
        margin: 0;
    }
    
    /* Ensure Approve button is first (visual hierarchy) */
    .review-action-buttons #approveBtn {
        order: 1;
    }
    
    .review-action-buttons #revisionBtn {
        order: 2;
    }
    
    .review-action-buttons #rejectBtn {
        order: 3;
    }
}

/* Small screens - back button styles for all pages */
@media (max-width: 450px) {
    /* Generic back button wrapper styles */
    .back-button-wrapper {
        order: -1;
        margin-top: 0 !important;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .back-button-wrapper .btn,
    .mobile-back-btn {
        width: 100%;
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Ensure roundup info section doesn't conflict with back button */
    .roundup-info-section {
        order: 1;
        width: 100%;
    }
    
    /* Manage page header specific */
    .manage-header {
        flex-direction: column !important;
    }
    
    .manage-header .back-button-wrapper {
        order: -1;
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Extra small screens - additional adjustments */
@media (max-width: 320px) {
    /* Adjust expert name and meta for small screens */
    .expert-name {
        font-size: 1.1rem;
    }
    
    .expert-meta {
        font-size: 0.85rem;
    }
    
    /* Ensure links don't overflow */
    .expert-profile-section a {
        font-size: 0.85rem;
    }
    
    /* Adjust button text size */
    .review-action-buttons button {
        font-size: 0.9rem;
        padding: 0.45rem 1rem;
    }
}

/* Duplicate expert-avatar rules removed - keeping versions at end of file */

/* ============================================
   EXPERT CARD STYLES
   ============================================ */

/* Base expert card styling */
.expert-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    border-radius: 2.5rem;
    padding: 0.75rem;
}

/* New submission state */
.expert-card.has-new-submission {
    border-color: #dc3545;
    background-color: #fff5f5;
}

/* New submission alert indicator */
.expert-card .new-submission-alert {
    position: absolute;
    top: -3px;
    right: 0px;
    width: 20px;
    height: 20px;
    background-color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    z-index: 10;
}

.expert-card .new-submission-alert i {
    color: white;
    font-size: 0.7rem;
}

/* Action buttons in expert cards */
.expert-card .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Hide button text labels on desktop (show only icons) */
@media (min-width: 992px) {
    .expert-card .btn-text {
        display: none;
    }
}

/* ============================================
   PURPLE BADGE STYLING
   ============================================ */

.bg-purple-subtle {
    background-color: #f3e5f5;
}

.text-purple {
    color: #6f42c1;
}

.badge.bg-purple-subtle.text-purple {
    background-color: #f3e5f5;
    color: #6f42c1;
    border: 1px solid #e1bee7;
}

/* ============================================
   GLOBAL CONTAINER WIDTH OVERRIDE
   ============================================ */

/* Override Bootstrap's default container max-width for better readability */
@media (min-width: 1400px) {
    .container, 
    .container-lg, 
    .container-md, 
    .container-sm, 
    .container-xl, 
    .container-xxl {
        max-width: 1200px;
    }
}

/* ============================================
   EXPERT PHOTO STACK STYLES (Dashboard)
   ============================================ */

/* Expert photo stack */
.expert-photo-stack {
    display: flex;
    position: relative;
}

.expert-photo-item {
    position: relative;
    margin-left: -8px;
    transition: z-index 0.2s ease;
    z-index: 1;
}

.expert-photo-item:first-child {
    margin-left: 0;
}

.expert-photo-item:hover {
    z-index: 10;
}

.expert-photo-stack .expert-stack-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #6c757d;
    color: white;
}

/* Specific rule for img elements with expert-stack-photo class */
.expert-photo-stack img.expert-stack-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

/* Highlight expert photo with unread submission */
.expert-photo-item.has-unread-submission img.expert-stack-photo,
.expert-photo-item.has-unread-submission .expert-stack-photo {
    border: 3px solid #ffc107;
}

.expert-avatar.has-unread-submission {
    border: 3px solid #ffc107;
}

.expert-photo-stack .expert-initials {
    background-color: #007bff;
    color: white;
}

.expert-photo-stack .expert-overflow {
    background-color: #6c757d;
    color: white;
    font-size: 0.65rem;
}

/* Roundup title column padding on dashboard */
.roundup-title-column {
    padding-left: 2rem;
}

/* Roundup title link with dashed underline */
h6.roundup-title-link {
    border-bottom: 1px dashed #c6c6c6;
    text-decoration: none;
    color: inherit;
    transition: border-bottom-color 0.2s ease;
}

h6.roundup-title-link:hover {
    border-bottom-color: #495057;
    color: inherit;
}

/* Maintain expert photo overlap with individual links */
.expert-photo-stack a {
    margin-left: -8px;
    display: inline-block;
    position: relative;
    transition: z-index 0.2s ease;
}

.expert-photo-stack a:first-child {
    margin-left: 0;
}

.expert-photo-stack a:hover {
    z-index: 10;
}

/* Reset the original expert-photo-item hover since it's now on the link */
.expert-photo-stack a .expert-photo-item:hover {
    z-index: inherit;
}

/* ============================================
   UPDATE PAGE STYLES
   ============================================ */

/* Update form specific styles */
.card-title i {
    color: #6c757d;
}

.alert i {
    color: inherit;
}

/* Form control styling */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button styling consistency */
.btn-outline-secondary.rounded-pill {
    border-color: #6c757d;
}

.btn-outline-secondary.rounded-pill:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Ensure delete/cancel buttons match app style */
.delete-roundup-btn,
.cancel-roundup-btn {
    font-weight: 500;
}

/* Form sections spacing */
.card-body > .mb-4:last-of-type {
    margin-bottom: 1.5rem !important;
}

/* Small icon for subtle alerts */
.small-icon {
    font-size: 0.875rem;
}


/* Expert Submission Page Styles */
.ql-editor {
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
}

.ql-toolbar {
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

.ql-container {
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

.rich-text-field {
    margin-bottom: 1rem;
}

.hidden-textarea {
    display: none;
}

.deadline-info {
    background-color: #f8f9fa;
    border-left: 4px solid #6f42c1;
    padding: 1rem;
    border-radius: 0.375rem;
    color: #495057;
    margin-bottom: 1rem;
}

.author-word-bubble {
    background-color: #eef1ff;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 18px;
    margin: 10px 0 0 0;
    max-width: 70%;
}

/* Manage page styles moved from template */
.stat-card {
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 600;
}

/* Expert avatar styles */
.expert-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.expert-avatar-placeholder i {
    font-size: 1.5rem;
}

/* Modal styles */
.modal-header {
    border-bottom: 0;
}

.modal-footer {
    border-top: 0;
}

/* FluentUI-style badge colors */
.badge.bg-secondary-subtle {

   /* color: #444444 !important;*/
    border: 1px solid #a19d9d;
}

.badge.bg-info-subtle {
    background-color: #a8cbff;
    color: #0048b2 !important;
    border: 1px solid #9db4d8;
}

.badge.bg-warning-subtle {
    background-color: #F2AA6E;
    color: #4b3800 !important;
    border: 1px solid #b9a190;
}

.badge.bg-success-subtle {
    background-color: #94d2b3;
    color: #074e2c !important;
    border: 1px solid #84a98c;
}

.badge.bg-danger-subtle {
    background-color: #ffa6ae;
    color: #5e0000 !important;
    border: 1px solid #d28e95;
}

.badge.bg-primary-subtle {
    background-color: #0d6efd;
    color: white !important;
}

/* New submission alert styles */
.new-submission-alert {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    z-index: 10;
}

.new-submission-alert i {
    color: white;
    font-size: 0.7rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* CSS Tooltip */
.status-tooltip {
    position: relative;
    cursor: help;
    font-size: 0.875rem !important;
    color: #6c757d !important;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s ease;
}

@media (hover: hover) {
    .status-tooltip:hover {
        color: #495057 !important;
        background-color: #e9ecef;
        border-color: #adb5bd;
    }
}

.status-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: translateX(0);
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: normal;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    min-width: 200px;
}

/* Ensure tooltip doesn't go off-screen on small devices */
@media (max-width: 768px) {
    .status-tooltip::after {
        white-space: normal;
        max-width: 200px;
    }
    
    /* Mobile-responsive icon-only menu */
    .account-container {
        display: block;
    }
    
    /* Tab text colors handled by existing .manage-tabs .nav-link rules */
    
    /* Adjust main content area */
    .col-md-9 {
        flex: 1;
        padding-left: 1rem;
    }
}

@media (hover: hover) {
    .status-tooltip:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

/* Button Tooltip - similar to status tooltip */
.button-tooltip {
    position: relative;
}

.button-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: normal;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .button-tooltip:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

/* Ensure all buttons in btn-group-sm have consistent sizing */
.btn-group-sm .btn,
.btn-group-sm form .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
    margin-right: 3px;
}

.btn-group-sm .btn:last-child,
.btn-group-sm form:last-child .btn {
    margin-right: 0;
}

/* Expert Cards Horizontal Styling */
.expert-details h6 {
    color: #2c3e50;
    line-height: 1.3;
}

.expert-details .text-muted {
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Disabled menu item styling */
.account-menu-item.disabled {
    display: block;
    padding: 12px 20px;
    color: #adb5bd;
    text-decoration: none;
    cursor: not-allowed;
    border-left: 3px solid transparent;
    opacity: 0.6;
}

@media (hover: hover) {
    .account-menu-item.disabled:hover {
        background: transparent;
        color: #adb5bd;
    }
}

/* Section visibility */
.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

/* Empty state styling */
.text-center.py-5 {
    padding: 3rem 1rem;
}

/* Pressed button effect for published filter */
.btn-pressed {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}

/* Alert border for roundup cards requiring attention */
.roundup-card.alert-border {
    border: 1px solid #f9d464 !important;
}

/* Tablet view - roundup card padding adjustments (768px-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .roundup-card.border.bg-white.position-relative,
    .roundup-card.border.bg-white.position-relative.alert-border {
        padding: 1.5rem !important;
        min-height: 118px;
        margin-bottom: 14px !important;
    }
    .col-md-4 {
        width: 38.333333%;
    }

}

/* Small mobile view - make entire roundup card clickable (max-width: 425px) */
@media (max-width: 425px) {
    .roundup-card-mobile-link {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    .roundup-card-mobile-link:hover,
    .roundup-card-mobile-link:focus {
        text-decoration: none;
        color: inherit;
    }

    .roundup-card-mobile-link .roundup-card {
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .roundup-card-mobile-link:hover .roundup-card {
        background-color: #f8f9fa;
    }
}

/* ============================================
   PUBLIC INVITE PAGE STYLES
   ============================================ */

.roundup-summary {
    color: #333;
    padding: 2rem 0;
}

.summary-card {
    background: white;
    border-radius: 15px;
    padding: 2rem 6.25rem;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.roundup-logo {
    max-height: 80px;
    max-width: 200px;
    margin-bottom: 1rem;
}

.author-info {
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.proceed-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.proceed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.invitation-details {
    padding-left: 1rem;
    margin: 1.5rem auto;
    max-width: 500px;
}

.question-preview {
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
}

@media (max-width: 1024px) {
    .summary-card {
        padding: 1.5rem 3rem;
    }
}
@media (max-width: 600px) {
    .summary-card {
        padding: 1.5rem 4rem;
    }
}
@media (max-width: 487px) {
    .summary-card {
        padding: 1.5rem 3rem;
    }
}

/* Responsive question heading layout */
@media (max-width: 420px) {
    .questions-heading {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .questions-heading .fas {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
        font-size: 1.2em;
    }
}
@media (max-width: 450px) {
    .summary-card {
        padding: 1.5rem 2rem;
    }
}
@media (max-width: 325px) {
    .summary-card {
        padding: 1.5rem 1.5rem;
    }
}

/* Copy button styling - consistent across all templates */
.copy-expert-btn,
.review-copy-btn,
.copy-quote-btn {
    border-radius: 6px;
    border-color: #d0d7de;
    z-index: 10;
    width: auto;
    min-width: auto;
    flex: none;
}

.copy-expert-btn {
    top: 15px;
    right: 15px;
}

.review-copy-btn,
.copy-quote-btn {
    top: 8px;
    right: 8px;
}

.copy-expert-btn i,
.review-copy-btn i,
.copy-quote-btn i {
    font-size: 12px;
}

/* Share button styles */
.share-button {
    transition: all 0.3s ease;
}

.share-button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
}

/* Roundup type icons */
.roundup-type-icon {
    color: #6c757d;
    font-size: 0.75rem;
}
.roundup-type-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
;
}
/* Roundup type selection options */
.roundup-type-radio {
    display: none;
}

.roundup-type-option {
    cursor: pointer;
    transition: all 0.2s ease;
    border-color: #dee2e6 !important;
    margin-bottom: 0;
}

.roundup-type-option:hover {
    border-color: #adb5bd !important;
    background-color: #f8f9fa;
}

.roundup-type-radio:checked + .roundup-type-option {
    border-color: #bcbcbc !important;
    border-width: 2px !important;
    background-color: #f8f9fa;
}

/* Logo orientation selection options */
.logo-shape-radio {
    display: none;
}

.logo-orientation-option {
    cursor: pointer;
    transition: all 0.2s ease;
    border-color: #dee2e6 !important;
    margin-bottom: 0;
}

.logo-orientation-option:hover {
    border-color: #adb5bd !important;
    background-color: #f8f9fa;
}

.logo-shape-radio:checked + .logo-orientation-option {
    border-color: #ccc !important;
    border-width: 3px !important;
    background-color: #f8f9fa;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* ============================================
   FRAME SELECTION STYLES
   ============================================ */

.frame-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.frame-option {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.frame-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.frame-option.selected {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.frame-option[data-premium="true"]:not(.accessible) {
    opacity: 0.6;
    cursor: not-allowed;
}

.frame-option[data-premium="true"]:not(.accessible):hover {
    transform: none;
    box-shadow: none;
}

.frame-preview-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5; /* 1080x1350 ratio */
}

.frame-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.frame-option-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    color: white;
    padding: 1rem 0.75rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.frame-option-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.frame-option-badge {
    font-size: 0.75rem;
    font-weight: 500;
}

.frame-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .frame-selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .frame-option-overlay {
        padding: 0.75rem 0.5rem 0.5rem;
    }

    .frame-option-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .frame-selection-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.frame-preview-single {
    border: 1px solid #ccc;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.frame-preview-single:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.15);
}

.frame-preview-single:hover #frame-preview-image {
    opacity: 0.95;
}

/* ===================================
   CATEGORY SYSTEM STYLES
   =================================== */


/* Category Input Wrapper */
.category-input-wrapper {
    position: relative;
}

/* Category Input Field (looks like form-control) */
.category-input-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    min-height: 38px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: text;
}

.category-input-field:focus-within {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.category-input-field.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.category-input-field.is-invalid:focus-within {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Category Autocomplete Dropdown */
.category-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-autocomplete.show {
    display: block;
}

/* Category Suggestion Items */
.category-suggestion {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 0.9rem;
}

.category-suggestion:hover {
    background-color: #f8f9fa;
}

.category-suggestion.selected {
    background-color: #e7f3ff;
    color: #0d6efd;
}

.category-suggestion:active {
    background-color: #e9ecef;
}

/* Inline Category Tags Container */
.category-tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
}

/* Text Input Inside Category Field */
.category-text-input {
    flex: 1;
    min-width: 150px;
    border: none;
    outline: none;
    padding: 0;
    font-size: 1rem;
    line-height: 1.5;
    background: transparent;
}

.category-text-input::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Individual Category Tag (Inline Version) */
.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: #6f42c1;
    color: #fff;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    gap: 0.375rem;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.category-tag:hover {
    background-color: #5a34a1;
}

/* Remove Tag Button */
.remove-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: background-color 0.15s ease;
    font-weight: bold;
}

.remove-tag:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

/* Category Filter Dropdown (Dashboard) */
.category-filter {
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .remove-tag {
        width: 14px;
        height: 14px;
        font-size: 1rem;
    }

    .category-text-input {
        min-width: 120px;
        font-size: 0.9rem;
    }
}

/* ========================================
   Admin Sidebar Navigation Styles
   ======================================== */

/* Prevent admin sidebar from stretching to match main content height */
#admin-sidebar {
    align-self: flex-start;
    border-radius: 12px;
}

/* Admin sidebar navigation links */
#admin-sidebar .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    color: #6c757d;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

#admin-sidebar .nav-link:hover {
    color: #495057;
    background-color: #f8f9fa;
}

#admin-sidebar .nav-link.active {
    color: #212529;
    background-color: #e9ecef;
    font-weight: 500;
}

#admin-sidebar .nav-link i {
    width: 1.25rem;
    color: inherit;
}

/* Sidebar headings */
#admin-sidebar .sidebar-heading {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   Mobile Admin Sidebar Styles
   ======================================== */

/* Mobile toggle button - positioned as a tab on sidebar edge */
.admin-sidebar-toggle {
    position: absolute;
    top: 70px;
    right: -44px;
    z-index: 10;
    background-color: #747474;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    width: 44px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.admin-sidebar-toggle:hover {
    background-color: #2b2b2b;
}

.admin-sidebar-toggle:active {
    transform: scale(0.95);
}

/* Overlay for mobile sidebar */
.admin-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile sidebar styles */
@media (max-width: 767px) {
    #admin-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background-color: #212529;
        z-index: 1045;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding-top: 1rem;
    }

    #admin-sidebar.active {
        left: 0;
    }

    /* Change text colors for dark sidebar on mobile */
    #admin-sidebar .sidebar-heading {
        color: #adb5bd !important;
    }

    #admin-sidebar .nav-link:hover {
        color: #ffffff;
        background-color: #343a40;
    }

    #admin-sidebar .nav-link.active {
        color: #ffffff;
        background-color: #495057;
    }

    /* Make toggle button sticky so it stays visible when scrolling sidebar content */
    .admin-sidebar-toggle {
        position: fixed;
        top: 70px;
        left: 0;
        transition: left 0.3s ease;
    }

    #admin-sidebar.active .admin-sidebar-toggle {
        left: 280px;
    }
}

/* ============================================
   EXPERTS DIRECTORY STYLES
   ============================================ */

/* Mobile filters sidebar toggle button */
.filters-sidebar-toggle {
    display: none; /* Hidden by default on desktop */
    position: absolute;
    top: 70px;
    right: -44px;
    z-index: 10;
    background-color: #6f42c1;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    width: 44px;
    height: 60px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.filters-sidebar-toggle:hover {
    background-color: #5a2ea6;
}

.filters-sidebar-toggle:active {
    transform: scale(0.95);
}

/* Overlay for mobile filters sidebar */
.filters-sidebar-overlay {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filters-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile filters sidebar styles */
@media (max-width: 768px) {
    /* Show toggle button and overlay on mobile */
    .filters-sidebar-toggle {
        display: flex;
        position: fixed;
        top: 170px;
        left: 0;
        transition: left 0.3s ease;
    }

    .filters-sidebar-overlay {
        display: block;
    }

    #filters-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background-color: #f8f9fa;
        z-index: 1045;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding-top: 1rem;
    }

    #filters-sidebar.active {
        left: 0;
    }

    #filters-sidebar.active .filters-sidebar-toggle {
        left: 280px;
    }

    /* Adjust results count position on mobile */
    #filters-sidebar #resultsCount {
        padding-bottom: 1rem;
    }
}

/* Expert list view items */
.list-group-item {
    background-color: #f8f9fa;
    border-radius: 0.75rem !important;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.list-group-item:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

/* Mobile font size for expert names */
@media (max-width: 768px) {
    #listView .list-group-item h6 {
        font-size: 1.25rem;
    }
}

/* View toggle buttons spacing on desktop */
@media (min-width: 769px) {
    #filters-sidebar .btn-group {
        gap: 8px;
    }

    #filters-sidebar .btn-group .btn {
        border-radius: 0.25rem;
    }
}

/* Directory expert list in modal */
#directoryExpertList .list-group-item {
    background-color: #f8f9fa;
    border-radius: 8px;
}

#directoryExpertList .list-group-item:hover {
    background-color: #e9ecef;
}

/* Remove active/focus/hover states from Advanced toggle */
#advancedToggle,
#advancedToggle:hover,
#advancedToggle:focus,
#advancedToggle:active,
#advancedToggle:focus-visible {
    outline: none;
    box-shadow: none;
    background-color: transparent;
    color: inherit;
    text-decoration: none;
}

/* Make checkbox and radio button labels fully clickable */
.form-check-label {
    cursor: pointer;
    user-select: none;
    padding-left: 0.25rem;
}

.form-check-label:hover {
    opacity: 0.8;
}

/* Custom tabs for directory modal */
.directory-modal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #dee2e6;
}

.directory-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.directory-tab:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.directory-tab.active {
    color: #212529;
    border-bottom-color: #7952cc;
}

/* ============================================
   INVITE MODAL ROUNDUP CARDS
   ============================================ */

/* Hover effect for roundup cards in invite modal */
#inviteModal .roundup-item-checkbox:hover {
    background-color: #f8f9fa !important;
    border-color: #7952cc !important;
    box-shadow: 0 4px 12px rgba(121, 82, 204, 0.15);
}

/* Ensure roundup cards have proper styling in modal */
#inviteModal .roundup-card {
    border-radius: 0.5rem;
}

/* Prevent text selection when clicking on roundup cards */
#inviteModal .roundup-item-checkbox label {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Roundup title with fading border */
.roundup-title-border {
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #dee2e6 0%, transparent 100%);
    border-image-slice: 1;
}

/* Remove h-100 constraint on expert view cards at mobile and tablet breakpoints */
@media (max-width: 991px) {
    .expert-view-cards .card.h-100 {
        height: auto !important;
    }
}

/* Limit quote card preview width at tablet breakpoint */
@media (min-width: 768px) and (max-width: 991px) {
    .quote-card-preview {
        max-width: 50%;
    }
}

/* Override 3-column grid to 2 columns at 1024px width for expert directory */
@media (min-width: 1024px) and (max-width: 1199px) {
    .row-cols-lg-3>* {
        width: 50%;
    }
}

/* Increase width of sort dropdown menus so options fit on one line */
#followersFilterDropdown + .dropdown-menu,
#quotesFilterDropdown + .dropdown-menu {
    min-width: 200px;
}

/* Center status badges on mobile */
@media (max-width: 768px) {
    .status-badge-wrapper {
        text-align: center;
    }
}
