/**
 * Form Sentry CF7 - Admin Styles
 *
 * Static styles for WordPress admin interface (Dashboard only)
 * React component styles are loaded from webpack dist/admin.css
 *
 * @package FormSentry
 * @since 1.0.0
 */

/* Dashboard Layout */
.bccs-dashboard {
    margin-top: 20px;
}

.dashboard-widgets {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.stat-number {
    font-size: 36px;
    font-weight: 600;
    color: #2271b1;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #646970;
    font-weight: 500;
}

/* Widget Styles */
.recent-entries-widget,
.quick-actions-widget {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.recent-entries-widget h2,
.quick-actions-widget h2 {
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #c3c4c7;
    font-size: 16px;
    font-weight: 600;
    background: #f6f7f7;
}

.recent-entries-list {
    padding: 20px;
    min-height: 200px;
}

.recent-entries {
    margin: 0;
    padding: 0;
    list-style: none;
}

.recent-entry {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f1;
}

.recent-entry:last-child {
    border-bottom: none;
}

.entry-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entry-date {
    color: #646970;
    font-size: 13px;
}

.view-all {
    padding: 15px 20px;
    margin: 0;
    border-top: 1px solid #c3c4c7;
    background: #f6f7f7;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: #c3c4c7;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: #fff;
    text-decoration: none;
    color: #2c3338;
    transition: background-color 0.2s ease;
}

.quick-action:hover {
    background: #f6f7f7;
    color: #2c3338;
}

.quick-action .dashicons {
    font-size: 24px;
    margin-bottom: 8px;
    color: #2271b1;
}

/* Loading placeholder for any admin pages */
.loading-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #646970;
}

/* Basic fallback table styles (if React fails to load) */
.bccs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
}

.bccs-table th,
.bccs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #c3c4c7;
}

.bccs-table th {
    background: #f6f7f7;
    font-weight: 600;
    color: #2c3338;
}

.bccs-table tr:last-child td {
    border-bottom: none;
}

.bccs-table tr:hover {
    background: #f6f7f7;
}

/* Basic form controls (fallback) */
.bccs-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.bccs-search {
    flex: 1;
    max-width: 300px;
}

.bccs-search input {
    width: 100%;
}

/* Basic pagination (fallback) */
.bccs-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.pagination-info {
    color: #646970;
    font-size: 14px;
}

.pagination-links {
    display: flex;
    gap: 5px;
}

.pagination-links .button {
    margin: 0;
}

/* WordPress admin notices compatibility */
.bccs-notice {
    margin: 15px 0;
}

/* Plugin activation/deactivation notices */
.bccs-activation-notice {
    border-left: 4px solid #2271b1;
    background: #f0f6fc;
    padding: 12px;
    margin: 15px 0;
}

.bccs-error-notice {
    border-left: 4px solid #d63638;
    background: #fcf0f1;
    padding: 12px;
    margin: 15px 0;
}