/* AVGrid Main Styles */

/* Links – consistent, accessible */
a {
    color: var(--avgrid-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--avgrid-primary-dark);
    text-decoration: underline;
}
a:focus-visible {
    outline: 2px solid var(--avgrid-primary);
    outline-offset: 2px;
}
.link-primary { color: var(--avgrid-primary); }
.link-primary:hover { text-decoration: underline; }
.link-muted { color: var(--avgrid-text-secondary); }
.link-muted:hover { color: var(--avgrid-text-primary); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--avgrid-radius-md);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: var(--avgrid-font-size-base);
}

.btn-primary {
    background: var(--avgrid-primary);
    color: white;
}

.btn-primary {
    transition: background 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    background: var(--avgrid-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--avgrid-shadow-md);
}

.btn-secondary {
    background: var(--avgrid-secondary);
    color: white;
}

.btn-success {
    background: var(--avgrid-success);
    color: white;
}

.btn-danger {
    background: var(--avgrid-danger);
    color: white;
}

.btn-danger:hover {
    background: #c53030;
    transform: translateY(-1px);
    box-shadow: var(--avgrid-shadow-md);
}

/* Accept / Decline – clear call-to-action for offers and quotes */
.btn-accept {
    background: var(--avgrid-success);
    color: white;
}
.btn-accept:hover {
    background: var(--avgrid-secondary-dark);
    transform: translateY(-1px);
    box-shadow: var(--avgrid-shadow-md);
}
.btn-decline {
    background: var(--avgrid-danger);
    color: white;
}
.btn-decline:hover {
    background: #c53030;
    transform: translateY(-1px);
    box-shadow: var(--avgrid-shadow-md);
}
a.btn-accept, a.btn-decline {
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: var(--avgrid-font-size-sm);
}

.btn-outline {
    background: transparent;
    color: var(--avgrid-primary);
    border: 1px solid var(--avgrid-border-medium);
}
.btn-outline:hover {
    background: var(--avgrid-gray-50);
    border-color: var(--avgrid-primary);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--avgrid-text-primary);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--avgrid-border-medium);
    border-radius: var(--avgrid-radius-md);
    font-size: var(--avgrid-font-size-base);
    font-family: var(--avgrid-font-family);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

/* All form inputs: fixed 40px height for perfect alignment */
input.form-control:not([type="checkbox"]):not([type="radio"]) {
    height: 40px;
    min-height: 40px;
    line-height: 1.25;
}
textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Dropdowns: identical height & style to text inputs */
select.form-control {
    height: 40px;
    min-height: 40px;
    padding: 9px 32px 9px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}
select.form-control:focus {
    outline: none;
    border-color: var(--avgrid-primary);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}
