/* ============================================================
   ITC LCA Notices – Frontend Styles
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    --lca-primary:       #ade217;   /* ITC Infotech deep blue */
    --lca-primary-dark:  #001f5c;
    --lca-accent:        #e8272a;   /* Red accent */
    --lca-bg:            #f3f3f8;
    --lca-border:        #ade217;
    --lca-text:          #1a1f36;
    --lca-text-muted:    #6b7390;
    --lca-white:         #ffffff;
    --lca-row-even:      #f0f4fb;
    --lca-row-hover:     #dce8ff;
    --lca-radius:        8px;
    --lca-shadow:        0 2px 12px rgba(0, 48, 135, 0.10);
    --lca-transition:    0.18s ease;
}

/* ---------- Container ---------- */
.itc-lca-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: var(--lca-text);
    line-height: 1.5;
    max-width: 100%;
}

/* ---------- Filter Bar ---------- */
.itc-lca-filters {
    background: var(--lca-white);
    border: 1px solid var(--lca-border);
    border-radius: var(--lca-radius);
    box-shadow: var(--lca-shadow);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.itc-lca-filters-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.itc-lca-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 200px;
    min-width: 160px;
}

.itc-lca-filter-group label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lca-primary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.itc-lca-filter-group label svg {
    flex-shrink: 0;
    color: var(--lca-primary);
}

.itc-lca-select,
.itc-lca-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--lca-border);
    border-radius: 6px;
    font-size: 13.5px;
    color: var(--lca-text);
    background: var(--lca-bg);
    outline: none;
    transition: border-color var(--lca-transition), box-shadow var(--lca-transition);
    box-sizing: border-box;
    height: 38px;
}

.itc-lca-select:focus,
.itc-lca-input:focus {
    border-color: var(--lca-primary);
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.12);
    background: var(--lca-white);
}

/* ---------- Filter Buttons ---------- */
.itc-lca-filter-actions {
    flex-direction: row;
    align-items: flex-end;
    flex: 0 0 auto;
    gap: 8px;
}

.itc-lca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--lca-transition), transform var(--lca-transition);
    white-space: nowrap;
    height: 38px;
}

.itc-lca-btn:active {
    transform: translateY(1px);
}

.itc-lca-btn-primary {
    background: #ade217;
    color: #1d1d1d;
}

.itc-lca-btn-primary:hover {
    background: var(--lca-primary-dark);
}

.itc-lca-btn-secondary {
    background: transparent;
    color: var(--lca-primary);
    border: 1.5px solid var(--lca-primary);
}

.itc-lca-btn-secondary:hover {
    background: var(--lca-row-even);
}

/* ---------- Results Bar ---------- */
.itc-lca-results-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
    min-height: 24px;
}

.itc-lca-results-count {
    font-size: 13px;
    color: var(--lca-text-muted);
}

/* ---------- Table Wrapper ---------- */
.itc-lca-table-wrap {
    background: var(--lca-white);
    border-radius: var(--lca-radius);
    box-shadow: var(--lca-shadow);
    border: 1px solid var(--lca-border);
    overflow-x: auto;
    position: relative;
}

/* ---------- Loading ---------- */
.itc-lca-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--lca-text-muted);
    font-size: 14px;
}

.itc-lca-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--lca-border);
    border-top-color: var(--lca-primary);
    border-radius: 50%;
    animation: itc-lca-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes itc-lca-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Table ---------- */
.itc-lca-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.itc-lca-table thead {
    background: var(--lca-primary);
    color: var(--lca-white);
}

.itc-lca-table thead th {
    padding: 13px 16px;
    text-align: left;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
    user-select: none;
}

.itc-lca-table thead th.sortable {
    cursor: pointer;
}

.itc-lca-table thead th.sortable:hover {
    background: var(--lca-primary-dark);
}

.itc-lca-table thead th.sort-asc  .sort-icon::after { content: ' ▲'; font-size: 10px; }
.itc-lca-table thead th.sort-desc .sort-icon::after { content: ' ▼'; font-size: 10px; }
.sort-icon { opacity: 0.55; font-size: 10px; margin-left: 2px; }
.itc-lca-table thead th.sort-asc  .sort-icon,
.itc-lca-table thead th.sort-desc .sort-icon { opacity: 1; }

.itc-lca-table tbody tr {
    border-bottom: 1px solid var(--lca-border);
    transition: background var(--lca-transition);
}

.itc-lca-table tbody tr:nth-child(even) {
    background: var(--lca-row-even);
}

.itc-lca-table tbody tr:hover {
    background: var(--lca-row-hover);
}

.itc-lca-table tbody tr:last-child {
    border-bottom: none;
}

.itc-lca-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 13.5px;
    border: none;
    color: var(--lca-text);
}

/* Column widths */
.itc-lca-table .col-id       { width: 70px; }
.itc-lca-table .col-case     { width: 190px; }
.itc-lca-table .col-date     { width: 110px; white-space: nowrap; }
.itc-lca-table .col-file     { width: 80px; text-align: center; }

/* Empty / no-results row */
.itc-lca-empty-row td {
    text-align: center;
    padding: 40px 16px;
    color: var(--lca-text-muted);
    font-size: 14px;
}

/* ---------- File Badge ---------- */
.itc-lca-file-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--lca-transition);
}

.itc-lca-file-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.itc-lca-file-link.pdf {
    background: #fff0f0;
    color: var(--lca-accent);
    border: 1px solid #f8c5c5;
}

.itc-lca-file-link.word {
    background: #edf4ff;
    color: #1a56db;
    border: 1px solid #bfdbfe;
}

.itc-lca-file-link.generic {
    background: #f3f4f6;
    color: var(--lca-text);
    border: 1px solid var(--lca-border);
}

/* ---------- Pagination ---------- */
.itc-lca-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.itc-lca-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid var(--lca-border);
    border-radius: 6px;
    background: var(--lca-white);
    color: var(--lca-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--lca-transition);
    text-decoration: none;
}

.itc-lca-page-btn:hover:not(:disabled) {
    border-color: var(--lca-primary);
    color: var(--lca-primary);
    background: var(--lca-row-even);
}

.itc-lca-page-btn.active {
    background: var(--lca-primary);
    border-color: var(--lca-primary);
    color: var(--lca-white);
    font-weight: 700;
    cursor: default;
}

.itc-lca-page-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.itc-lca-page-info {
    font-size: 13px;
    color: var(--lca-text-muted);
    padding: 0 6px;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 767px) {
    .itc-lca-filters-inner {
        flex-direction: column;
    }

    .itc-lca-filter-group {
        flex: 1 1 100%;
    }

    .itc-lca-filter-actions {
        width: 100%;
    }

    .itc-lca-btn {
        flex: 1;
    }

    .itc-lca-table {
        font-size: 12.5px;
    }

    .itc-lca-table thead th,
    .itc-lca-table tbody td {
        padding: 10px 12px;
    }
}
