/* ==========================================================================
   Mn Elements Declarations
   ========================================================================== */
html {
    overflow-y: scroll; /* Always show vertical scrollbar */
}


/* ==========================================================================
   Base Styles and Variables
   frank = source serif variable, regular
   work = source sans variable, black
    100: Thin
    200: Extra Light
    300: Light
    400: Regular
    500: Medium
    600: Semi Bold
    700: Bold
    800: Extra Bold
    900: Black
   ========================================================================== */


body {
    font-family: "source-serif-4-variable";
    font-variation-settings: "wght" 400;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding-right: 0 !important;
}
/* Reset default image styles */
img {
    max-width: none;
}

h0 {
    font-family: 'source-serif-4-variable'; 
    font-variation-settings: 'wght' 400; 
    font-size: 3rem; 
    color: var(--text-secondary);
}

/* Add responsive sizes */
@media (max-width: 768px) {
    h0 {
        font-size: 2.2rem;
        line-height: 1.1;  /* Tighter line spacing */
    }
    h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    h0 {
        font-size: 2rem;
        line-height: 1.1;  /* Tighter line spacing */
    }
    h4 {
        font-size: 1.2rem;
    }
}

h1 {
    font-family: "source-serif-4-variable";
    font-variation-settings: "wght" 400;
    font-optical-sizing: auto;
    color: var(--text-secondary) !important;
}

h2, h3, h4, h5, h6 {
    font-family: "source-sans-3-variable";
    font-optical-sizing: auto;
    font-variation-settings: "wght" 900;
    color: var(--text-secondary) !important;
}

p, label, a, span, small {
    font-family: "source-serif-4-variable";
    font-optical-sizing: auto;
    font-variation-settings: "wght" 400;
    color: var(--text-primary);
}

text {
    font-optical-sizing: auto;
    color: var(--text-primary);
}

.serif {
    font-family: "source-serif-4-variable";
    font-variation-settings: "wght" 400;
}

/* Default (large screens) */
.logo-frank {
    font-family: source-serif-4-variable;
    font-variation-settings: 'wght' 400;

}

.logo-work {
    font-family: source-sans-3-variable;
    font-variation-settings: 'wght' 900;
    font-size: 0.93em;

}

/* ==========================================================================
   Button Declarations
   ========================================================================== */
.btn-outline {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--text-primary) !important;
}

.btn-outline:hover {
    background-color: var(--bg-primary) !important;
    color: var(--text-primaryr) !important;
    border-color: var(--text-primary) !important;
}

/* ==========================================================================
   Header and Navigation
   ========================================================================== */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

/* ==========================================================================
   Navbar Declarations
   ========================================================================== */
.navbar .profile-pic,
.navbar img.profile-pic {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar .bi-person-circle.profile-pic {
    font-size: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* Navbar Profile Image */
img.navbar-profile-pic {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    vertical-align: middle !important;
}

/* Navbar Profile Icon */
i.navbar-profile-icon {
    font-size: 38px !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
}

/* Super specific navbar profile styles */
.navbar .navbar-profile-container img.navbar-profile-pic {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset any Bootstrap img styles */
.navbar .navbar-profile-container img.navbar-profile-pic[src] {
    max-width: 38px !important;
    max-height: 38px !important;
}

/* Icon fallback */
.navbar .navbar-profile-container i.navbar-profile-icon {
    font-size: 38px !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ==========================================================================
   Tabs Styles
   ========================================================================== */
.nav-tabs {
    border-bottom-color: transparent;
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    padding: 1rem 1.5rem;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--text-primary);
}

.nav-tabs .nav-link.active {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--text-primary);
    color: var(--text-primary);
}

/* ==========================================================================
   Profile Page Styles
   ========================================================================== */

.profile-photo-container img.profile-photo {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

.profile-photo-container .bi-person-circle {
    font-size: 80px !important;
    line-height: 100px !important;
}

.upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    padding: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
}

.profile-photo-container:hover .upload-overlay {
    opacity: 1;
}

/* Profile Page Image */
img.page-profile-pic {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Profile Page Icon */
i.page-profile-icon {
    font-size: 100px !important;
    width: 100px !important;
    height: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ==========================================================================
   Chat Declarations
   ========================================================================== */
.message {
    max-width: 80%;
}

.message.self {
    margin-left: auto;
    margin-right: 15px;
}

#chat .card {
    height: auto;
}

#chat .card-body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#chatMessages {
    flex-grow: 1;
    overflow-y: auto;
}

.chat-input {
    margin-top: auto;
    padding-bottom: 15px;
}

#chatMessages .message {
    max-width: 80%;
}

#chatMessages .message.self {
    margin-left: auto;
}

#chatMessages .message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    margin-top: 0.25rem;
}

