/* Frontend Styles */
.tfm-forms-grid {
    display: grid;
    grid-gap: 30px;
    margin: 40px 0;
}

.tfm-form-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tfm-form-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tfm-form-inner {
    padding: 25px;
}

.tfm-form-thumbnail {
    margin-bottom: 20px;
}

.tfm-form-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.tfm-form-title {
    margin: 0 0 15px 0;
    font-size: 1.4em;
}

.tfm-form-title a {
    color: #333;
    text-decoration: none;
}

.tfm-form-title a:hover {
    color: #0073aa;
}

.tfm-form-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.tfm-form-meta {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #888;
}

.tfm-template-name {
    display: inline-block;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 3px;
}

.tfm-view-form {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.tfm-view-form:hover {
    background: #005a87;
    color: #fff;
}

.tfm-no-forms {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Filters */
.tfm-form-filters {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.tfm-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.tfm-filter-group {
    flex: 1;
    min-width: 200px;
}

.tfm-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.tfm-filter-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tfm-filter-button,
.tfm-reset-button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.tfm-filter-button {
    background: #0073aa;
    color: #fff;
}

.tfm-reset-button {
    background: #666;
    color: #fff;
}

/* Pagination */
.tfm-pagination {
    margin-top: 40px;
    text-align: center;
}

.tfm-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.tfm-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
}

.tfm-pagination .page-numbers:hover {
    background: #ddd;
}

/* Single Form Page */
.tfm-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tfm-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tfm-form-field {
    margin-bottom: 25px;
}

.tfm-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.tfm-form-field input[type="text"],
.tfm-form-field input[type="email"],
.tfm-form-field textarea,
.tfm-form-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.tfm-form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.tfm-form-submit {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tfm-form-submit:hover {
    background: #005a87;
}

.tfm-form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

.tfm-form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tfm-form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .tfm-form-filters {
        padding: 15px;
    }
    
    .tfm-filter-form {
        flex-direction: column;
    }
    
    .tfm-filter-group {
        width: 100%;
    }
    
    .tfm-form-wrapper {
        padding: 20px;
    }
}