/**
 * User Dashboard Styles
 *
 * @package Airy_Frontend_Forms
 */

/* Dashboard Container */
.affcf-dashboard {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* Dashboard Header */
.affcf-dashboard-header {
	margin-bottom: 30px;
}

.affcf-dashboard-header h1 {
	font-size: 32px;
	margin-bottom: 10px;
	color: #333;
}

.affcf-dashboard-intro {
	font-size: 16px;
	color: #666;
	margin: 0;
}

/* Dashboard Tabs */
.affcf-dashboard-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #e5e5e5;
	margin-bottom: 30px;
}

.affcf-tab {
	padding: 15px 25px;
	background: none;
	border: none;
	color: #666;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.affcf-tab:hover {
	color: #0073aa;
}

.affcf-tab.active {
	color: #0073aa;
}

.affcf-tab.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background-color: #0073aa;
}

.affcf-tab-count {
	background-color: #f0f0f0;
	color: #666;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
}

.affcf-tab.active .affcf-tab-count {
	background-color: #0073aa;
	color: #ffffff;
}

/* Posts Filters */
.affcf-posts-filters {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 15px;
	background-color: #f9f9f9;
	border-radius: 4px;
}

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

.affcf-filter-btn {
	padding: 8px 16px;
	background-color: #ffffff;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 5px;
}

.affcf-filter-btn:hover {
	border-color: #0073aa;
	color: #0073aa;
}

.affcf-filter-btn.active {
	background-color: #0073aa;
	border-color: #0073aa;
	color: #ffffff;
}

.affcf-filter-btn .count {
	font-size: 12px;
	opacity: 0.8;
}

/* Posts Table */
.affcf-posts-table-wrapper {
	overflow-x: auto;
	background-color: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
}

.affcf-posts-table {
	width: 100%;
	border-collapse: collapse;
}

.affcf-posts-table thead {
	background-color: #f9f9f9;
}

.affcf-posts-table th {
	padding: 15px;
	text-align: left;
	font-weight: 600;
	color: #333;
	border-bottom: 2px solid #e5e5e5;
}

.affcf-posts-table td {
	padding: 15px;
	border-bottom: 1px solid #e5e5e5;
}

.affcf-posts-table tbody tr:hover {
	background-color: #f9f9f9;
}

.affcf-col-title {
	width: 40%;
}

.affcf-col-status {
	width: 20%;
}

.affcf-col-date {
	width: 20%;
}

.affcf-col-actions {
	width: 20%;
	text-align: right;
}

.affcf-view-link {
	color: #0073aa;
	text-decoration: none;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.affcf-view-link:hover {
	text-decoration: underline;
}

.affcf-view-link .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Action Links */
.affcf-action-link {
	color: #0073aa;
	text-decoration: none;
	font-size: 14px;
	padding: 0 5px;
}

.affcf-action-link:hover {
	text-decoration: underline;
}

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

.affcf-badge-success {
	background-color: #d4edda;
	color: #155724;
}

.affcf-badge-warning {
	background-color: #fff3cd;
	color: #856404;
}

.affcf-badge-info {
	background-color: #d1ecf1;
	color: #0c5460;
}

.affcf-badge-danger {
	background-color: #f8d7da;
	color: #721c24;
}

.affcf-badge-default {
	background-color: #e9ecef;
	color: #495057;
}

/* Drafts Grid */
.affcf-drafts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.affcf-draft-card {
	background-color: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 20px;
	transition: all 0.3s ease;
}

.affcf-draft-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	border-color: #0073aa;
}

.affcf-draft-header {
	margin-bottom: 15px;
}

.affcf-draft-title {
	font-size: 18px;
	margin: 0 0 5px 0;
	color: #333;
}

.affcf-draft-form {
	font-size: 12px;
	color: #666;
	background-color: #f0f0f0;
	padding: 2px 8px;
	border-radius: 4px;
	display: inline-block;
}

.affcf-draft-meta {
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e5e5e5;
}

.affcf-draft-date {
	font-size: 14px;
	color: #666;
	display: flex;
	align-items: center;
	gap: 5px;
}

.affcf-draft-date .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.affcf-draft-actions {
	display: flex;
	gap: 10px;
}

/* Buttons */
.affcf-btn {
	display: inline-block;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

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

.affcf-btn-primary:hover {
	background-color: #005a87;
	transform: translateY(-1px);
}

.affcf-btn-danger {
	background-color: #dc3232;
	color: #ffffff;
}

.affcf-btn-danger:hover {
	background-color: #c62222;
}

/* Empty State */
.affcf-empty-state {
	text-align: center;
	padding: 60px 20px;
	background-color: #f9f9f9;
	border-radius: 8px;
}

.affcf-empty-icon {
	font-size: 64px;
	color: #ddd;
	margin-bottom: 20px;
}

.affcf-empty-icon .dashicons {
	font-size: 64px;
	width: 64px;
	height: 64px;
}

.affcf-empty-state h3 {
	font-size: 24px;
	margin-bottom: 10px;
	color: #333;
}

.affcf-empty-state p {
	font-size: 16px;
	color: #666;
	margin-bottom: 20px;
}

/* Pagination */
.affcf-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-top: 30px;
	padding: 20px;
}

.affcf-pagination-link {
	color: #0073aa;
	text-decoration: none;
	font-weight: 600;
}

.affcf-pagination-link:hover {
	text-decoration: underline;
}

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

/* Login Message */
.affcf-login-message {
	text-align: center;
	padding: 60px 20px;
	background-color: #f9f9f9;
	border-radius: 8px;
}

.affcf-login-message p {
	font-size: 18px;
	margin-bottom: 20px;
	color: #666;
}

/* Responsive */
@media (max-width: 768px) {
	.affcf-posts-filters {
		flex-direction: column;
		gap: 15px;
	}
	
	.affcf-filter-buttons {
		flex-wrap: wrap;
		width: 100%;
	}
	
	.affcf-filter-actions {
		width: 100%;
	}
	
	.affcf-posts-table {
		font-size: 14px;
	}
	
	.affcf-posts-table th,
	.affcf-posts-table td {
		padding: 10px;
	}
	
	.affcf-col-date,
	.affcf-col-actions {
		display: none;
	}
	
	.affcf-drafts-grid {
		grid-template-columns: 1fr;
	}
}

/* Post Type Badge */
.affcf-post-type-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	color: #555;
	background-color: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 3px;
	margin-left: 8px;
	vertical-align: middle;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Success/Error Messages */
.affcf-message {
	padding: 12px 15px;
	margin-bottom: 20px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
}

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

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

/* Action Links */
.affcf-action-link {
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.affcf-edit-link {
	color: #0073aa;
}

.affcf-edit-link:hover {
	color: #005a87;
	text-decoration: underline;
}

.affcf-view-link {
	color: #2ea44f;
}

.affcf-view-link:hover {
	color: #2c974b;
	text-decoration: underline;
}

.affcf-delete-link {
	color: #dc3232;
}

.affcf-delete-link:hover {
	color: #a00;
	text-decoration: underline;
}
