/**
 * Agentorie Chat Conversations - Admin Styles
 *
 * @package Agentorie_Chat
 * @since   1.0.0
 */

/* ==========================================================================
   Layout
   ========================================================================== */

.agentorie-wrap {
	max-width: 1400px;
}

.agentorie-wrap h1 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.agentorie-wrap h1 .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
}

/* ==========================================================================
   Tabs Navigation
   ========================================================================== */

.nav-tab-wrapper {
	border-bottom: 2px solid #e2e8f0;
	margin-bottom: 0;
	padding: 0;
}

.nav-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 20px;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	background: transparent;
	color: #64748b;
	font-weight: 500;
	transition: all 0.2s ease;
}

.nav-tab:hover {
	color: #6366f1;
	background: rgba(99, 102, 241, 0.05);
}

.nav-tab-active {
	color: #6366f1;
	border-bottom-color: #6366f1;
	background: transparent;
}

.nav-tab .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.nav-tab .count {
	background: #e2e8f0;
	color: #64748b;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
	font-weight: 600;
}

.nav-tab-active .count {
	background: #6366f1;
	color: #fff;
}

/* Feature locked tab */
.nav-tab.locked {
	opacity: 0.6;
	cursor: not-allowed;
}

.nav-tab .lock-icon {
	font-size: 12px;
	width: 12px;
	height: 12px;
	margin-left: 2px;
}

/* ==========================================================================
   Tab Content
   ========================================================================== */

.tab-content {
	display: none;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-top: none;
	border-radius: 0 0 8px 8px;
	padding: 20px;
}

.tab-content.active {
	display: block;
}

/* ==========================================================================
   Toolbar
   ========================================================================== */

.tablenav.top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e2e8f0;
}

.tablenav .button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tablenav .button .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   Conversations Table
   ========================================================================== */

.agentorie-conversations-table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
}

.agentorie-conversations-table thead th,
.agentorie-conversations-table thead td {
	background: #f8fafc;
	border-bottom: 2px solid #e2e8f0;
	font-weight: 600;
	color: #475569;
	padding: 12px 15px;
}

.agentorie-conversations-table tbody tr {
	transition: background 0.15s ease;
}

.agentorie-conversations-table tbody tr:hover {
	background: #f8fafc;
}

.agentorie-conversations-table tbody td {
	padding: 12px 15px;
	vertical-align: middle;
}

.agentorie-conversations-table code {
	background: #f1f5f9;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	color: #475569;
}

/* Visitor ID Badge */
.visitor-id {
	display: inline-flex;
	align-items: center;
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	color: #fff;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.no-visitor {
	color: #94a3b8;
	font-style: italic;
	font-size: 13px;
}

/* Indicators */
.indicators-column {
	display: flex;
	gap: 6px;
}

.indicator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	cursor: help;
	transition: transform 0.15s ease;
}

.indicator:hover {
	transform: scale(1.1);
}

.indicator .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.indicator-admin {
	background: #dbeafe;
	color: #2563eb;
}

.indicator-human {
	background: #fef3c7;
	color: #d97706;
}

.indicator-negotiate {
	background: #dcfce7;
	color: #16a34a;
}

/* Actions Column */
.actions-column {
	display: flex;
	gap: 6px;
}

.actions-column .button {
	padding: 4px 8px;
	min-height: 32px;
}

.actions-column .button .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.actions-column .delete-conversation {
	color: #ef4444;
}

.actions-column .delete-conversation:hover {
	background: #fef2f2;
	border-color: #fecaca;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.agentorie-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #94a3b8;
}

.agentorie-empty-state .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	margin-bottom: 15px;
	opacity: 0.5;
}

.agentorie-empty-state p {
	font-size: 16px;
	margin: 0;
}

/* ==========================================================================
   Stats Grid
   ========================================================================== */

.agentorie-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 25px;
}

.agentorie-stat-card {
	display: flex;
	align-items: center;
	gap: 15px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.agentorie-stat-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.stat-icon {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.stat-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #fff;
}

.stat-icon.conversations { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.stat-icon.messages { background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%); }
.stat-icon.human { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }
.stat-icon.contacts { background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%); }

.stat-content {
	display: flex;
	flex-direction: column;
}

.stat-value {
	font-size: 28px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.2;
}

.stat-label {
	font-size: 13px;
	color: #64748b;
	margin-top: 2px;
}

/* ==========================================================================
   Chart Card
   ========================================================================== */

.agentorie-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
}

.agentorie-card .card-header {
	padding: 15px 20px;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

.agentorie-card .card-header h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
}

.agentorie-card .card-body {
	padding: 20px;
}

/* ==========================================================================
   Contacts Grid
   ========================================================================== */

.contacts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}

.contact-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	transition: box-shadow 0.2s ease;
}

.contact-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e2e8f0;
}

.contact-avatar {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 18px;
}

.contact-info {
	flex: 1;
}

.contact-name {
	font-weight: 600;
	color: #1e293b;
	font-size: 15px;
}

.contact-date {
	font-size: 12px;
	color: #94a3b8;
	margin-top: 2px;
}

