/*
 * Global CSS variables for typography and other reusable values.
 * Defining these on the :root pseudo-class makes them accessible
 * throughout your entire document.
 */
:root {
    --font-family-base: system-ui, -apple-system, "system-ui", "Segoe UI",
        Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol";
    --font-size-base: 13px;
    --font-weight-base: 400;
    --line-height-base: 1.3; /* Using a unitless line-height is best practice */
    --color-text-base: rgba(255, 255, 255, 0.7);
    --color-background-base: rgba(0, 0, 0, 0);
}

.fw-semibold {
    font-weight: 300 !important;
    font-size: 14px !important;
}
.text-muted.small.text-nowrap {
    font-size: 12px !important; /* set your desired size */
}

.p-3.border-bottom.d-none.d-md-flex.align-items-center.justify-content-between.align-items-center {
    position: relative;
    display: block;
    box-sizing: border-box;
    padding: 14px 16px 11px !important;
    flex-grow: 1;
    max-width: 100%;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 8px; /* spacing between items */
    font-size: 0.7rem;
}

.page-text {
    white-space: nowrap;
}

.page-count {
    font-weight: 700;
}

.record-text {
    white-space: nowrap;
}

.records-select {
    width: auto;
    font-size: 0.7rem;
    /* padding: 4px 8px; */
}

.custom-ellipsis {
    display: inline-block;
    overflow: hidden;
    padding-right: 21px;
    max-width: 100%;
    color: rgb(83, 92, 105);
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
    font-size: 14px;
    font-family: var(--ui-font-family-primary, var(--ui-font-family-helvetica));
}
body {
    background-image: url("../image/bgImage.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    overflow: hidden;
    /* Use the global font family for the entire body */
    font-family: var(--font-family-base);
}

/* Custom scrollbar for a more modern look */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/*
 * The .element class now references the global CSS variables.
 * This is where your desired global styles are applied.
 */
.element {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-base);
    line-height: var(--line-height-base);
    color: var(--color-text-base);
    background-color: var(--color-background-base);
    text-decoration: none solid var(--color-text-base);
    text-align: none solid var(--color-text-base);
    vertical-align: baseline;
}

