* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    padding: 1rem;
}

.login-box {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 28rem;
}

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

.login-icon {
    display: inline-block;
    padding: 0.75rem;
    background-color: #e0e7ff;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
}

.login-subtitle {
    color: #6b7280;
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

    .form-input:focus {
        outline: none;
        border-color: #4f46e5;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    width: 100%;
    background-color: #4f46e5;
    color: white;
    padding: 0.625rem;
}

    .btn-primary:hover {
        background-color: #4338ca;
    }

.demo-credentials {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.dashboard {
    min-height: 100vh;
}

    .dashboard.active {
        display: block;
    }

.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 82rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    padding: 0.5rem;
    background-color: #e0e7ff;
    border-radius: 0.5rem;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.header-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #374151;
    background: transparent;
}

    .btn-logout:hover {
        background-color: #f3f4f6;
    }

.main-content {
    max-width: 82rem;
    margin: 0 auto;
    padding: 1.5rem;
}

.view-tabs {
    margin-bottom: 1.5rem;
}

.tabs-container {
    display: inline-flex;
    background: white;
    padding: 0.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    gap: 0.5rem;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    background: transparent;
    color: #374151;
}

    .tab-btn:hover {
        background-color: #f3f4f6;
    }

    .tab-btn.active {
        background-color: #4f46e5;
        color: white;
    }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.stat-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0.25rem;
}

.stat-detail {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.search-filter-section {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.search-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
}

    .btn-filter:hover {
        background-color: #e5e7eb;
    }

.filter-options {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

    .filter-options.active {
        display: grid;
    }

.filter-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.jobs-table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: visible;
    position: relative;
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    /* Ensure table wrapper doesn't clip dropdowns */
    position: relative;
  z-index: 1;
}

table {
    width: 100%;
border-collapse: collapse;
    position: relative;
    z-index: auto;
}

thead {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    user-select: none;
    position: relative;
}

    th:hover {
        background-color: #f3f4f6;
    }

    th.sortable::after {
        content: '';
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid #9ca3af;
        opacity: 0.3;
    }

    th.sort-asc::after {
        border-top: 4px solid #4f46e5;
        opacity: 1;
    }

    th.sort-desc::after {
        border-top: none;
        border-bottom: 4px solid #4f46e5;
        opacity: 1;
    }

    th.text-right {
        text-align: right;
    }

    th.text-center {
        text-align: center;
    }

tbody {
    position: relative;
}

    tbody tr.job-row {
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    z-index: 1;
}

    tbody tr.job-row:hover {
        background-color: #f9fafb;
    }

    tbody tr.job-row.expanded {
  background-color: #eff6ff;
    }

    /* Ensure rows with unread dots have proper visibility */
    tbody tr.job-row:has(.unread-dot) {
        position: relative;
     z-index: 15;
    }

td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    overflow: visible !important;
    position: relative;
}

/* Specific styling for the PO column to ensure unread dot visibility */
td.job-id,
td:has(.job-id) {
    overflow: visible !important;
    position: relative;
    z-index: 15;
    white-space: nowrap;
}

/* Ensure assignee column has proper stacking context */
td:has(.assignee-dropdown-container) {
    z-index: 10;
    position: relative;
}

/* Ensure rows containing open dropdowns have higher z-index */
tbody tr:has(.assignee-dropdown-menu) {
    z-index: 1040;
    position: relative;
}

.job-id {
    font-weight: 500;
    color: #4f46e5;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem; /* Reduce gap to bring dot closer to PO */
    min-width: fit-content; /* Ensure container doesn't compress */
    z-index: 10; /* Ensure proper stacking */
}