.form-grid select.form-control,
.edit-quote-basic-grid select.form-control {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* Date/number inputs: match height */
input[type="date"].form-control,
input[type="datetime-local"].form-control,
input[type="time"].form-control,
input[type="number"].form-control {
    font-family: var(--avgrid-font-family);
    letter-spacing: normal;
    height: 40px;
    min-height: 40px;
}
.edit-quote-basic-grid input[type="date"],
.lease-dates-in-form input[type="date"] {
    min-width: 145px;
}

.form-control:focus {
    outline: none;
    border-color: var(--avgrid-primary);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

/* Form grid alignment: consistent field sizes so columns line up */
.form-grid .form-group { margin-bottom: 0; min-width: 0; }
.form-grid .form-control,
.form-grid select.form-control,
.form-grid input.form-control { width: 100%; min-width: 0; box-sizing: border-box; }
.form-grid .form-flex-wrap { display: flex; gap: 8px; width: 100%; min-width: 0; }
.form-grid .form-flex-wrap .form-control { flex: 1; min-width: 0; }

/* Hire period / lease date inline row – aligned label and date inputs */
.lease-dates-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.lease-dates-inline label {
    font-weight: 500;
    color: var(--avgrid-text-secondary);
    margin: 0;
    flex-shrink: 0;
}
.lease-dates-inline input[type="date"] {
    min-height: 40px;
    min-width: 130px;
    width: 130px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.lease-dates-inline span {
    color: var(--avgrid-text-secondary);
    flex-shrink: 0;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th {
    background: var(--avgrid-gray-50);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--avgrid-border-light);
}

.table td {
    padding: 12px;
    border-bottom: 1px solid var(--avgrid-border-light);
}

.table tbody tr {
    transition: background 0.15s ease;
}
.table tbody tr:hover {
    background: var(--avgrid-bg-hover);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary { background: #dbeafe; color: #1e40af; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: #e5e7eb; color: #374151; }

/* Standalone pages (login, accept booking): tasteful fade-in */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
body.standalone-page .page-transition-card,
body.standalone-page main {
    animation: pageFadeIn 0.35s ease-out forwards;
}

/* Cards – polished hover with subtle lift */
.card {
    background: white;
    border-radius: var(--avgrid-radius-lg);
    box-shadow: var(--avgrid-shadow-sm);
    border: 1px solid var(--avgrid-border-light);
    padding: 25px;
    margin-bottom: 20px;
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    border-color: rgba(44, 82, 130, 0.2);
}
.card a.card:hover {
    text-decoration: none;
}

.card-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--avgrid-border-light);
}

/* Breadcrumbs */
.breadcrumb-wrap { margin-bottom: 16px; }
.breadcrumbs { font-size: 0.875rem; color: var(--avgrid-text-secondary); }
.breadcrumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs a { color: var(--avgrid-primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .breadcrumb-sep { color: var(--avgrid-gray-400); font-weight: 300; }
.breadcrumbs .breadcrumb-current { color: var(--avgrid-text-primary); font-weight: 500; }

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-secondary { color: var(--avgrid-text-secondary); }
.text-muted { color: var(--avgrid-text-secondary); }
.text-danger { color: var(--avgrid-danger); }
.form-hint { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--avgrid-text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* List pages: Quotes & Sales Orders – same layout */
.list-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.list-actions-bar h1 { margin: 0; font-size: 1.5rem; }
.list-filter-card {
    margin-bottom: 20px;
}
.list-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px 24px;
    align-items: end;
}
.list-filter-card .form-group { margin-bottom: 0; min-width: 0; }
.list-filter-card .form-control { width: 100%; min-width: 0; box-sizing: border-box; }
.list-filter-actions { display: flex; gap: 10px; align-items: center; }
/* Status tab row above table */
.list-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: var(--avgrid-gray-50);
    border: 1px solid var(--avgrid-border-light);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}
.list-status-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--avgrid-border-medium);
    background: white;
    color: var(--avgrid-text-primary);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.list-status-btn:hover {
    background: var(--avgrid-gray-100);
    border-color: var(--avgrid-border-medium);
}
.list-status-btn.active {
    background: var(--avgrid-primary);
    color: white;
    border-color: var(--avgrid-primary);
}
.list-table-card {
    border-top: none;
    border-radius: 0 0 8px 8px;
}
/* When table card is not below a status row (e.g. Inventory Items list) */
.list-table-card-standalone {
    border-top: 1px solid var(--avgrid-border-light);
    border-radius: var(--avgrid-radius-lg);
}
.list-table-card .table { margin-bottom: 0; }

/* Polished page layout – inventory/leases/crew (grey card style) */
.polished-page { max-width: 1200px; margin: 0 auto; padding-bottom: 2rem; }
.polished-hero {
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    padding: 1.75rem 2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}
.polished-hero h1 { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.polished-hero p { margin: 6px 0 0 0; color: #64748b; font-size: 0.9375rem; line-height: 1.5; }
.polished-hero .polished-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }

.polished-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.polished-card-header {
    padding: 18px 24px;
    background: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.polished-card-body { padding: 20px 24px; }
.polished-card .table { margin-bottom: 0; }
.polished-card .table thead th {
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}
.polished-card .table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.polished-card .table tbody tr:last-child td { border-bottom: none; }
.polished-card .table tbody tr:hover { background: #f8fafc; }
.polished-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 8px;
}

/* Polished list pages (crew/inventory style) – consistent with browse pages */
.list-page-wrapper { max-width: 1400px; margin: 0 auto; }
.list-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.list-page-header h1 { margin: 0; font-weight: 600; font-size: 1.35rem; }
.list-page-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.list-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--avgrid-gray-500);
    margin-bottom: 10px;
}
.list-filter-card-polished {
    margin-bottom: 16px;
    padding: 16px 20px;
    border-radius: var(--avgrid-radius-lg);
    border: 1px solid var(--avgrid-border-light);
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.list-filter-grid-polished {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: flex-end;
}
.list-filter-grid-polished .form-group { margin-bottom: 0; min-width: 0; }
.list-filter-grid-polished .form-control { min-width: 160px; }
.list-filter-grid-polished input[type="text"],
.list-filter-grid-polished input[type="date"],
.list-filter-grid-polished input[type="search"] { width: 200px; }
.list-filter-grid-polished select { min-width: 180px; }
.list-table-polished {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    overflow-x: auto;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.list-table-polished .table { min-width: 800px; }
.list-table-polished .table { margin: 0; }
.list-table-polished .table th {
    background: var(--avgrid-gray-50);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--avgrid-gray-600);
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}
.list-table-polished .table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}
.list-table-polished .table tbody tr:last-child td { border-bottom: none; }
.list-table-polished .table tbody tr:hover { background: #f8fafc; }
.list-action-bar-below {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
/* Contact links in tables */
.contact-email { color: var(--avgrid-primary); }
.contact-email:hover { text-decoration: underline; }
.contact-phone { color: var(--avgrid-primary); white-space: nowrap; }
.contact-phone:hover { text-decoration: underline; }
.contact-website { color: var(--avgrid-primary); }
.contact-website:hover { text-decoration: underline; }

/* Tech Edit Page – card accents and section layout */
.tech-edit-page {
    margin-bottom: 24px;
}
.tech-edit-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
/* Card left-accent borders (flat design, subtle) */
.card-accent-primary {
    border-left: 4px solid var(--avgrid-primary);
}
.card-accent-secondary {
    border-left: 4px solid var(--avgrid-secondary);
}
.card-accent-orange {
    border-left: 4px solid var(--avgrid-accent-orange);
}
.card-accent-info {
    border-left: 4px solid var(--avgrid-info);
}
.tech-edit-main-card {
    margin-bottom: 24px;
}
.tech-edit-rest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px 24px;
    padding: 0 20px 20px;
}
.tech-edit-rest-grid .form-group { margin-bottom: 0; min-width: 0; }
.tech-edit-rest-grid .form-group[style*="grid-column: 1"] { grid-column: 1 / -1; }
.card-header-with-desc {
    margin-bottom: 0;
    padding-bottom: 10px;
}
.card-section-desc {
    margin: 0 0 16px 0;
    padding: 0 20px;
    color: var(--avgrid-text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}
.card-body {
    padding: 0 20px 20px;
}
.info-table { margin: 0; }
.info-table td { padding: 8px 0; vertical-align: top; border-bottom: 1px solid var(--avgrid-border-light); }
.info-table tr:last-child td { border-bottom: none; }
.card-body .tech-section-table {
    margin-bottom: 16px;
}
.tech-empty-msg,
.tech-hint {
    color: var(--avgrid-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.tech-hint {
    display: block;
    margin-top: 4px;
}
.tech-add-skill-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px 16px;
    align-items: end;
    padding-top: 16px;
    border-top: 1px solid var(--avgrid-border-light);
}
.tech-add-skill-form .form-group { margin-bottom: 0; min-width: 0; }
.tech-add-skill-form > div:last-of-type {
    display: flex;
    align-items: flex-end;
    min-height: 0;
}
.tech-edit-section {
    border-top: 1px solid var(--avgrid-border-light);
    padding: 16px 20px;
}
.tech-banking-section {
    background: var(--avgrid-gray-50);
    margin: 0 -1px -1px -1px;
    padding: 12px 20px 16px;
    border-radius: 0 0 var(--avgrid-radius-lg) var(--avgrid-radius-lg);
}
.tech-banking-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 12px;
}
.tech-banking-header .tech-edit-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--avgrid-text-primary);
}
.tech-edit-section-desc-inline {
    color: var(--avgrid-text-secondary);
    font-size: 0.8125rem;
}
.tech-edit-section-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--avgrid-text-primary);
}
.tech-edit-section-desc {
    color: var(--avgrid-text-secondary);
    margin: 0 0 16px 0;
    font-size: 0.9rem;
}
.tech-banking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 20px;
}
.tech-banking-grid .form-group {
    margin-bottom: 0;
    min-width: 0;
}
.tech-banking-grid .form-label {
    margin-bottom: 4px;
    font-size: 0.8125rem;
}
@media (max-width: 700px) {
    .tech-banking-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 420px) {
    .tech-banking-grid {
        grid-template-columns: 1fr;
    }
}
.tech-edit-form-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--avgrid-border-light);
}
.tech-add-work-form,
.tech-add-edu-form {
    padding: 20px 0 0;
    border-top: 1px solid var(--avgrid-border-light);
}
.tech-add-work-grid,
.tech-add-edu-grid {
    display: grid;
    grid-template-columns: 1.25fr 1.25fr minmax(130px, 1fr) minmax(130px, 1fr) minmax(100px, auto);
    gap: 20px 24px;
    align-items: end;
    margin-bottom: 0;
}
.tech-add-work-grid .form-group,
.tech-add-edu-grid .form-group {
    min-width: 0;
}
/* Add button column: hide spacer label so button aligns with inputs */
.tech-add-work-grid .form-group:last-child .form-label[style*="visibility: hidden"],
.tech-add-edu-grid .form-group:last-child .form-label[style*="visibility: hidden"] {
    display: none !important;
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}
.tech-add-work-grid .form-group:last-child,
.tech-add-edu-grid .form-group:last-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.tech-add-work-form .form-group:last-of-type {
    margin-top: 16px;
}
@media (max-width: 900px) {
    .tech-add-work-grid,
    .tech-add-edu-grid {
        grid-template-columns: 1fr 1fr minmax(120px, 1fr) minmax(120px, 1fr) auto;
        gap: 16px 20px;
    }
}
@media (max-width: 768px) {
    .tech-add-skill-form {
        grid-template-columns: 1fr;
    }
    .tech-add-work-grid,
    .tech-add-edu-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tech-add-work-grid .form-label[style*="visibility: hidden"],
    .tech-add-edu-grid .form-label[style*="visibility: hidden"] {
        display: none;
    }
}