.contact-details {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.contact-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}

.contact-row .dashicons {
	color: #6366f1;
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.contact-row a {
	color: #3b82f6;
	text-decoration: none;
}

.contact-row a:hover {
	text-decoration: underline;
}

.contact-message {
	display: flex;
	gap: 10px;
	padding: 12px;
	background: #f8fafc;
	border-radius: 8px;
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
}

.contact-message .dashicons {
	color: #94a3b8;
	flex-shrink: 0;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.agentorie-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
}

.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
}

.modal-content {
	position: relative;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	max-width: 480px;
	width: 90%;
	max-height: 90vh;
	overflow: hidden;
	animation: modalSlideIn 0.3s ease;
}

.modal-content.modal-large {
	max-width: 700px;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

.modal-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 10px;
}

.modal-header h3 .dashicons {
	color: #6366f1;
}

.modal-header h3 .dashicons-warning {
	color: #ef4444;
}

.modal-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #94a3b8;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: color 0.15s ease;
}

.modal-close:hover {
	color: #ef4444;
}

.modal-body {
	padding: 24px;
	max-height: 60vh;
	overflow-y: auto;
}

.modal-body p {
	margin: 0 0 20px;
	color: #475569;
	font-size: 15px;
}

.modal-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

.button-danger {
	background: #ef4444 !important;
	border-color: #dc2626 !important;
	color: #fff !important;
}

.button-danger:hover {
	background: #dc2626 !important;
}

/* ==========================================================================
   Conversation Messages in Modal
   ========================================================================== */

