html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}


.or {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .or .or-line {
        border-bottom: 1px solid var(--bs-body-color);
        width: 100%;
        opacity: 0.2;
    }

    .or .or-text {
        padding: 0 0.625rem 0px 0.625rem;
        font-size: 0.75rem;
        line-height: 1.125rem;
        color: var(--bs-body-color);
        opacity: 0.7;
    }

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.625rem;
}

.links-container {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

    .links-container .dot {
        height: 0.3125rem;
        width: 0.3125rem;
        margin: 0 0.1875rem;
        border-radius: 50%;
        background-color: var(--bs-body-color);
        opacity: 0.7;
    }

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary);
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .info-message.info-panel {
        margin-bottom: 0.625rem;
    }

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    height: 4.3125rem;
    font-size: 1.875rem;
}

.title-content-text-secondary {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: 1rem;
    height: 1rem;
}

.icon-google {
    background-image: url("/images/account/providers/google-logo.svg")
}

.icon-facebook {
    background-image: url("/images/account/providers/facebook-logo.svg")
}

.icon-microsoft {
    background-image: url("/images/account/providers/microsoft-logo.svg")
}

.icon-twitter {
    background-image: url("/images/account/providers/x-logo.svg")
}

@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
}

/* Google Maps Integration */
.asset-map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asset-map {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.asset-address {
    text-align: center;
    max-width: 280px;
    word-wrap: break-word;
}

/* Ensure maps load properly in grid cells */
.dxbs-grid-cell .asset-map {
    min-height: 150px;
}

/* Loading state for maps */
.asset-map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.asset-map-loading i {
    font-size: 2rem;
    color: #6c757d;
}

/* Location & Map Container */
.location-map-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.location-info {
    text-align: center;
    width: 100%;
}

.location-text {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.coordinates {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.map-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.asset-map {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.asset-map-placeholder {
    width: 280px;
    height: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border: 2px dashed #dee2e6;
}

.asset-map-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.asset-map-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .asset-map,
    .asset-map-placeholder {
        width: 100%;
        max-width: 280px;
    }
}

/* Gantt Chart Styles */
.gantt-container {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gantt-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.gantt-date-header-row {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

.gantt-hour-header-row {
    display: flex;
    position: relative;
}

.gantt-date-header {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    color: #495057;
    border-right: 1px solid #dee2e6;
    min-width: 120px;
    position: relative;
}

.gantt-date-header:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background-color: #adb5bd;
    z-index: 5;
}

.gantt-hour-header {
    padding: 4px 1px;
    text-align: center;
    font-size: 10px;
    color: #6c757d;
    border-right: 1px solid #e9ecef;
    min-width: 60px;
    position: relative;
}

.gantt-user-header {
    min-width: 150px;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    color: #495057;
    background: #e9ecef;
    border-right: 2px solid #dee2e6;
    font-size: 14px;
}

/* Day boundary styling */
.day-boundary {
    border-left: 2px solid #007bff !important;
    background-color: rgba(0, 123, 255, 0.05);
}

.day-boundary::before {
    content: '';
    position: absolute;
    top: -100%; /* Extend to date header */
    left: 0;
    width: 2px;
    height: 200%; /* Extend through both header rows */
    background-color: #007bff;
    z-index: 5;
}

/* Scheduling page header */
.scheduling-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.scheduling-title h2 {
    margin: 0;
    color: #495057;
    font-size: 1.75rem;
    font-weight: 600;
}

/* Auto-scheduling controls */
.auto-scheduling-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auto-scheduling-controls .dxbs-button {
    min-width: 140px;
    font-size: 14px;
    font-weight: 500;
}

.auto-scheduling-controls .dxbs-button i {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .scheduling-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .scheduling-title h2 {
        font-size: 1.5rem;
    }

    .auto-scheduling-controls {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .auto-scheduling-controls .dxbs-button {
        width: 100%;
        min-width: unset;
    }
}

/* Notification Checklist Styles */
.checklist-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.checklist-header {
    text-align: center;
    margin-bottom: 2rem;
}

.checklist-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.checklist-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 400;
}

.notification-list {
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: white;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
    position: relative;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.notification-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

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

.notification-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 8px;
}

.notification-item-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.notification-item-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.notification-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-item-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.notification-time {
    color: #adb5bd;
    font-weight: 500;
}

.notification-type {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

/* Priority styling */
.notification-item.priority-high {
    border-left: 4px solid #dc3545;
}

.notification-item.priority-high .notification-item-icon {
    background: #fff5f5;
    border-color: #dc3545;
}

.notification-item.priority-medium {
    border-left: 4px solid #fd7e14;
}

.notification-item.priority-medium .notification-item-icon {
    background: #fff8f0;
    border-color: #fd7e14;
}

.notification-item.priority-low {
    border-left: 4px solid #28a745;
}

.notification-item.priority-low .notification-item-icon {
    background: #f8fff9;
    border-color: #28a745;
}

/* No notifications state */
.no-notifications {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.no-notifications-icon {
    margin-bottom: 1rem;
}

.no-notifications-icon span {
    font-size: 3rem;
    color: #28a745;
}

.no-notifications h3 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.no-notifications p {
    color: #6c757d;
    font-size: 1rem;
}

/* Custom scrollbar for notification list */
.notification-list::-webkit-scrollbar {
    width: 8px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive design */
@media (max-width: 1200px) {
    .checklist-container {
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .notification-list {
        max-height: 450px;
    }

    .notification-item {
        padding: 1rem;
    }

    .checklist-title {
        font-size: 2rem;
    }

    .notification-item-icon {
        width: 40px;
        height: 40px;
    }

    .notification-item-icon img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .checklist-container {
        padding: 0 0.5rem;
    }

    .notification-list {
        max-height: 400px;
    }

    .notification-item {
        padding: 0.75rem;
    }

    .checklist-title {
        font-size: 1.75rem;
    }
}

/* Notification Bell and Dropdown Styles */
.notification-container {
    position: relative;
    margin-right: 1rem;
}

.notification-button-wrapper {
    position: relative;
    display: inline-block;
}

.custom-notification-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--bs-dark);
    margin-top: 0.25rem;
}

.custom-notification-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.custom-notification-button .icon {
    width: 0.875rem !important;
    height: 0.875rem !important;
    background-color: currentColor;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #343a40;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid #e9ecef;
    z-index: 1000;
    margin-top: 0.5rem;
    overflow: hidden;
    max-height: 350px;
    display: flex;
    flex-direction: column;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.notification-dropdown-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.mark-all-read-btn:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.notification-dropdown-content {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: none !important;
    min-height: 0 !important;
}

/* Custom scrollbar for notification dropdown */
.notification-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.notification-dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.notification-dropdown-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.notification-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.notification-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

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

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

.notification-dropdown-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 6px;
}

.notification-dropdown-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.notification-dropdown-item-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.notification-dropdown-item-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-dropdown-item-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-dropdown-time {
    font-size: 0.7rem;
    color: #adb5bd;
    font-weight: 500;
}

.notification-dropdown-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.view-all-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

.no-notifications-dropdown {
    text-align: center;
    padding: 2rem 1.5rem;
    color: #6c757d;
}

.no-notifications-dropdown span {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 0.5rem;
    display: block;
}

.no-notifications-dropdown p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive design for notification dropdown */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 320px;
        right: -50px;
    }

    .notification-dropdown-item {
        padding: 0.75rem 1rem;
    }

    .notification-dropdown-header {
        padding: 0.75rem 1rem;
    }
}

.notification-dropdown-item.priority-high .notification-dropdown-icon {
    background: #fff5f5;
    border-color: #dc3545;
}

.notification-dropdown-item.priority-medium .notification-dropdown-icon {
    background: #fff8f0;
    border-color: #fd7e14;
}

.notification-dropdown-item.priority-low .notification-dropdown-icon {
    background: #f8fff9;
    border-color: #28a745;
}

/* Tasks page styles */
.tasks-container {
    width: 100%;
    margin: 0;
    padding: 2rem 3rem;
}

.tasks-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tasks-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
}

.tasks-subtitle {
    font-size: 1.125rem;
    color: var(--bs-secondary-color);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .tasks-container {
        padding: 1rem 1.5rem;
    }

    .tasks-title {
        font-size: 2rem;
    }
}

/* Override main-content centering for tasks page */
.main-content .tasks-container {
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
}

/* New Conversation Button Styles */
.new-conversation-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    min-width: 36px;
    min-height: 36px;
}

.new-conversation-btn:hover {
    background-color: rgba(0, 122, 255, 0.1);
}

.new-conversation-btn:active {
    background-color: rgba(0, 122, 255, 0.2);
}

.new-conversation-btn img {
    /* Use a darker blue color that's still in the same family as message bubbles */
    filter: brightness(0) saturate(100%) invert(35%) sepia(85%) saturate(2000%) hue-rotate(190deg) brightness(90%) contrast(120%);
}

/* Form help text styling */
.form-help-text {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    margin-top: 0.25rem;
    font-style: italic;
    opacity: 0.8;
}

/* PR ID link styling */
.pr-id-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.pr-id-link:hover {
    color: #0056b3;
    text-decoration: underline;
}
