/* Frontend Styles - Exact copy from original HTML with CSS Variables */

:root {
    --primary: #2a97aa;
    --primary-light: #3aa6b9;
    --primary-dark: #2a8696;
    --accent: #94c17d;
    --accent-secondary: #35a9a6;
    --surface: #ffffff;
    --surface-alt: #e8f5f6;
    --text-primary: #39414d;
    --text-secondary: #4a5361;
    --text-tertiary: #adc6c8;
    --border: #9ad8d0;
    --gradient-gov: linear-gradient(135deg, #2a97aa 0%, #37ada9 100%);
    --shadow-md: 0 4px 6px -1px rgba(42, 151, 170, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(42, 151, 170, 0.25);
    
    /* Custom color overrides (set by Elementor) */
    --title-color: #39414d;
    --header-bg: #2a97aa;
    --header-text: #ffffff;
    --row-text: #4a5361;
}

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* Table Container Styles */
.table-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #9ad8d0;
    box-shadow: 0 4px 6px -1px rgba(42, 151, 170, 0.1);
    overflow-x: auto;
    margin-bottom: 40px;
    position: relative;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 151, 170, 0.02) 0%, rgba(148, 193, 125, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.table-container:hover::before {
    opacity: 1;
}

/* Table Header/Title inside container */
.table-container h2,
.table-container h3,
.table-title {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--title-color);
    font-weight: 700;
}

.table-container p {
    color: #4a5361;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Table Styles */
.table-container table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

/* Table Header */
.table-container thead {
    background: linear-gradient(135deg, var(--header-bg) 0%, var(--header-bg) 100%) !important;
}

.table-container thead th {
    color: var(--header-text);
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    border: none !important;
}

.table-container thead th:first-child {
    border-radius: 12px 0 0 0;
}

.table-container thead th:last-child {
    border-radius: 0 12px 0 0;
}

/* Table Body */
.table-container tbody tr {
    border-bottom: 1px solid #e8f5f6;
    transition: background 0.3s ease;
}

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

.table-container tbody tr:hover {
    background: rgba(42, 151, 170, 0.05);
}

.table-container tbody td {
    padding: 18px 20px;
    color: var(--row-text);
    font-size: 0.95rem;
    border: none !important;
}

/* Last column - typically for prices/amounts */
.table-container tbody td:last-child {
    font-weight: 600;
    color: #2a97aa;
}

/* Column width ratio - 60/40 */
.table-container thead th:nth-child(1),
.table-container tbody td:nth-child(1) {
    width: 60%;
}

.table-container thead th:nth-child(2),
.table-container tbody td:nth-child(2) {
    width: 40%;
}

/* Striped rows variant */
.table-container.striped tbody tr:nth-child(even) {
    background: rgba(232, 245, 246, 0.3);
}

.table-container.striped tbody tr:hover {
    background: rgba(42, 151, 170, 0.08);
}

/* Prevent Elementor default table styling */
.elementor-widget-tcp_table_container table,
.elementor-widget-tcp_table_container table thead,
.elementor-widget-tcp_table_container table tbody,
.elementor-widget-tcp_table_container table td,
.elementor-widget-tcp_table_container table th {
    border: none !important;
}

.elementor-widget-tcp_table_container table tr {
    border-bottom: 1px solid #e8f5f6 !important;
}

/* Bordered variant */
.table-container.bordered table {
    border: 1px solid #9ad8d0;
}

.table-container.bordered thead th,
.table-container.bordered tbody td {
    border: 1px solid #9ad8d0;
}

/* Compact variant */
.table-container.compact thead th,
.table-container.compact tbody td {
    padding: 12px 15px;
    font-size: 0.9rem;
}

/* Center aligned table */
.table-container.center-align tbody td,
.table-container.center-align thead th {
    text-align: center;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Badge styles */
.table-container .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.success {
    background: #94c17d;
    color: white;
}

.badge.warning {
    background: #f59e0b;
    color: white;
}

.badge.info {
    background: #2a97aa;
    color: white;
}

.badge.secondary {
    background: #e8f5f6;
    color: #2a97aa;
}

/* Table Description */
.table-description {
    color: #4a5361;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-container {
        padding: 20px;
    }

    .table-container thead th,
    .table-container tbody td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .table-container h2,
    .table-container h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .table-container {
        padding: 15px;
        border-radius: 16px;
    }

    .table-container thead th,
    .table-container tbody td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* Mobile Responsive - Stack on very small screens */
@media (max-width: 600px) {
    .table-container.responsive table,
    .table-container.responsive thead,
    .table-container.responsive tbody,
    .table-container.responsive th,
    .table-container.responsive td,
    .table-container.responsive tr {
        display: block;
    }

    .table-container.responsive thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .table-container.responsive tr {
        margin-bottom: 15px;
        border: 1px solid #e8f5f6;
        border-radius: 12px;
        padding: 15px;
    }

    .table-container.responsive td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .table-container.responsive td:before {
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: 600;
        color: #39414d;
        text-align: left;
    }
}
