/* ============================================================
   AUDIT SPECIFIC STYLES
   ============================================================ */

/* Status Update Button - specifically for audit list */
.btn--status-update {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.6;
}

.btn--status-update:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn--status-update:active {
    transform: translateY(0);
}

/* View page - status history table */
.data-table--compact td,
.data-table--compact th {
    padding: 6px 10px;
    font-size: var(--font-xs);
}

.data-table--compact .badge {
    font-size: 0.65rem;
    padding: 1px 8px;
}

/* Audit details view */
.audit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.audit-meta__item {
    font-size: var(--font-sm);
}

.audit-meta__label {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Category badge */
.badge--category {
    background: var(--blue-50);
    color: var(--blue-800);
    font-size: var(--font-xs);
    padding: 2px 10px;
}

/* Office badge */
.badge--office {
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: var(--font-xs);
    padding: 2px 10px;
}

/* Status history timeline */
.status-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--gray-200);
}

.status-timeline__item {
    padding: var(--spacing-sm) 0;
    position: relative;
}

.status-timeline__item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 2px solid white;
}

.status-timeline__item--current::before {
    background: var(--green-500);
}

.status-timeline__item--old::before {
    background: var(--gray-400);
}

/* FIX: Modal select dropdown - remove double arrows */
#statusUpdateForm select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    cursor: pointer;
}

#statusUpdateForm select.form-control::-moz-focus-inner {
    border: 0;
}

#statusUpdateForm select.form-control::-ms-expand {
    display: none;
}

/* Form inside modal */
#statusUpdateForm .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

#statusUpdateForm .form-group--full {
    grid-column: 1 / -1;
}

#statusUpdateForm .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#statusUpdateForm .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}

#statusUpdateForm .form-label .req {
    color: #dc2626;
}

#statusUpdateForm .form-control {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    font-family: var(--font-family);
}

#statusUpdateForm .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#statusUpdateForm .form-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 2px 0 0 0;
}

/* Responsive font sizes for Bengali readability */
@media (max-width: 768px) {
    .btn--status-update {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    .data-table--compact td,
    .data-table--compact th {
        font-size: 0.6rem;
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .btn--status-update {
        font-size: 0.55rem;
        padding: 2px 6px;
        width: 100%;
        text-align: center;
    }
}