/* Custom class for the frosted glass effect */
.glass-panel {
    background-color: rgba(255, 255, 255);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.glass-panel-kanban {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: scroll;
    max-width: 78vw;
}

/* Animation for all interactive elements */
.animated-item {
    transition: all 0.2s ease-in-out;
}

.animated-item:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* Custom sidebar styles */
.sidebar {
    width: 230px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 4px;
}
.custom-padding-small {
    padding: 0.75rem !important;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    /* Uses the global font family */
    font-family: var(--font-family-base);
    font-weight: 300;
    font-size: 14px;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar .nav-link.active {
    background-color: rgba(246, 239, 239, 0.2);
    color: white;
}

/* Offcanvas styles to match sidebar */
.offcanvas-start {
    background-image: linear-gradient(to bottom, #4a559a, #3a437c);
}

/* Custom header styles */
.top-header {
    position: static;
    background-color: rgba(14, 34, 132, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
}

/* Custom button gradients */
.btn-upgrade-gradient {
    background-image: linear-gradient(to right, #ec4899, #f97316);
    border: none;
}

/* Custom input styles */
.search-input-dark {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    color: white;
}

.search-input-dark::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input-dark:focus {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Custom styles for responsiveness on small screens */
@media (max-width: 992px) {
    .glass-panel .p-3.border-bottom {
        overflow-x: auto;
    }
}

/* Custom styles for the invitation modal */
.invitation-panel {
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.invitation-panel .form-label {
    font-weight: 500;
    color: #333;
}

.invitation-panel .form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
}

.invitation-panel .btn-custom {
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #2ecc71;
    color: white;
    border: none;
}

.invitation-panel .btn-custom:hover {
    background-color: #27ae60;
}

.invitation-panel .btn-outline-secondary {
    background-color: #fff;
    border-color: #6c757d;
    color: #6c757d;
}

.invitation-panel .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

.invitation-panel .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.btntext {
    color: rgb(229, 229, 253);
    background-color: rgba(171, 174, 198, 0.596);
    padding: 3px 9px;
    display: flex;
    gap: 10px;
}
.d-flex.flex-wrap.align-items-center.justify-content-between.gap-3.mb-4 {
    --ui-actions-bar-elements-gap-x: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    min-height: 28px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* overrides Bootstrap's justify-content-between */
    align-items: center;
    gap: var(--ui-actions-bar-elements-gap-x);
}

.btntext:active {
    color: oklab(0.999994 0.0000455678 0.0000200868);
}

.btn.btntext {
    border-radius: 0 !important;
}

.btnContainer {
    border-radius: 8px;
    gap: 0 !important;
    overflow: hidden;
    display: flex;
}

.pageName {
    font-size: 22px !important;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.headerButton {
    padding: 6px 13px;
    font-size: 14px;
    font-weight: 400;
}

.inviteButton {
    background-color: #1cae6a;
    color: #fff;
    font-size: 13px !important;
}

.inviteButton button {
    color: #fff;
    font-weight: 400;
}

.badge {
    font-size: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.666);
    background-color: rgba(255, 255, 255, 0.314);
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.search-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 500px; /* Adjust this to slightly larger than your expanded input width */
    display: flex; /* Ensure it behaves well within flex containers */
    align-items: center;
}

.search-input-dark {
    background-color: rgba(196, 202, 213, 0.295);
    min-width: 350px;
    width: 350px; /* Explicitly set initial width to prevent initial "min-width" quirks */
    transition: width 0.4s ease-in-out;
    border: 1px solid #ccc;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    color: white; /* Assuming text is white based on icon color */
}

.search-input-dark:focus {
    width: 450px;
    outline: none;
    border-color: #ffff; /* Change this to your preferred color code */
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 0.75rem; /* Initial position relative to the input */
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.5);
    transition: right 0.4s ease-in-out; /* Animate the icon's right property */
}
/* New styles for right-side icon panel */
.icon-panel {
    width: 70px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background-color: transparent;
    position: absolute;
    top: 0;
    right: 0;
}

.icon-panel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 8px;
    width: 100%;
}

.icon-panel-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.icon-panel-item i {
    margin-bottom: 5px;
    font-size: 20px;
}

.main-content-container {
    display: flex;
    flex: 1;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Kanban board styles */
.kanban-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 16px;
    min-height: 70vh;
}

.kanban-column {
    flex: 0 0 250px;
    padding: 16px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-left: 1px white dashed;
}

.kanban-column-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #2fc6f6;
    border-radius: 10px;
    padding: 5px 10px;
}

.kanban-column-title {
    font-weight: 400;
    font-size: 12px;
    color: #333;
}

.kanban-column-count {
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 8px;
    font-weight: 600;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100px;
}

.kanban-card {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: grab;
    transition: all 0.2s ease;
}

.kanban-card:active {
    cursor: grabbing;
    transform: rotate(2deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.kanban-card-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin: 0;
}

.kanban-card-price {
    font-weight: 700;
    font-size: 14px;
    color: #1cae6a;
}

.kanban-card-content {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.kanban-card-client {
    display: flex;
    align-items: center;
    gap: 4px;
}

.client-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4a559a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 600;
}

.kanban-card-dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.kanban-column-drag-over {
    background-color: rgba(28, 174, 106, 0.1);
}

@media (max-width: 768px) {
    .kanban-container {
        flex-direction: row;
        overflow-x: auto;
    }

    .kanban-column {
        flex: 0 0 85%;
    }
}
:root {
    --font-family-base: "Inter", system-ui, -apple-system, "system-ui",
        "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-size-base: 13px;
    --font-weight-base: 400;
    --line-height-base: 1.3;
    --color-text-base: rgba(255, 255, 255, 0.7);
    --color-background-base: rgba(0, 0, 0, 0);
    --form-field-border: 1px solid rgba(0, 0, 0, 0.1);
    --form-field-border-hover: 1px solid rgba(0, 0, 0, 0.2);
    --form-field-border-focus: 1px solid #007bff;
    --form-field-background: #fdfdfd;
    --color-stage-active: #39ff14;
    --color-stage-completed: #53d2dc;
    --color-stage-pending: #e9ecef;
    --color-stage-text-active: #1e293b;
    --color-stage-text-default: #333;
}

/* Custom scrollbar for a more modern look */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Specific typography adjustments */
.fw-semibold {
    font-weight: 300 !important;
    font-size: 14px !important;
}
.text-muted.small {
    font-size: 12px !important;
}

/* Custom styles for the modal */
.custom-modal-content {
    background-color: #f8f9fa;
    color: #333;
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: 90vh;
    margin-top: 5vh;
    margin-bottom: 5vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-family-base);
}

.custom-modal-dialog {
    max-width: 90vw;
    margin-left: auto;
    margin-right: 1.5rem;
    height: 100vh;
    position: relative;
}

/* Custom Close Button Styling */
.custom-external-close-btn {
    position: absolute;
    top: 2.5vh;
    left: -32px;
    width: 32px;
    height: 32px;
    border-radius: 50% 0 0 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    z-index: 1055;
    transition: background-color 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding-right: 2px;
}

.custom-external-close-btn:hover {
    background-color: #0056b3;
}

.custom-modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.custom-modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.custom-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.modal-nav-tabs {
    border-bottom: none;
    margin-bottom: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.modal-nav-tabs .nav-item {
    flex-shrink: 0;
}

.modal-nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0.75rem 1rem;
    margin-right: 0.5rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    white-space: nowrap;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-base);
}

.modal-nav-tabs .nav-link:hover {
    color: #333;
    background-color: #f0f0f0;
}

.modal-nav-tabs .nav-link.active {
    color: #333;
    background-color: #ffffff;
    border-bottom: 2px solid #39ff14;
    font-weight: 600;
}

.creation-panel {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex-grow: 1;
    overflow-y: auto;
}

.panel-heading {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-heading .edit-btn {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
}

/* --- Modern Inline Writing Field Styling --- */
.field-group {
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: var(--form-field-border);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.field-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.field-label {
    
    font-size: var(--font-size-base);
    color: #6c757d;
    margin-bottom: 0;
    flex-shrink: 0;
    white-space: nowrap;
    padding-right: 0.5rem;
    font-weight: 500;
}

.field-input,
.field-select,
.field-textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-base);
    line-height: 1.5;
    color: #333;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    color: #333;
    background-color: transparent;
    border-color: #007bff;
    outline: 0;
    box-shadow: none;
}

.field-input::placeholder,
.field-textarea::placeholder {
    color: #adb5bd;
    font-style: italic;
    opacity: 1;
}

.field-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    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='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px 10px;
}

.field-textarea {
    min-height: 80px;
    resize: vertical;
}

/* New styles from second block */
.custom-modal-body {
    padding: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    gap: 0;
    position: relative;
}

.lifecycle-header-stages {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
}

.lifecycle-stage-container.completed {
    display: flex;
    flex-wrap: nowrap;
    background-color: #7ec3d1;
    color: #fff;
    border-top-left-radius: 0.35rem;
    border-bottom-left-radius: 0.35rem;
    padding: 0.5rem 0;
    z-index: 1;
}

.lifecycle-stage-label {
    padding: 0 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.lifecycle-stage-item {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 0.35rem;
    background-color: #e6e6e6;
    color: #333;
}

.lifecycle-stage-item.active {
    background-color: #8cff33;
    color: #000;
    font-weight: 700;
    margin-left: -0.5rem;
    box-shadow: 0 2px 8px rgba(140, 255, 51, 0.3);
    z-index: 2;
}

.left-panel {
    flex-basis: 65%;
    min-width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-right: 1.5rem;
}

.right-panel {
    flex-basis: 35%;
    flex-grow: 1;
    min-width: 400px;
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 1.5rem;
}

.timeline-gutter {
    width: 30px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    padding: 35px;
}

.timeline-gutter::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
    z-index: 0;
}

.info-panel,
.lifecycle-status-panel {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.field-value-display {
    font-size: var(--font-size-base);
    color: #333;
    flex-grow: 1;
    line-height: var(--line-height-base);
    word-break: break-word;
}

.field-value-display.link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.field-value-display.link:hover {
    text-decoration: underline;
}

.field-group.total-experience {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.field-group.total-experience .field-label {
    flex-basis: 100%;
    padding-bottom: 0.5rem;
}

.field-group.total-experience > div {
    flex-grow: 1;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: var(--form-field-border);
}

.field-group.total-experience > div:last-of-type {
    border-bottom: none;
}

.field-group.total-experience > div .field-label {
    padding-right: 0;
    padding-bottom: 0;
}

.current-stage-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f0f0f0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.current-stage-display .stage-text {
    color: #333;
    font-size: 1rem;
}

.current-stage-display .stage-progress-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin: 0 1rem;
    position: relative;
}

.current-stage-display .stage-progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 70%;
    background-color: #39ff14;
    border-radius: 4px;
}

.current-stage-display .stage-action-dropdown .dropdown-toggle {
    background-color: transparent;
    border: none;
    color: #333;
    font-size: 0.9rem;
    padding-right: 0.5rem;
}

.current-stage-display .stage-action-dropdown .dropdown-toggle::after {
    display: none;
}

.current-stage-display .stage-action-dropdown .lucide-icon {
    margin-left: 0.25rem;
}

.activity-remark-section {
    background-color: #e6f7ff;
    border: 1px solid #cceeff;
    color: #333;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.activity-remark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #0056b3;
    font-size: 1rem;
}

.activity-remark-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.activity-remark-options .btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
}