#chatMessages .message-bubble.other {
    background-color: var(--bg-primary);
    border-top-left-radius: 0;
    color: var(--text-primary);
}

#chatMessages .message-bubble.self {
    border: 1px solid var(--text-secondary);
    color: var(--bg-secondary);
    background-color: var(--text-secondary);
    border-top-right-radius: 0;
}

/* Private Message Styles */
#chatMessages .private-message {
    background-color: #fff3cd !important;
    border-color: #ffeeba !important;
}

#chatMessages .private-message::placeholder {
    color: #856404 !important;
}

#chatMessages .message-bubble.private {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

#chatMessages .message-bubble.private.self {
    background-color: #ffe8bc;
    border: 1px solid #ffd591;
    color: #875a00;
}

#chatMessages .message.private .message-content {
    position: relative;
}


/* ==========================================================================
   AI Suggestions Declarations
   ========================================================================== */

.ai-content {
    font-size: 0.9rem;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 0.5rem;
    color: var(--text-secondary);
}

/* Styling for numbered lists */

.ai-content ol li {

    padding-left: 0.5rem;
}

/* Styling for bullet points */
.ai-content ul {
    list-style-type: none;
    padding-left: 1.2rem;

}

.ai-content ul li {
    position: relative;
}

.ai-content ul li:before {
    content: "•";
    color: var(--text-secondary);
    position: absolute;
    left: -1.2rem;
}

/* Highlight important sections */
.ai-content strong, b {
    color: var(--text-primary);
    font-weight: 600;
}

/* Style phase references */
.ai-content em,
.ai-content i {
    color: var(--text-secondary);
    font-style: normal;
}

.ai-content p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ==========================================================================
   Cards and Services
   ========================================================================== */
.card {
    transition: transform 0.2s ease-in-out;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    font-family: "source-serif-4-variable";
    font-optical-sizing: auto;
    font-variation-settings: "wght" 400;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.card:hover {
    transform: var(--card-hover-transform);
}

.card-body {
    background-color: var(--card-bg);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-bottom: 0px;
    padding-bottom: 0px;
}
.card-header {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.card-no-header {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

/* Service Cards */
.service-card {
    height: 250px;
    position: relative;
    padding-top: 20px;
}

/* ==========================================================================
   Messages
   ========================================================================== */
.messages-container {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==========================================================================
   Timeline Declarations
   ========================================================================== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -22px;
    top: 10px;
    bottom: -5px;
    width: 2px;
    background-color: var(--text-muted);
}

.timeline-item i {
    position: absolute;
    left: -27px;
    top: 4px;
    font-size: 12px;
    z-index: 1;
}

.timeline-content {
    padding-left: 10px;
}

/* ==========================================================================
   Utilities and Helper Classes
   ========================================================================== */
.text-light-emphasis {
    color: var(--text-secondary) !important;
}

.form-control:disabled {
    background-color: var(--input-bg) !important;
    color: var(--text-secondary) !important;
    opacity: 0.8;
}
/* Style placeholder text */
.form-control::placeholder {
    color: var(--text-secondary) !important;
    opacity: 1; /* Firefox */
}

/* For older browsers */
.form-control::-webkit-input-placeholder {
    color: var(--text-secondary) !important;
    opacity: 1;
}

.form-control::-moz-placeholder {
    color: var(--text-secondary) !important;
    opacity: 1;
}

.form-control:-ms-input-placeholder {
    color: var(--text-secondary) !important;
    opacity: 1;
}

/* Navbar Profile Styles */
.navbar .navbar-profile-container img.profile-pic {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Icon fallback */
.navbar .navbar-profile-container i.profile-pic {
    font-size: 38px !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
}

/* Light theme for all modals */
.modal {
    --bs-modal-bg: var(--bg-primary);
    --bs-modal-color: var(--text-primary);
    --bs-modal-border-color: var(--border-color);
    --bs-modal-header-border-color: var(--border-color);
    --bs-modal-footer-border-color: var(--border-color);
}

.modal .form-control,
.modal .form-select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-color);
}

.modal .form-control:focus,
.modal .form-select:focus {
    background-color: var(--input-focus-bg);
    color: var(--text-primary);
    border-color: var(--input-focus-border);
}

.text-shadow {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}



/* Form Controls */
.form-control, .form-select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-color);
}

.form-control:focus, .form-select:focus {
    background-color: var(--input-focus-bg);
    border-color: var(--input-focus-border);
    color: var(--text-primary);
}

.form-control:disabled {
    background-color: var(--input-bg) !important;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    --bs-modal-bg: var(--modal-bg);
    --bs-modal-color: var(--text-primary);
    --bs-modal-border-color: var(--modal-border);
    --bs-modal-header-border-color: var(--modal-border);
    --bs-modal-footer-border-color: var(--modal-border);
}