.conversation-messages {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.conv-message {
	display: flex;
	flex-direction: column;
	max-width: 85%;
}

.conv-message.client {
	align-self: flex-end;
}

.conv-message.bot {
	align-self: flex-start;
}

.conv-message .message-bubble {
	padding: 12px 16px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.5;
}

.conv-message.client .message-bubble {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.conv-message.bot .message-bubble {
	background: #f1f5f9;
	color: #1e293b;
	border-bottom-left-radius: 4px;
}

.conv-message.bot.admin .message-bubble {
	background: #dbeafe;
	border-left: 3px solid #3b82f6;
}

.conv-message .sender-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #3b82f6;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.conv-message .message-time {
	font-size: 11px;
	color: #94a3b8;
	margin-top: 6px;
	text-align: right;
}

.conv-message.client .message-time {
	color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.tablenav.bottom {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #e2e8f0;
}

.tablenav-pages {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.tablenav-pages a,
.tablenav-pages span.current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.15s ease;
}

.tablenav-pages a {
	background: #fff;
	border: 1px solid #e2e8f0;
	color: #475569;
}

.tablenav-pages a:hover {
	background: #f8fafc;
	border-color: #6366f1;
	color: #6366f1;
}

.tablenav-pages span.current {
	background: #6366f1;
	color: #fff;
	border: 1px solid #6366f1;
}

/* ==========================================================================
   Feature Locked State
   ========================================================================== */

.feature-locked {
	text-align: center;
	padding: 60px 20px;
}

.feature-locked .lock-icon {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #94a3b8;
	margin-bottom: 16px;
}

.feature-locked h3 {
	margin: 0 0 8px;
	font-size: 18px;
	color: #1e293b;
}

.feature-locked p {
	margin: 0 0 20px;
	color: #64748b;
	font-size: 14px;
}

.feature-locked .button-primary {
	background: #6366f1;
	border-color: #6366f1;
}

.feature-locked .button-primary:hover {
	background: #4f46e5;
	border-color: #4f46e5;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 782px) {
	.agentorie-stats-grid {
		grid-template-columns: 1fr 1fr;
	}
	
	.contacts-grid {
		grid-template-columns: 1fr;
	}
	
	.tablenav.top {
		flex-direction: column;
		gap: 10px;
		align-items: stretch;
	}
	
	.tablenav .alignleft,
	.tablenav .alignright {
		float: none;
	}
}

/**
 * Agentorie Chat - Advanced Analytics Styles
 * Add this to your existing admin CSS file
 *
 * @package Agentorie_Chat
 * @since   1.1.0
 */

/* ===========================================
   Stats Toolbar
   =========================================== */
.stats-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.period-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.period-label {
    font-weight: 500;
    color: #64748b;
    margin-right: 8px;
}

.period-selector .button {
    min-width: 70px;
    text-align: center;
}

/* ===========================================
   Stats Grid Improvements
   =========================================== */
.agentorie-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.agentorie-stats-grid.secondary {
    grid-template-columns: repeat(4, 1fr);
}

.agentorie-stat-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.agentorie-stat-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.agentorie-stat-card.small {
    padding: 16px;
}

.agentorie-stat-card.small .stat-icon {
    width: 40px;
    height: 40px;
}

.agentorie-stat-card.small .stat-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.agentorie-stat-card.small .stat-value {
    font-size: 1.25rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.stat-icon.conversations { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.stat-icon.messages { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.stat-icon.human { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.stat-icon.contacts { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.stat-icon.resolution { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.stat-icon.avg { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.stat-icon.negotiate { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.stat-icon.peak { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

.stat-trend {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
}

.stat-trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-trend .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.stat-tooltip {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #94a3b8;
    cursor: help;
}

.stat-tooltip .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ===========================================
   Charts Grid
   =========================================== */
.agentorie-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.agentorie-card.chart-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.agentorie-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.agentorie-card .card-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
}

.agentorie-card .card-header h2 .dashicons {
    color: #6366f1;
}

.card-description {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

.agentorie-card .card-body {
    padding: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
}

.chart-container.chart-hourly {
    height: 200px;
}

.chart-card.chart-small .chart-container {
    height: 250px;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    gap: 16px;
}

.chart-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.chart-legend .legend-item:hover {
    background: #f8fafc;
}

.chart-legend .legend-item.inactive {
    opacity: 0.4;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* ===========================================
   GDPR Section
   =========================================== */
.gdpr-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 24px;
}

.gdpr-card .card-header h2 .dashicons {
    color: #10b981;
}

.gdpr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gdpr-item {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.gdpr-item h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #1e293b;
}

.gdpr-item p {
    margin: 0 0 16px;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.gdpr-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gdpr-form label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
}

.gdpr-form input[type="text"],
.gdpr-form select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.gdpr-form input[type="text"]:focus,
.gdpr-form select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.gdpr-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    background: #eff6ff;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.gdpr-notice .dashicons {
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 2px;
}

.gdpr-notice p {
    margin: 0;
    font-size: 0.85rem;
    color: #1e40af;
    line-height: 1.5;
}

.gdpr-notice a {
    color: #1e40af;
    text-decoration: underline;
}

/* ===========================================
   Feature Locked State
   =========================================== */
.feature-locked {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    margin: 20px 0;
}

.feature-locked .lock-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.feature-locked h3 {
    font-size: 1.5rem;
    margin: 0 0 8px;
    color: #1e293b;
}

.feature-locked > p {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 24px;
}

.feature-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #475569;
}

.preview-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #6366f1;
}

.button-hero {
    padding: 12px 32px !important;
    font-size: 1rem !important;
    height: auto !important;
}

/* ===========================================
   Bulk Actions
   =========================================== */
#bulk-action-selector {
    margin-right: 8px;
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 1200px) {
    .agentorie-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .agentorie-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .gdpr-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .stats-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .period-selector {
        flex-wrap: wrap;
    }
    
    .agentorie-stats-grid,
    .agentorie-stats-grid.secondary {
        grid-template-columns: 1fr;
    }
    
    .feature-preview {
        flex-direction: column;
        align-items: center;
    }
}

.agentorie-filters-bar {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 12px 16px;
	margin-bottom: 16px;
}

.agentorie-filters-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.filter-group {
	display: flex;
	align-items: center;
}

.filter-group.filter-search {
	flex: 1;
	min-width: 200px;
	max-width: 300px;
}

.filter-group.filter-search input {
	width: 100%;
}

.filter-group select {
	min-width: 140px;
}

.filter-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.filter-reset {
	color: #d63638;
	text-decoration: none;
}

.filter-reset:hover {
	color: #b32d2e;
}

.agentorie-badge {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	margin-left: 6px;
	vertical-align: middle;
}

.agentorie-badge-new {
	background: #dff0d8;
	color: #3c763d;
}

.column-preview {
	width: 20%;
}

.column-preview .preview-text {
	color: #646970;
	font-style: italic;
	font-size: 12px;
}

.column-preview .no-preview {
	color: #a7aaad;
}

.column-session {
	width: 15%;
}

.column-visitor {
	width: 12%;
}

.column-messages {
	width: 8%;
	text-align: center;
}

.column-flags {
	width: 12%;
}

.column-date {
	width: 13%;
}

.column-actions {
	width: 10%;
}

.wp-list-table th.sortable a,
.wp-list-table th.sorted a {
	display: flex;
	align-items: center;
}

.wp-list-table .sorting-indicators {
	display: flex;
	flex-direction: column;
	margin-left: 4px;
}

.wp-list-table .sorting-indicator {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
}

.wp-list-table .sorting-indicator.asc {
	border-bottom: 4px solid #a7aaad;
	margin-bottom: 2px;
}

.wp-list-table .sorting-indicator.desc {
	border-top: 4px solid #a7aaad;
}

.wp-list-table th.sorted.asc .sorting-indicator.asc {
	border-bottom-color: #135e96;
}

.wp-list-table th.sorted.desc .sorting-indicator.desc {
	border-top-color: #135e96;
}

.indicators-column .no-flags {
	color: #a7aaad;
}

@media screen and (max-width: 782px) {
	.agentorie-filters-form {
		flex-direction: column;
		align-items: stretch;
	}

	.filter-group.filter-search {
		max-width: none;
	}

	.filter-group select {
		width: 100%;
	}
}
/* ==========================================================================
   Utility Classes
   ========================================================================== */

.agentorie-form-inline {
	display: inline;
}

.agentorie-loading-text {
	text-align: center;
	color: #94a3b8;
}
