.project-card-status {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.project-card-status .badge-selector {
    padding: 0;
}

.project-card-status .status-badge {
    font-size: 11px;
    padding: 3px 8px;
}

.budget-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
}

.budget-input-wrapper .currency-symbol {
    margin-right: 4px;
    color: var(--text-primary);
}

.budget-input-wrapper .budget-input {
    flex: 1;
}

/* Editable Project Name in List View */
.project-name-editable {
    outline: none;
    padding: 4px 6px;
    border-radius: 3px;
    transition: background 0.2s ease;
    cursor: text;
    min-height: 20px;
}

.project-name-editable:hover {
    background: var(--hover-bg);
}

.project-name-editable:focus {
    background: var(--hover-bg);
    box-shadow: inset 0 0 0 1px var(--accent-blue);
}

/* List Header Checkbox */
.list-header-checkbox {
    position: absolute;
    left: -31px;
    display: none;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.list-header-checkbox.visible {
    display: flex;
}

.list-header-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.list-header-checkbox .checkbox-icon {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.2s ease;
}

.list-header-checkbox:hover .checkbox-icon {
    border-color: var(--text-secondary);
    background: var(--hover-bg);
}

.list-header-checkbox .checkbox-icon i {
    font-size: 10px;
    color: var(--text-secondary);
}

/* Row Checkbox Styling */
.list-control-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.list-control-checkbox input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.list-control-checkbox input[type="checkbox"]:hover {
    border-color: var(--text-secondary);
    background: var(--hover-bg);
}

.list-control-checkbox input[type="checkbox"]:checked {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.list-control-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Keep controls visible when row has checked checkbox */
.list-row:has(.row-checkbox:checked) .list-row-controls-left {
    opacity: 1;
    visibility: visible;
}

/* Selection Actions Popup */
.selection-actions-popup {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    display: none;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideDown 0.2s ease;
}

.selection-actions-popup.visible {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.list-header {
    position: relative;
}

.selection-count {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 0 4px;
}

.selection-action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.selection-action-btn:hover {
    background: var(--hover-bg);
    border-color: var(--text-secondary);
}

.selection-action-btn.delete {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.selection-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.selection-action-btn i {
    font-size: 11px;
}

/* Custom Confirm Dialog */
.custom-confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.custom-confirm-dialog.visible {
    display: flex;
}

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

.confirm-dialog-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-dialog-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirm-dialog-message {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.confirm-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.confirm-dialog-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.confirm-dialog-btn.cancel {
    background: transparent;
    color: var(--text-primary);
}

.confirm-dialog-btn.cancel:hover {
    background: var(--hover-bg);
}

.confirm-dialog-btn.confirm {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.confirm-dialog-btn.confirm:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Property Dialog Form */
.property-dialog-form {
    margin-bottom: 20px;
}

.property-dialog-form label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    margin-top: 12px;
}

.property-dialog-form label:first-child {
    margin-top: 0;
}

.property-name-input,
.property-type-select {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.property-name-input:focus,
.property-type-select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.property-name-input::placeholder {
    color: var(--text-muted);
}

/* Property Menu */
.property-menu {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    min-width: 180px;
}

.property-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.property-menu-item:hover {
    background: var(--hover-bg);
}

.property-menu-item i {
    width: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.property-menu-item[data-action="delete"] {
    color: #ef4444;
}

.property-menu-item[data-action="delete"]:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Custom Property Label */
.custom-property-label,
.standard-property-label {
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
    position: relative;
    z-index: 1;
}

.custom-property-label:hover,
.standard-property-label:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Property Drag & Drop */
.draggable-property {
    position: relative;
    transition: all 0.2s ease;
}

.property-drag-handle {
    position: absolute;
    left: -20px;
    color: var(--text-muted);
    opacity: 0;
    cursor: grab;
    transition: opacity 0.2s ease;
    font-size: 12px;
}

.draggable-property:hover .property-drag-handle {
    opacity: 1;
}

.property-drag-handle:active {
    cursor: grabbing;
}

.dragging-property {
    opacity: 0.5;
}

.property-drag-over {
    border-top: 2px solid var(--accent-blue);
    margin-top: 2px;
}

/* Priority Badge Clickable Styling */
.badge-selector[data-field="priority"] {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.badge-selector[data-field="priority"]:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.badge-selector[data-field="priority"]:active {
    transform: scale(0.95);
}

/* Hide number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Date Input Styling */
.property-input-inline[type="date"],
.property-input-row[type="date"],
.list-input[type="date"] {
    cursor: pointer;
    position: relative;
    width: 100%;
}

/* Make the entire date field clickable */
.property-input-inline[type="date"]::-webkit-calendar-picker-indicator,
.property-input-row[type="date"]::-webkit-calendar-picker-indicator,
.list-input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

/* Custom calendar styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Calendar popup styling - WebKit browsers */
input[type="date"]::-webkit-datetime-edit {
    color: var(--text-primary);
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: var(--text-primary);
}

input[type="date"]::-webkit-datetime-edit-text {
    color: var(--text-secondary);
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--text-primary);
}

input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

input[type="date"]::-webkit-clear-button {
    display: none;
}

/* Custom Calendar Popup */
.custom-calendar {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    min-width: 280px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.calendar-month-year {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 16px;
}

.calendar-nav-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 4px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: var(--hover-bg);
}

.calendar-day.other-month {
    color: var(--text-muted);
}

.calendar-day.selected {
    background: var(--accent-blue);
    color: white;
}

.calendar-day.today {
    border-color: var(--accent-blue);
}

.calendar-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.calendar-btn {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-btn:hover {
    background: var(--hover-bg);
}

.calendar-btn.primary {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.calendar-btn.primary:hover {
    opacity: 0.9;
}