/* ==========================================================================
   UI Effects & Transitions – polish and feedback
   ========================================================================== */

/* Main content area – ensure always visible (animation disabled to fix blank Dashboard/Report Builder) */
.content-wrapper.content-animate,
main.main-content-animate {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}
#main-content .content-wrapper {
    min-height: 300px;
    overflow: visible;
}
#dashboard-page {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
#reports-builder-page,
#reports-builder-add-page,
#reports-run-saved-page {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px !important;
    flex-shrink: 0 !important;
}

/* Table rows: smoother hover with slight lift */
.table tbody tr,
.list-table-polished .table tbody tr,
.dash-card .table tbody tr,
.polished-card .table tbody tr {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.table tbody tr:hover,
.list-table-polished .table tbody tr:hover,
.dash-card .table tbody tr:hover,
.polished-card .table tbody tr:hover {
    box-shadow: inset 0 0 0 1px rgba(44, 82, 130, 0.06);
}

/* Polished cards: smoother transition and active feedback */
.polished-card {
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s ease;
}
.polished-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.polished-hero {
    transition: box-shadow 0.25s ease, border-color 0.2s ease;
}
.polished-hero:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* List filter card: subtle focus state */
.list-filter-card,
.list-filter-card-polished {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.list-filter-card:focus-within,
.list-filter-card-polished:focus-within {
    box-shadow: 0 2px 8px rgba(44, 82, 130, 0.08);
    border-color: rgba(44, 82, 130, 0.2);
}

/* Status tab row: transition on active */
.list-status-btn {
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.list-status-btn:hover {
    transform: translateY(-1px);
}
.list-status-btn.active {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Alerts: slide-in and fade */
.alert {
    animation: alertSlideIn 0.3s ease-out;
}
@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal overlay: fade + scale (use class .modal-overlay) */
.modal-overlay {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.modal-overlay.modal-visible {
    opacity: 1;
    transform: scale(1);
}
.modal-backdrop {
    transition: opacity 0.2s ease;
}

/* Form controls: smoother focus transition */
.form-control {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.15s ease;
}
.form-control:hover:not(:focus):not(:disabled) {
    border-color: var(--avgrid-gray-400);
}
.form-control:focus {
    transition-duration: 0.15s;
}

/* Buttons: active press feedback */
.btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-primary:active,
.btn-secondary:active,
.btn-success:active,
.btn-danger:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Secondary and success buttons: hover lift to match primary */
.btn-secondary:hover,
.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: var(--avgrid-shadow-md);
}
.btn-outline:hover {
    transform: translateY(-1px);
}

/* Staggered list items (add .list-stagger to container) */
.list-stagger > * {
    opacity: 0;
    animation: listItemFadeIn 0.35s ease-out forwards;
}
.list-stagger > *:nth-child(1) { animation-delay: 0.02s; }
.list-stagger > *:nth-child(2) { animation-delay: 0.05s; }
.list-stagger > *:nth-child(3) { animation-delay: 0.08s; }
.list-stagger > *:nth-child(4) { animation-delay: 0.11s; }
.list-stagger > *:nth-child(5) { animation-delay: 0.14s; }
.list-stagger > *:nth-child(6) { animation-delay: 0.17s; }
.list-stagger > *:nth-child(7) { animation-delay: 0.2s; }
.list-stagger > *:nth-child(8) { animation-delay: 0.23s; }
.list-stagger > *:nth-child(9) { animation-delay: 0.26s; }
.list-stagger > *:nth-child(10) { animation-delay: 0.29s; }
@keyframes listItemFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dash cards: hover lift */
.dash-card {
    transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}
.dash-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Badge subtle pulse for "new" or "updated" */
.badge-pulse {
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Empty state – centered, helpful CTA */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    max-width: 400px;
    margin: 0 auto;
}
.empty-state-icon {
    color: var(--avgrid-gray-300);
    margin-bottom: 16px;
}
.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--avgrid-text-primary);
    margin: 0 0 8px 0;
}
.empty-state-desc {
    font-size: 0.9375rem;
    color: var(--avgrid-text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.5;
}
.empty-state .btn { margin-top: 8px; }