.activity-remark-textarea {
    margin-bottom: 0.75rem;
}

.activity-remark-textarea .form-control {
    border-color: #aae0ff;
    background-color: #f0faff;
    min-height: 80px;
    padding: 0.75rem;
    font-size: var(--font-size-base);
    border-radius: 0.35rem;
    resize: vertical;
}

.activity-remark-textarea .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}

.activity-remark-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.logs-timeline-section {
    flex-grow: 1;
    padding-top: 1rem;
    position: relative;
}

.timeline-date-separator {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
    background-color: #e9ecef;
    padding: 0.3rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    left: -42px;
    transform: translateX(-50%);
    width: auto;
    white-space: nowrap;
}

.timeline-date-separator::before,
.timeline-date-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 4.5rem);
    height: 1px;
    background-color: #e0e0e0;
    z-index: -1;
}

.timeline-date-separator::before {
    left: 0;
}

.timeline-date-separator::after {
    right: 0;
}

.log-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.log-entry.stage-changed {
    background-color: #eaf7ed;
    border-color: #d4edda;
}

.log-icon {
    color: #6c757d;
    font-size: 1.1rem;
    flex-shrink: 0;
    position: absolute;
    left: -3.3rem;
    top: 0.75rem;
    width: 2rem;
    height: 2rem;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.log-icon.text-success {
    color: #28a745;
    border-color: #28a745;
}

.log-icon.text-info {
    color: #17a2b8;
    border-color: #17a2b8;
}

.log-icon.text-primary {
    color: #007bff;
    border-color: #007bff;
}

.log-icon.text-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.log-icon.text-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.log-icon.text-muted {
    color: #6c757d;
    border-color: #6c757d;
}

.log-content {
    flex-grow: 1;
}

.log-message {
    font-size: var(--font-size-base);
    color: #333;
    line-height: var(--line-height-base);
    margin-bottom: 0.2rem;
}

.log-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

.log-meta strong {
    font-weight: 600;
    color: #555;
}

.log-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
    flex-shrink: 0;
    margin-left: auto;
}

