/* NOV Letters Frontend Styles */

.nov-letters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.nov-frontend-form {
    width: 100%;
}

/* Filters */
.nov-filters {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.nov-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nov-search-box {
    width: 100%;
}

.nov-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.nov-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.nov-filter-select,
.nov-date-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.nov-filter-button,
.nov-reset-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.nov-filter-button {
    background: #0073aa;
    color: white;
}

.nov-filter-button:hover {
    background: #005a87;
}

.nov-reset-button {
    background: #f0f0f0;
    color: #333;
}

.nov-reset-button:hover {
    background: #e0e0e0;
}

/* Bulk Actions */
.nov-bulk-actions {
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.nov-bulk-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.nov-bulk-actions-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nov-bulk-actions-right {
    display: flex;
    align-items: center;
}

.nov-select-all {
    margin-right: 5px;
    cursor: pointer;
}

.nov-bulk-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 200px;
}

.nov-apply-button {
    padding: 8px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}

.nov-apply-button:hover {
    background: #005a87;
}

.nov-apply-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.nov-generate-all-button {
    padding: 10px 20px;
    background: #2ea44f;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.nov-generate-all-button:hover {
    background: #2c974b;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.nov-generate-all-button:active {
    background: #268f43;
    transform: translateY(1px);
}

.nov-generate-all-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.nov-selected-count {
    color: #0073aa;
    font-size: 14px;
}

.nov-selected-count strong {
    font-size: 16px;
}

/* Results Info */
.nov-results-info {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

/* NOV List */
.nov-list {
    display: grid;
    gap: 20px;
}

.nov-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.nov-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nov-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.nov-item-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nov-checkbox-label {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.nov-item-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.nov-item-title {
    margin: 0;
    font-size: 20px;
    color: #333;
}

/* Status Badges */
.nov-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.nov-status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.nov-status-sent {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.nov-status-resolved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.nov-status-escalated {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Item Details */
.nov-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.nov-detail {
    font-size: 14px;
    color: #555;
}

.nov-detail strong {
    color: #333;
    margin-right: 5px;
}

.nov-detail-full {
    grid-column: 1 / -1;
}

/* Actions */
.nov-item-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.nov-download-button {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.nov-download-button:hover {
    background: #005a87;
    color: white;
}

/* No Results */
.nov-no-results {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Pagination */
.nov-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.nov-page-link {
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
    transition: all 0.3s ease;
}

.nov-page-link:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.nov-page-current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Success Messages */
.nov-message {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.nov-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.nov-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .nov-filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .nov-filter-select,
    .nov-date-input,
    .nov-filter-button,
    .nov-reset-button {
        width: 100%;
    }

    .nov-bulk-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .nov-bulk-actions-left,
    .nov-bulk-actions-right {
        width: 100%;
        flex-direction: column;
    }

    .nov-bulk-select,
    .nov-apply-button,
    .nov-generate-all-button {
        width: 100%;
    }

    .nov-item-details {
        grid-template-columns: 1fr;
    }

    .nov-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nov-item-header-left {
        width: 100%;
    }
}

