/* Make the action modal wider */
#action-modal .modal-container {
    max-width: 700px;
    width: 100%;
}

.action-section {
    margin-bottom: 32px;
}

.action-section-header {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #e1e8ef;
}

.action-list {
    background: white;
    border: 1px solid #e1e8ef;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.action-item {
    padding: 16px;
    border-bottom: 1px solid #e1e8ef;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background-color 0.2s;
}

.action-item:last-child {
    border-bottom: none;
}

.action-item:hover {
    background-color: #f8fafc;
}

.action-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.action-details {
    flex: 1;
}

.action-contact-name {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.action-summary {
    color: #475569;
    font-size: 14px;
    margin-bottom: 4px;
}

.action-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    align-items: center;
}

.action-attachments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #3b82f6;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background: #eff6ff;
    transition: all 0.2s;
}

.action-attachments:hover {
    background: #dbeafe;
    color: #2563eb;
}

.action-attachments i {
    font-size: 11px;
}

.action-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #e0e7ff;
    color: #4338ca;
}

.action-due {
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-actions {
    display: flex;
    gap: 8px;
}

.stat-card {
    background: white;
    border: 1px solid #e1e8ef;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-danger .stat-icon {
    background: #fee2e2;
    color: #dc2626;
}

.stat-warning .stat-icon {
    background: #ffedd5;
    color: #ea580c;
}

.stat-info .stat-icon {
    background: #dbeafe;
    color: #0ea5e9;
}

.stat-success .stat-icon {
    background: #dcfce7;
    color: #16a34a;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.action-filter {
    white-space: nowrap;
}

.action-filter.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.action-filter.active:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Autocomplete Styles */
.autocomplete-input {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e1;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: none;
}

.autocomplete-results.active {
    display: block;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f8fafc;
}

.autocomplete-item.create-new {
    background: #f0f9ff;
    color: #0369a1;
    font-weight: 500;
    border-top: 2px solid #e0f2fe;
}

.autocomplete-item.create-new:hover {
    background: #e0f2fe;
}

.autocomplete-item.create-new i {
    margin-right: 6px;
    color: #0ea5e9;
}

.autocomplete-no-results {
    padding: 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.autocomplete-item-name {
    font-weight: 500;
    color: #0f172a;
}

.autocomplete-item-meta {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}