.job-name {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.profit-positive {
    color: #059669;
    font-weight: 500;
}

.profit-negative {
    color: #dc2626;
    font-weight: 500;
}

.status-badge {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-closed {
    background-color: #f3f4f6;
    color: #374151;
}

/* Job Detail Row Styles */
.job-detail-row {
    display: none;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

    .job-detail-row.active {
        display: table-row;
    }

.job-detail-cell {
    padding: 0;
}

.job-detail-content {
    padding: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.detail-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
}

.detail-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

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

.detail-box {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.detail-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.comments-section {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.comments-header {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.comments-list-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.comment-item {
    background-color: #f9fafb;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid #4f46e5;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-header-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: #4f46e5;
}

.comment-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.comment-text {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.add-comment-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.comment-input-wrapper {
    display: flex;
    gap: 0.75rem;
}

.comment-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

    .comment-input:focus {
        outline: none;
        border-color: #4f46e5;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }

.btn-add-comment {
    padding: 0.75rem 1.5rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
}

    .btn-add-comment:hover {
        background-color: #4338ca;
    }

    .btn-add-comment:disabled {
        background-color: #9ca3af;
        cursor: not-allowed;
    }

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.team-tag {
display: inline-block;
    padding: 4px 8px;
    background-color: #e0e7ff;
    color: #4338ca;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    margin-right: 4px;
    margin-bottom: 2px;
}

    .team-tag.unassigned {
        background-color: #e5e7eb;
      color: #6b7280;
        font-style: italic;
    }

/* Assignee Dropdown Styles */
.assignee-dropdown-container {
    position: relative;
    display: inline-block;
    /* Create stacking context for dropdown positioning */
    z-index: 10;
}

/* When dropdown is open, ensure container has higher z-index */
.assignee-dropdown-container:has(.assignee-dropdown-menu) {
    z-index: 2001;
}

/* Alternative class-based approach for better browser compatibility */
.assignee-dropdown-container.dropdown-open {
    z-index: 2001;
}

.assignee-display {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
  flex-wrap: wrap;
    min-width: 120px;
}

.dropdown-arrow {
    margin-left: 4px;
    transition: transform 0.2s ease;
    color: #6b7280;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.assignee-dropdown-menu {
   position: absolute;
top: 100%;
   left: 0;
   z-index: 2000;
   min-width: 220px;
   max-width: 300px;
   background: white;
   border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 0;
    margin-top: 4px;
 animation: dropdownSlideIn 0.15s ease-out;
    /* Ensure dropdown appears above other elements */
    isolation: isolate;
    /* Force new stacking context */
    transform: translateZ(0);
    /* Prevent dropdown from extending outside viewport */
    max-height: 300px;
    overflow: visible;
}

/* Adjust dropdown position when near right edge of screen */
.assignee-dropdown-menu.align-right {
    left: auto;
    right: 0;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-4px) translateZ(0);
    }
    to {
        opacity: 1;
transform: translateY(0) translateZ(0);
    }
}

.dropdown-header {
    display: none;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #6b7280;
    border-radius: 4px;
  transition: all 0.2s;
}

.close-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.dropdown-content {
   max-height: 200px;
overflow-y: auto;
   overflow-x: hidden;
   padding: 4px 0;
    /* Custom scrollbar for better appearance */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

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

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

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

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

.dropdown-item.changed {
    background-color: #eff6ff;
    border-left: 3px solid #3b82f6;
}

.checkbox-wrapper {
    position: relative;
    margin-right: 12px;
}

.checkbox-wrapper input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
  display: flex;
  align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: white;
}

.custom-checkbox.checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.user-name {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
}

.change-indicator {
    margin-left: 8px;
    font-size: 0.75rem;
    font-weight: bold;
}

.add-indicator {
    color: #059669;
}

.remove-indicator {
    color: #dc2626;
}

.dropdown-actions {
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    background-color: #f9fafb;
    border-radius: 0 0 8px 8px;
}

.btn-save {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-save:hover {
  background-color: #2563eb;
}

.btn-cancel {
 padding: 6px 12px;
    background-color: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background-color: #4b5563;
}

/*comment buttons*/
.comment-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-edit {
    background-color: #3b82f6;
    color: white;
}

    .btn-edit:hover {
        background-color: #2563eb;
    }

.btn-delete {
    background-color: #ef4444;
    color: white;
}

    .btn-delete:hover {
        background-color: #dc2626;
    }

.btn-save {
    background-color: #10b981;
    color: white;
}

    .btn-save:hover {
        background-color: #059669;
    }

.btn-cancel {
    background-color: #6b7280;
    color: white;
}

    .btn-cancel:hover {
        background-color: #4b5563;
    }

.comment-edit-input {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-top: 8px;
}

/* Icons using SVG */
.icon {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

/* Blazor Error UI */
#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;
    }

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .search-row {
        flex-direction: column;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .comment-input-wrapper {
        flex-direction: column;
    }
}

/* Due Dates Specific Styles */

.btn-add-due-date {
    width: 160px;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    justify-content: center;
}

.due-dates-container {
    width: 100%;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #1f2937;
        margin: 0;
    }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

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

/* Job Search Results */
.job-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.job-search-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

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

    .job-search-item:hover {
        background-color: #f3f4f6;
    }

.job-search-po {
    font-weight: 600;
    color: #4f46e5;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.job-search-details {
    font-size: 0.75rem;
    color: #6b7280;
}

.job-search-name {
    margin-bottom: 0.125rem;
}

.job-search-customer {
    color: #9ca3af;
}

.selected-job-display {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #eff6ff;
    border-left: 3px solid #4f46e5;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #1f2937;
}

/* Editable Cells */
.editable-cell {
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    display: inline-block;
    min-width: 100px;
}

    .editable-cell:hover {
        background-color: #f3f4f6;
    }

    .editable-cell:empty::before {
        content: '(click to add)';
        color: #9ca3af;
        font-style: italic;
    }

.inline-edit-input {
    width: 100%;
    min-width: 150px;
    padding: 0.375rem 0.5rem;
    border: 2px solid #4f46e5;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    outline: none;
    background-color: #fff;
}

    .inline-edit-input:focus {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }

/* Button Styles */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-primary {
    background-color: #4f46e5;
    color: white;
}

    .btn-primary:hover:not(:disabled) {
        background-color: #4338ca;
    }

    .btn-primary:disabled {
        background-color: #9ca3af;
        cursor: not-allowed;
        opacity: 0.6;
    }

.btn-cancel {
    background-color: #6b7280;
    color: white;
}

    .btn-cancel:hover {
        background-color: #4b5563;
    }

.btn-delete {
    background-color: #ef4444;
    color: white;
}

    .btn-delete:hover {
        background-color: #dc2626;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .due-dates-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .section-title {
        text-align: center;
    }

    .jobs-table-container {
        overflow-x: auto;
    }

    .inline-edit-input {
        min-width: 120px;
    }
}

/* Logo Image Styles */
.logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    padding: 1rem;
    background-color: #e0e7ff;
    border-radius: 9999px;
    margin: 0 auto 1rem auto; /* Center horizontally */
}

    .login-icon .logo-img {
        width: 64px;
        height: 64px;
        object-fit: contain;
    }

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    padding: 0.75rem;
    background-color: #e0e7ff;
    border-radius: 0.5rem;
}

    .header-icon .logo-img {
        width: 64px;
        height: 64px;
        object-fit: contain;
    }

/* Prevent focus outline on title elements */
.login-title:focus,
.header-title:focus {
    outline: none;
}

.login-title,
.header-title {
    outline: none;
}


/* Archive Toggle Button Styles */
.archive-toggle-section {
    margin: 1.5rem 0 1rem 0;
}

.btn-archive-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-archive-toggle:hover {
        background-color: #e5e7eb;
    }

.btn-archive {
    background-color: #f59e0b;
    color: white;
}

    .btn-archive:hover {
        background-color: #d97706;
    }

.btn-unarchive {
    background-color: #10b981;
    color: white;
}

    .btn-unarchive:hover {
        background-color: #059669;
    }

/* Unread notification dot */
.unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
    margin-left: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: translateZ(0);
}

.unread-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
 width: 12px;
    height: 12px;
    background-color: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
    z-index: -1;
}

/* Additional specificity for unread dot to ensure it's always visible */
.job-row .job-id .unread-dot {
  display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background-color: #3b82f6 !important;
    border-radius: 50% !important;
    position: relative !important;
    z-index: 1000 !important;
    flex-shrink: 0 !important;
    margin-left: 0.5rem !important;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: translateZ(0);
}

/* Ensure the unread dot animation is visible */
.job-row .job-id .unread-dot::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) translateZ(0) !important;
    width: 12px !important;
    height: 12px !important;
    background-color: rgba(59, 130, 246, 0.3) !important;
    border-radius: 50% !important;
    animation: pulseRing 2s infinite !important;
    z-index: -1 !important;
}

@keyframes pulseGlow {
    0%, 100% {
opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.1;
    }
  100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

/* Make sure table containers don't interfere */
.jobs-table-container,
.table-wrapper {
    overflow: visible !important;
    position: relative;
}

.jobs-table-container table {
    overflow: visible !important;
}

/* Ensure the entire first column allows for the dot */
table th:first-child,
table td:first-child {
  min-width: 120px;
    overflow: visible !important;
}