/* Table Styles */
.table {
    --bs-table-bg: var(--table-bg);
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--table-border);
    --bs-table-striped-bg: var(--bg-secondary);
    --bs-table-striped-color: var(--text-primary);
    --bs-table-hover-bg: var(--table-hover);
    --bs-table-hover-color: var(--text-primary);
}

/* ==========================================================================
   Alerts Declarations
   ========================================================================== */
.alert-info {
    background-color: var(--alert-bg);
    border-color: var(--alert-border);
    color: var(--text-primary);
}

/* Text Colors */
.text-muted {
    color: var(--text-muted) !important;
}

/* Upload Overlay */
.upload-overlay {
    background: rgba(0,0,0,0.5);
}

/* Keep profile picture styles as is since they use !important */

/* ==========================================================================
   Dropdown menu Declarations
   ========================================================================== */
.dropdown-menu {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

.dropdown-menu .dropdown-item {
    color: var(--text-primary) !important;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.dropdown-divider {
    border-color: var(--border-color) !important;
}

/* ==========================================================================
   Star Rating Declarations
   ========================================================================== */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #6c757d;
    font-size: 1.5rem;
}

.star-rating input:checked ~ label {
    color: #ffc107;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}

/* Review Styles */
.submitted-review {
    background-color: #2a2a2a;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Star Rating Styles */
.rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    color: #6c757d;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #ffc107;
}

/* ==========================================================================
   Progress Tracker Declarations
   ========================================================================== */
.progress-tracker {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 1rem;
    position: relative;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-marker {
    width: 48px;
    height: 48px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    border: 2px solid var(--border-color);
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-marker .step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--bg-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--border-color);
}

.progress-marker i {
    font-size: 1.2rem;
    color: var(--border-color);
}

.progress-label {
    font-size: 0.9rem;
    color: var(--border-color);
    margin-top: 0.5rem;
}

.progress-line {
    position: absolute;
    top: 24px;
    left: 50%;
    right: -50%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

/* Step States */
.progress-step.complete .progress-marker {
    background-color: var(--bg-primary);
    border: 2px solid var(--text-secondary);
}

.progress-step.complete .progress-marker i,
.progress-step.complete .progress-marker {
    color: var(--text-secondary);
}

.progress-step.complete .progress-label {
    color: var(--text-secondary);
}

.progress-step.complete .progress-line {
    background-color: var(--text-secondary);
}
.progress-step.complete .step-number {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.progress-step.current .progress-marker {
    background-color: var(--bg-primary);
    border: 2px solid var(--text-primary);
    transform: scale(1.1);
}

.progress-step.current .progress-marker i,
.progress-step.current .progress-marker {
    color: var(--text-primary);
}

.progress-step.current .progress-label {
    color: var(--text-primary);
    font-weight: bold;
}

.progress-step.current .step-number {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

@media (max-width: 768px) {
    .progress-label {
        font-size: 0.8rem;
    }
    
    .progress-marker {
        width: 40px;
        height: 40px;
    }
    
    .progress-marker .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .progress-marker i {
        font-size: 1rem;
    }
}

/* Light Theme */
[data-theme="light"] {
    .form-select {
        color: var(--text-secondary);
        background-color: var(--bg-secondary);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e")
    }
    /* Base Colors */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-color: #ced4da;
    
    /* Interactive Elements */
    --link-color: #0d6efd;
    --link-hover: #0a58ca;
    --btn-primary-bg: #0d6efd;
    --btn-primary-color: #212529;
    --btn-border-color: #0a58ca;
    
    /* Forms and Inputs */
    --input-bg: #fff;
    --input-border: #ced4da;
    --input-color: #212529;
    --input-focus-bg: #fff;
    --input-focus-border: #86b7fe;

    
    /* Navigation */
    --nav-bg: #f8f9fa;
    --nav-color: #212529;
    --nav-hover: #0d6efd;
    --nav-active: #0d6efd;
    
    /* Progress Elements */
    --progress-bg: #e9ecef;
    --progress-bar: var(--bs-primary);
    --progress-text: var(--text-primary);
    
    /* Modal */
    --modal-bg: #fff;
    --modal-border: var(--text-secondary);
    
    /* Tables */
    --table-bg: #fff;
    --table-border: #dee2e6;
    --table-hover: rgba(0,0,0,0.075);
    
    /* Cards */
    --card-bg: #fff;
    --card-border: #ced4da;
    --card-hover-transform: translateY(-5px);
    
    /* Alerts */
    --alert-bg: #f8f9fa;
    --alert-border: rgba(0,0,0,0.125);
}

