/* Agenda Form Submissions Styles */

.asf-agenda-submissions-wrapper {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Filters Section */
.asf-agenda-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
}

.asf-agenda-filters h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #212529;
    font-size: 18px;
}

.asf-agenda-filter-form .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.asf-agenda-filter-form .filter-item {
    flex: 1;
    min-width: 200px;
}

.asf-agenda-filter-form .filter-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.asf-agenda-filter-form input[type="text"],
.asf-agenda-filter-form input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out;
}

.asf-agenda-filter-form input[type="text"]:focus,
.asf-agenda-filter-form input[type="date"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.asf-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.asf-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.asf-btn-primary {
    background-color: #0073aa;
    color: #ffffff;
}

.asf-btn-primary:hover {
    background-color: #005a87;
}

.asf-btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.asf-btn-secondary:hover {
    background-color: #5a6268;
}

/* Table Section */
.asf-agenda-table-section {
    margin-bottom: 50px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.asf-agenda-table-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #212529;
    font-size: 24px;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
}

#upcoming-agendas .asf-agenda-table-title {
    border-bottom-color: #28a745;
}

#past-agendas .asf-agenda-table-title {
    border-bottom-color: #6c757d;
}

/* Results Info */
.asf-agenda-results-info {
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Table Container */
.asf-agenda-table-container {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 20px;
}

/* Table Styles */
.agenda-submissions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.agenda-submissions-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.agenda-submissions-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.agenda-submissions-table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.agenda-submissions-table tbody tr:hover {
    background-color: #f8f9fa;
}

.agenda-submissions-table td {
    padding: 15px 12px;
    vertical-align: middle;
}

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

.asf-status-publish {
    background-color: #d4edda;
    color: #155724;
}

.status-draft {
    background-color: #fff3cd;
    color: #856404;
}

.status-pending {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-private {
    background-color: #f8d7da;
    color: #721c24;
} */

/* Edit Locked */
.edit-locked {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    color: #6c757d;
    background-color: #e9ecef;
    border-radius: 4px;
    font-weight: 500;
}

/* Action Buttons */
.actions {
    white-space: nowrap;
}

.btn-action {
    padding: 6px 12px;
    margin-right: 5px;
    margin-bottom: 3px;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-view {
    background-color: #17a2b8;
    color: #ffffff;
}

.btn-view:hover {
    background-color: #138496;
    color: #ffffff;
}

.btn-edit {
    background-color: #ffc107;
    color: #212529;
}

.btn-edit:hover {
    background-color: #e0a800;
    color: #212529;
}

.btn-delete {
    background-color: #dc3545;
    color: #ffffff;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-delete:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* Pagination */
.agenda-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 5px;
    flex-wrap: wrap;
}

.agenda-pagination .pagination-link,
.agenda-pagination span {
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
    background-color: #ffffff;
    transition: all 0.2s ease;
    font-size: 14px;
    display: inline-block;
}

.agenda-pagination .pagination-link:hover {
    background-color: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
}

.agenda-pagination .pagination-link.current {
    background-color: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
    font-weight: 600;
}

.agenda-pagination .dots {
    border: none;
    background: none;
    color: #6c757d;
}

/* No Results */
.agenda-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.agenda-no-results p {
    margin: 0;
    font-size: 16px;
}

/* Error Messages */
.agenda-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

/* Success Messages */
.agenda-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin: 20px 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agenda-message {
    position: relative;
}

/* Loading State */
.agenda-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .asf-agenda-filter-form .filter-row {
        flex-direction: column;
    }
    
    .asf-agenda-filter-form .filter-item {
        width: 100%;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-buttons .btn {
        flex: 1;
    }
}

@media screen and (max-width: 768px) {
    .agenda-table-section {
        padding: 15px;
    }
    
    .agenda-table-title {
        font-size: 20px;
    }
    
    .agenda-submissions-table {
        font-size: 12px;
    }
    
    .agenda-submissions-table th,
    .agenda-submissions-table td {
        padding: 10px 8px;
    }
    
    .btn-action {
        padding: 5px 8px;
        font-size: 11px;
        margin-right: 3px;
        margin-bottom: 3px;
    }
    
    .actions {
        white-space: normal;
    }
}

@media screen and (max-width: 576px) {
    .agenda-table-container {
        border-radius: 4px;
    }
    
    .agenda-submissions-table thead {
        display: none;
    }
    
    .agenda-submissions-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 10px;
    }
    
    .agenda-submissions-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 10px;
        border-bottom: 1px solid #f1f1f1;
        text-align: right;
    }
    
    .agenda-submissions-table td:last-child {
        border-bottom: none;
    }
    
    .agenda-submissions-table td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #495057;
        text-align: left;
        flex: 1;
    }
    
    .agenda-submissions-table td.actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .agenda-submissions-table td.actions::before {
        margin-bottom: 8px;
    }
    
    .actions .btn-action {
        width: 100%;
        margin: 3px 0;
        text-align: center;
    }
    
    .edit-locked {
        width: 100%;
        text-align: center;
    }
}