.modal-footer-custom {
    border-top: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-custom {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    font-size: var(--font-size-base);
}

.btn-secondary-custom {
    background-color: #e9ecef;
    color: #333;
    border: 1px solid #ced4da;
}

.btn-secondary-custom:hover {
    background-color: #dde1e5;
    color: #333;
    border-color: #adb5bd;
}

.btn-primary-custom {
    background-color: #39ff14;
    color: #1e293b;
    border: none;
    text-shadow: none;
    font-weight: 600;
}

.btn-primary-custom:hover {
    background-color: #5aff3b;
    color: #1e293b;
}

/* --- Slide-Up/Slide-Down Animation Styles --- */
.modal {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.show {
    transform: translateY(0);
    opacity: 1;
}

.modal-dialog {
    transition: transform 0.3s ease-out;
}

.custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    cursor: pointer;
    border: 1px dashed #ced4da;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: var(--font-size-base);
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.custom-file-upload:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.file-preview-container {
    display: none;
    align-items: center;
    justify-content: space-between;
    background-color: #e9f5ff;
    border: 1px solid #cce5ff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.file-preview-container .file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-preview-container .file-icon {
    width: 24px;
    height: 24px;
    color: #007bff;
}

.file-preview-container .file-name {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: #0056b3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-container .remove-file-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .custom-modal-dialog {
        width: 95vw;
        margin-right: 2.5vw;
        margin-left: 2.5vw;
        max-width: none;
    }
    .custom-modal-content {
        height: 95vh;
    }
    .custom-modal-body {
        flex-direction: column;
        gap: 1rem;
    }
    .left-panel {
        flex-basis: auto;
        min-width: unset;
        padding-right: 1rem;
    }
    .right-panel {
        padding-left: 1rem;
    }
    .timeline-gutter {
        display: none;
    }
    .info-panel,
    .lifecycle-status-panel {
        padding: 1rem;
    }
    .field-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .field-group .field-label {
        padding-right: 0;
        width: 100%;
    }
    .field-group .field-value-display {
        width: 100%;
    }
    .field-group.total-experience > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .field-group.total-experience > div .field-label {
        width: 100%;
    }
    .current-stage-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .current-stage-display .stage-progress-bar {
        width: 100%;
        margin: 0.5rem 0;
    }
    .current-stage-display .stage-action-dropdown {
        width: 100%;
    }
    .logs-timeline-section {
        padding-left: 0.5rem;
    }
    .log-icon {
        position: static;
        margin-right: 0.5rem;
        left: auto;
        top: auto;
        width: 24px;
        height: 24px;
        border: none;
        background-color: transparent;
    }
    .timeline-date-separator {
        left: 0;
        transform: none;
        width: auto;
        margin-left: 0;
        text-align: left;
    }
    .timeline-date-separator::before,
    .timeline-date-separator::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .custom-modal-dialog {
        margin: 0.5rem;
        width: calc(100% - 1rem);
        height: calc(100% - 1rem);
    }
    .custom-modal-content {
        height: 100%;
        margin: 0;
    }
    .modal-nav-tabs {
        justify-content: flex-start;
    }
    .custom-external-close-btn {
        top: 0.5rem;
        left: 0.5rem;
    }
}

