/**
 * GF Entries Counter - Stylesheet
 * @package GF_Entries_Counter
 * @version 1.0.0
 */

/* Container */
.gfec-container {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Header */
.gfec-header {
    margin-bottom: 20px;
}

/* Form Title */
.gfec-form-title {
    margin: 0 0 20px 0;
    padding: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #0073aa;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gfec-total-count {
    font-size: 20px;
    font-weight: 400;
    color: #666;
}

.gfec-export-link {
    font-size: 14px;
    font-weight: 400;
    color: #0073aa;
    text-decoration: none;
    margin-left: auto;
    transition: color 0.2s ease;
}

.gfec-export-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Table Styles */
.gfec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gfec-table thead {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
}

.gfec-table thead th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #004a6f;
}

.gfec-table thead th:last-child {
    text-align: center;
}

.gfec-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.gfec-table tbody tr:hover {
    background-color: #f5f9fc;
}

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

.gfec-table tbody td {
    padding: 12px 20px;
    font-size: 14px;
    color: #555;
}

.gfec-table tbody td.gfec-count {
    text-align: center;
    font-weight: 600;
    color: #0073aa;
    font-size: 16px;
}

/* Images and HTML content in choice labels */
.gfec-table tbody td img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    margin-right: 10px;
    display: inline-block;
}

.gfec-table tbody td {
    vertical-align: middle;
}

/* Error Messages */
.gfec-error {
    padding: 15px 20px;
    background: #fef8f8;
    border-left: 4px solid #d63638;
    color: #d63638;
    font-weight: 500;
    margin: 20px 0;
    border-radius: 4px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .gfec-container {
        padding: 15px;
    }

    .gfec-form-title {
        font-size: 18px;
        margin-bottom: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .gfec-total-count {
        font-size: 16px;
    }

    .gfec-export-link {
        margin-left: 0;
        font-size: 13px;
    }

    .gfec-table {
        font-size: 13px;
    }

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

    .gfec-table thead th {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .gfec-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .gfec-table thead th,
    .gfec-table tbody td {
        padding: 8px 10px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .gfec-container {
        background: #1e1e1e;
        border-color: #333;
    }

    .gfec-form-title {
        color: #e0e0e0;
        border-bottom-color: #0096dd;
    }

    .gfec-table {
        background: #1e1e1e;
    }

    .gfec-table tbody tr {
        border-bottom-color: #333;
    }

    .gfec-table tbody tr:hover {
        background-color: #2a2a2a;
    }

    .gfec-table tbody td {
        color: #d0d0d0;
    }

    .gfec-table tbody td.gfec-count {
        color: #0096dd;
    }
}