/**
 * Front-end styles for Late Plugin
 * 
 * All styles are scoped to .late-plugin-wrapper to prevent theme CSS conflicts
 */

/* CSS Isolation: Prevent theme styles from affecting plugin buttons */
.late-plugin-wrapper button,
.late-plugin-wrapper .late-btn,
.late-plugin-wrapper input[type="button"],
.late-plugin-wrapper input[type="submit"],
.late-plugin-wrapper a.late-btn,
.late-plugin-wrapper .late-connect-btn,
.late-plugin-wrapper .late-view-btn,
.late-plugin-wrapper .late-calendar-nav {
	/* Let individual button classes set their own backgrounds - don't inherit */
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
}

/* High-specificity wrapper to isolate plugin styles from theme */
.late-plugin-wrapper,
.late-composer-frontend,
.late-onboarding-frontend,
.late-posts-frontend,
.late-analytics-frontend,
.late-followers-frontend {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	position: relative;
	min-width: 0;
	box-sizing: border-box;
}

.late-composer-form {
	position: relative;
}

/* Loader Overlay */
.late-loader-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	border-radius: 8px;
}

.late-loader-spinner {
	text-align: center;
}

.late-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #0073aa;
	border-radius: 50%;
	animation: late-spin 1s linear infinite;
	margin: 0 auto 15px;
}

@keyframes late-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.late-loader-text {
	margin: 0;
	color: #666;
	font-size: 14px;
	font-weight: 500;
}

.late-composer-header,
.late-onboarding-header {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #e0e0e0;
}

.late-composer-header h2,
.late-onboarding-header h2 {
	margin: 0 0 10px 0;
	font-size: 28px;
	color: #333;
}

.late-description {
	color: #666;
	font-size: 14px;
	margin: 0;
}

.late-form-group {
	margin-bottom: 25px;
}

.late-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.late-label-small {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #666;
	font-size: 12px;
}

.late-required {
	color: #d32f2f;
	margin-left: 4px;
}

.late-select,
.late-input,
.late-textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.2s;
}

.late-select:focus,
.late-input:focus,
.late-textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.late-textarea {
	min-height: 120px;
	resize: vertical;
}

.late-textarea-small {
	min-height: 80px;
}

.late-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	z-index: -1;
}

/* Drag and Drop Zone */
.late-media-dropzone {
	position: relative;
	border: 2px dashed #ccc;
	border-radius: 8px;
	padding: 40px 20px;
	text-align: center;
	background: #fafafa;
	transition: all 0.3s ease;
	cursor: pointer;
	min-height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
}

.late-media-dropzone:hover {
	border-color: #0073aa;
	background: #f0f8ff;
}

.late-media-dropzone.late-dropzone-active {
	border-color: #0073aa;
	background: #e6f3ff;
	border-style: solid;
	box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

.late-dropzone-content {
	pointer-events: none;
}

.late-dropzone-icon {
	font-size: 48px;
	color: #0073aa;
	margin-bottom: 15px;
}

.late-dropzone-text {
	font-size: 16px;
	color: #666;
	margin: 0 0 8px 0;
}

.late-dropzone-browse {
	background: none;
	border: none;
	color: #0073aa;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	pointer-events: auto;
	padding: 0;
	font-size: inherit;
	font-family: inherit;
}

.late-dropzone-browse:hover {
	color: #005a87;
}

.late-dropzone-hint {
	font-size: 13px;
	color: #999;
	margin: 0;
}

.late-media-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 15px;
}

.late-media-preview-item {
	position: relative;
	width: 120px;
	height: 120px;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	object-fit: cover;
}

.late-media-preview-item .late-media-remove {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s;
	z-index: 10;
}

.late-media-preview-item:hover .late-media-remove {
	opacity: 1;
}

.late-media-preview-item .late-media-remove:hover {
	background: rgba(220, 53, 69, 0.9);
}

.late-media-preview-item .late-media-remove i {
	font-size: 12px;
}

.late-media-preview-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Composer media preview video placeholder */
.late-media-preview .late-media-preview-video {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	font-size: 12px;
	color: #666;
}

.late-media-video-icon {
	font-size: 32px;
	color: #0073aa;
	margin-bottom: 8px;
}

.late-media-file-name {
	font-size: 11px;
	color: #666;
	display: block;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	max-width: 100px;
	padding: 0 5px;
}

.late-platforms-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.late-platform-item {
	display: flex;
	align-items: center;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	background: #fafafa;
	transition: all 0.2s;
}

.late-platform-item:hover {
	background: #f0f0f0;
	border-color: #0073aa;
}

.late-platform-item input[type="checkbox"] {
	margin-right: 10px;
	width: 18px;
	height: 18px;
}

.platform-name {
	margin-right: 10px;
	font-weight: 600;
	flex: 1;
}

.platform-username {
	color: #666;
	font-size: 13px;
}

.late-custom-content {
	margin-top: 10px;
	padding-left: 30px;
	border-left: 3px solid #0073aa;
}

.late-radio-group {
	display: flex;
	gap: 20px;
}

.late-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.late-radio-label input[type="radio"] {
	margin: 0;
}

.late-form-actions {
	display: flex;
	gap: 12px;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
	align-items: center;
	flex-wrap: wrap;
}

.late-form-actions .late-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.late-form-actions .late-btn i {
	font-size: 14px;
}

.late-plugin-wrapper .late-btn,
.late-btn {
	padding: 12px 24px !important;
	border: none !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: all 0.2s !important;
	box-sizing: border-box !important;
}

.late-plugin-wrapper .late-btn-primary,
.late-btn-primary {
	background: #0073aa !important;
	color: #fff !important;
	border: none !important;
}

.late-plugin-wrapper .late-btn-primary:hover,
.late-btn-primary:hover {
	background: #005a87 !important;
	color: #fff !important;
}

.late-plugin-wrapper .late-btn-secondary,
.late-btn-secondary {
	background: #f0f0f0 !important;
	color: #333 !important;
	border: 1px solid #ddd !important;
}

.late-plugin-wrapper .late-btn-secondary:hover,
.late-btn-secondary:hover {
	background: #e0e0e0 !important;
	color: #333 !important;
}

/* Schedule Section */
.late-schedule-container {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	transition: all 0.3s ease;
}

.late-schedule-container:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.late-schedule-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 20px;
	background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
}

.late-schedule-header i {
	font-size: 18px;
	opacity: 0.95;
}

.late-schedule-content {
	padding: 24px;
}

.late-schedule-row {
	display: grid;
	grid-template-columns: 2fr 1.5fr;
	gap: 20px;
}

.late-schedule-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.late-schedule-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #495057;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0;
}

.late-schedule-label i {
	font-size: 14px;
	color: #0073aa;
}

.late-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.late-datetime-wrapper {
	cursor: pointer;
	position: relative;
}

.late-datetime-wrapper::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 8px;
	pointer-events: none;
	transition: all 0.2s ease;
}

.late-datetime-wrapper:hover::after {
	background: rgba(0, 115, 170, 0.02);
}

.late-input-wrapper .late-input-icon {
	position: absolute;
	left: 14px;
	color: #6c757d;
	font-size: 14px;
	z-index: 1;
	pointer-events: none;
}

.late-input-wrapper .late-input,
.late-input-wrapper .late-select {
	padding-left: 42px;
	border: 1.5px solid #dee2e6;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.2s ease;
	background: #fff;
	height: 46px;
	cursor: pointer;
}

.late-input-wrapper .late-input-datetime {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border: 2px solid #0073aa;
	box-shadow: 0 2px 6px rgba(0, 115, 170, 0.12);
	font-weight: 500;
	color: #495057;
	position: relative;
	width: 100%;
	cursor: pointer;
	padding-right: 45px;
}

.late-datetime-wrapper:hover .late-input-datetime {
	border-color: #005a87;
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.18);
	transform: translateY(-1px);
	background: #fff;
}

.late-input-wrapper .late-input-datetime:focus {
	border-color: #0073aa;
	box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.12), 0 4px 12px rgba(0, 115, 170, 0.15);
	outline: none;
	background: #fff;
}

/* Make datetime input icon more prominent */
.late-datetime-wrapper .late-input-icon {
	color: #0073aa;
	font-size: 16px;
	left: 16px;
}

/* Datetime trigger button */
.late-datetime-trigger {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #0073aa;
	font-size: 14px;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: all 0.2s ease;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.late-datetime-trigger:hover {
	background: rgba(0, 115, 170, 0.1);
	color: #005a87;
}

.late-datetime-trigger:active {
	background: rgba(0, 115, 170, 0.15);
	transform: translateY(-50%) scale(0.95);
}

.late-datetime-trigger i {
	pointer-events: none;
}

.late-input-wrapper .late-input:focus,
.late-input-wrapper .late-select:focus {
	border-color: #0073aa;
	box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.08);
	outline: none;
}

.late-input-wrapper .late-input:hover,
.late-input-wrapper .late-select:hover {
	border-color: #adb5bd;
}

.late-input-wrapper .late-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px;
	padding-right: 40px;
	cursor: pointer;
}

/* Responsive schedule section */
@media (max-width: 768px) {
	.late-schedule-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.late-schedule-content {
		padding: 20px;
	}
}

.late-message {
	margin-top: 20px;
}

.late-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 15px;
}

.late-notice-warning {
	background: #fff3cd;
	border: 1px solid #ffc107;
	color: #856404;
}

.late-notice-info {
	background: #d1ecf1;
	border: 1px solid #0c5460;
	color: #0c5460;
}

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

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

.late-info {
	color: #004085;
	background: #cce5ff;
	border: 1px solid #99ccff;
}

.late-loading {
	color: #666;
	font-style: italic;
}

.late-platforms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 15px;
}

.late-plugin-wrapper .late-connect-btn,
.late-connect-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	border: 2px solid #ddd !important;
	border-radius: 8px;
	background: #fff !important;
	cursor: pointer;
	transition: all 0.2s;
	color: #000 !important;
	position: relative;
}

.late-plugin-wrapper .late-connect-btn:hover:not(.late-platform-connected):not(:disabled),
.late-connect-btn:hover:not(.late-platform-connected):not(:disabled) {
	border-color: #0073aa !important;
	background: #f0f8ff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Disabled/Connected Platform Buttons */
.late-connect-btn.late-platform-connected,
.late-connect-btn.late-platform-connected:disabled,
.late-connect-btn:disabled.late-platform-connected {
	opacity: 0.5 !important;
	background: #f5f5f5 !important;
	border-color: #ddd !important;
	cursor: not-allowed !important;
	position: relative;
	color: #999 !important;
}

.late-connect-btn.late-platform-connected .late-platform-icon,
.late-connect-btn.late-platform-connected .late-platform-name {
	opacity: 0.7;
	pointer-events: none;
}

/* Regular disabled state (non-connected) */
.late-plugin-wrapper .late-connect-btn:disabled:not(.late-platform-connected),
.late-connect-btn:disabled:not(.late-platform-connected) {
	opacity: 0.6 !important;
	background: #f5f5f5 !important;
	border-color: #ddd !important;
	cursor: not-allowed !important;
	position: relative;
}

.late-platform-check-icon {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #28a745;
	color: #fff;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	pointer-events: none;
}

.late-platform-check-icon i {
	font-size: 12px;
}

.late-plugin-wrapper .late-connect-btn.late-platform-connected:hover,
.late-plugin-wrapper .late-connect-btn:disabled:hover,
.late-connect-btn.late-platform-connected:hover,
.late-connect-btn:disabled:hover {
	transform: none;
	box-shadow: none;
	background: #f5f5f5 !important;
	border-color: #ddd !important;
}

.late-platform-icon {
	font-size: 32px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.late-platform-icon i {
	font-size: 32px;
}

.late-icon-svg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
}

.late-icon-svg svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.late-platform-name {
	color: #000;
	font-weight: 600;
	font-size: 14px;
	margin-top: 8px;
}

.late-connected-accounts {
	margin-top: 10px;
}

.late-accounts-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.late-account-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.late-account-item:hover {
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	border-color: #ccc;
}

.late-account-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.late-account-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e0e0e0;
	flex-shrink: 0;
}

.late-account-avatar-placeholder {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #e0e0e0;
	flex-shrink: 0;
}

.late-account-avatar-placeholder i {
	font-size: 20px;
	color: #999;
}

.late-account-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
}

.late-account-platform {
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.late-account-username {
	color: #666;
	font-size: 13px;
}

.late-account-display-name {
	color: #999;
	font-size: 12px;
}

.late-account-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.late-account-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.late-status-connected {
	background: #d4edda;
	color: #155724;
}

.late-status-connected i {
	color: #28a745;
}

.late-plugin-wrapper .late-btn-disconnect,
.late-btn-disconnect {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 6px 12px !important;
	background: #fff !important;
	border: 1px solid #dc3545 !important;
	border-radius: 4px !important;
	color: #dc3545 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: all 0.2s !important;
	white-space: nowrap !important;
}

.late-plugin-wrapper .late-btn-disconnect:hover,
.late-btn-disconnect:hover {
	background: #dc3545 !important;
	color: #fff !important;
}

.late-plugin-wrapper .late-btn-disconnect:active,
.late-btn-disconnect:active {
	transform: scale(0.98) !important;
}

.late-plugin-wrapper .late-btn-disconnect:disabled,
.late-btn-disconnect:disabled {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
	background: #fff !important;
	color: #dc3545 !important;
}

.late-link {
	color: #0073aa;
	text-decoration: underline;
	cursor: pointer;
}

.late-link:hover {
	color: #005a87;
}

/* Posts List/Calendar View Styles */
.late-posts-frontend {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	min-width: 0;
	box-sizing: border-box;
}

.late-posts-header {
	margin-bottom: 30px;
}

.late-posts-header-top {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e0e0e0;
}

.late-posts-header h2 {
	margin: 0;
	font-size: 28px;
	color: #333;
}

.late-posts-view-toggle {
	display: flex;
	gap: 8px;
}

.late-plugin-wrapper .late-view-btn,
.late-view-btn {
	padding: 8px 16px !important;
	border: 1px solid #ddd !important;
	background: #fff !important;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
	color: #666 !important;
	font-size: 16px;
}

.late-plugin-wrapper .late-view-btn:hover,
.late-view-btn:hover {
	background: #f5f5f5 !important;
	border-color: #0073aa !important;
}

.late-plugin-wrapper .late-view-btn.active,
.late-view-btn.active {
	background: #0073aa !important;
	color: #fff !important;
	border-color: #0073aa !important;
}

.late-posts-toolbar {
	display: flex;
	gap: 15px;
	align-items: center;
	flex-wrap: wrap;
}

.late-posts-filters {
	flex: 1;
	min-width: 0;
}

.late-posts-search {
	flex: 1;
	min-width: 0;
}

.late-posts-view {
	display: none;
}

.late-posts-view.active {
	display: block;
}

/* List/Grid View */
.late-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.late-post-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	transition: all 0.2s;
	cursor: pointer;
	position: relative;
}

.late-post-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transform: translateY(-2px);
	border-color: #0073aa;
}

.late-post-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}

.late-post-status {
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.late-status-draft {
	background: #f5f5f5;
	color: #666;
}

.late-status-scheduled {
	background: #e3f2fd;
	color: #1976d2;
}

.late-status-published {
	background: #e8f5e9;
	color: #388e3c;
}

.late-status-failed {
	background: #ffebee;
	color: #c62828;
}

.late-status-publishing {
	background: #fff3e0;
	color: #f57c00;
}

.late-status-partial {
	background: #fff9c4;
	color: #f57f17;
}

.late-post-date {
	color: #666;
	font-size: 12px;
}

.late-post-content {
	color: #333;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 15px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.late-post-platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.late-platform-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: #f5f5f5;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	color: #666;
}

.late-post-media-preview {
	display: flex;
	gap: 8px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.late-media-preview-item {
	position: relative;
	width: 80px;
	height: 80px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #e0e0e0;
	background: #f5f5f5;
	flex-shrink: 0;
}

.late-media-preview-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.late-media-preview-item video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Post card media preview video */
.late-post-media-preview .late-media-preview-video {
	position: relative;
}

.late-media-video-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	transition: background 0.2s;
}

.late-media-video-overlay:hover {
	background: rgba(0, 0, 0, 0.5);
}

.late-media-preview-more {
	width: 80px;
	height: 80px;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	background: #f9f9f9;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	font-size: 12px;
	font-weight: 600;
	flex-shrink: 0;
}

.late-post-actions {
	display: flex;
	gap: 8px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #f0f0f0;
}

.late-plugin-wrapper .late-btn-small,
.late-btn-small {
	padding: 6px 12px !important;
	font-size: 12px !important;
	border-radius: 4px !important;
	cursor: pointer !important;
	border: none !important;
	font-weight: 500 !important;
	transition: all 0.2s !important;
}

.late-plugin-wrapper .late-btn-link,
.late-btn-link {
	background: transparent !important;
	color: #0073aa !important;
	text-decoration: none !important;
	border: none !important;
}

.late-plugin-wrapper .late-btn-link:hover,
.late-btn-link:hover {
	text-decoration: underline !important;
	color: #005a87 !important;
}

.late-plugin-wrapper .late-btn-danger,
.late-btn-danger {
	background: #dc3545 !important;
	color: #fff !important;
	border: none !important;
}

.late-plugin-wrapper .late-btn-danger:hover,
.late-btn-danger:hover {
	background: #c82333 !important;
	color: #fff !important;
}

/* Calendar View */
.late-calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.late-calendar-header h3 {
	margin: 0;
	font-size: 20px;
	color: #333;
}

.late-plugin-wrapper .late-calendar-nav,
.late-calendar-nav {
	padding: 8px 16px !important;
	border: 1px solid #ddd !important;
	background: #fff !important;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
	color: #666 !important;
}

.late-plugin-wrapper .late-calendar-nav:hover,
.late-calendar-nav:hover {
	background: #f5f5f5 !important;
	border-color: #0073aa !important;
	color: #0073aa !important;
}

.late-calendar-container {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.late-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 1px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	background: #e0e0e0;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.late-calendar-day-header {
	padding: 12px;
	background: #f5f5f5;
	font-weight: 600;
	font-size: 12px;
	text-align: center;
	color: #666;
	text-transform: uppercase;
}

.late-calendar-day {
	padding: 8px;
	background: #fff;
	min-height: 100px;
	min-width: 0;
	position: relative;
	cursor: pointer;
	transition: background 0.2s;
}

.late-calendar-day:hover {
	background: #f9f9f9;
}

.late-calendar-day.today {
	background: #e3f2fd;
	border: 2px solid #0073aa;
}

.late-calendar-day.empty {
	background: #fafafa;
	cursor: default;
}

.late-calendar-day-number {
	font-weight: 600;
	font-size: 14px;
	color: #333;
	margin-bottom: 4px;
}

.late-calendar-day.today .late-calendar-day-number {
	color: #0073aa;
}

.late-calendar-day-posts {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 4px;
}

.late-calendar-post-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 6px;
	background: #f5f5f5;
	border-radius: 4px;
	font-size: 11px;
	cursor: pointer;
	transition: all 0.2s;
	overflow: hidden;
}

.late-calendar-post-item:hover {
	background: #e0e0e0;
	transform: scale(1.02);
}

.late-calendar-post-status {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.late-calendar-post-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #666;
	min-width: 0;
}

.late-calendar-post-more {
	padding: 4px 6px;
	background: #f0f0f0;
	border-radius: 4px;
	font-size: 11px;
	color: #666;
	text-align: center;
	font-weight: 600;
}

/* Modal */
.late-post-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
}

.late-post-modal {
	background: #fff;
	border-radius: 8px;
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.late-post-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.late-post-modal-header h3 {
	margin: 0;
	font-size: 20px;
	color: #333;
}

.late-modal-close {
	padding: 8px;
	border: none;
	background: transparent;
	cursor: pointer;
	color: #666;
	font-size: 18px;
	border-radius: 4px;
	transition: all 0.2s;
}

.late-modal-close:hover {
	background: #f5f5f5;
	color: #333;
}

.late-post-modal-body {
	padding: 20px;
}

.late-post-modal-status,
.late-post-modal-date {
	margin-bottom: 15px;
	font-size: 14px;
	color: #666;
}

.late-post-modal-content {
	margin-bottom: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 4px;
	line-height: 1.6;
	color: #333;
}

.late-post-modal-platforms {
	margin-bottom: 15px;
}

.late-post-modal-platforms .late-platform-badge {
	margin: 4px 4px 4px 0;
}

.late-post-modal-media {
	margin-bottom: 20px;
	padding-top: 15px;
	border-top: 1px solid #e0e0e0;
}

.late-post-modal-media strong {
	display: block;
	margin-bottom: 12px;
	color: #333;
	font-size: 14px;
}

.late-modal-media-preview {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.late-modal-media-item {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #e0e0e0;
	background: #f5f5f5;
	aspect-ratio: 1;
}

.late-modal-media-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	cursor: pointer;
	transition: transform 0.2s;
}

.late-modal-media-item img:hover {
	transform: scale(1.05);
}

.late-modal-media-video {
	position: relative;
}

.late-modal-media-video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Image lightbox */
.late-media-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10002;
	padding: 20px;
	cursor: pointer;
}

.late-media-lightbox img {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	border-radius: 4px;
}

.late-media-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	padding: 12px 20px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 18px;
	color: #333;
	font-weight: 600;
	transition: background 0.2s;
}

.late-media-lightbox-close:hover {
	background: #fff;
}

.late-post-modal-urls {
	margin-bottom: 20px;
	padding-top: 15px;
	border-top: 1px solid #e0e0e0;
}

.late-post-modal-urls strong {
	display: block;
	margin-bottom: 10px;
	color: #333;
	font-size: 14px;
}

.late-post-modal-urls .late-btn-small {
	margin-right: 8px;
	margin-bottom: 8px;
}

.late-post-modal-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 2px solid #e0e0e0;
	flex-wrap: wrap;
}

.late-post-modal-actions .late-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 120px;
	justify-content: center;
}

.late-post-modal-actions .late-btn i {
	font-size: 14px;
}

/* Pagination */
.late-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
	.late-posts-grid {
		grid-template-columns: 1fr;
	}
	
	.late-posts-header-top {
		flex-direction: column;
		align-items: flex-end;
		gap: 15px;
	}
	
	.late-posts-toolbar {
		flex-direction: column;
	}
	
	.late-posts-filters,
	.late-posts-search {
		width: 100%;
	}
	
	/* Account items responsive */
	.late-account-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	
	.late-account-info {
		width: 100%;
	}
	
	.late-account-actions {
		width: 100%;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 8px;
	}
	
	.late-btn-disconnect {
		flex: 1;
		min-width: 120px;
		justify-content: center;
	}
	
	.late-calendar-day {
		min-height: 80px;
		padding: 4px;
	}
	
	.late-calendar-day-number {
		font-size: 12px;
	}
	
	.late-calendar-post-item {
		font-size: 10px;
		padding: 2px 4px;
	}
	
	.late-calendar-day-header {
		padding: 8px 2px;
		font-size: 10px;
	}
	
	.late-calendar-grid {
		gap: 0;
	}
	
	.late-calendar-post-text {
		white-space: normal;
		word-break: break-word;
	}
	
	.late-media-preview-item {
		width: 60px;
		height: 60px;
	}
	
	.late-media-preview-more {
		width: 60px;
		height: 60px;
		font-size: 10px;
	}
	
	.late-modal-media-preview {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	}
}

/* Reschedule Modal */
.late-reschedule-modal {
	max-width: 500px;
}

.late-post-preview {
	margin-bottom: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 4px;
	border-left: 3px solid #0073aa;
}

.late-post-preview strong {
	display: block;
	margin-bottom: 8px;
	color: #333;
	font-size: 14px;
}

.late-post-preview p {
	margin: 0;
	color: #666;
	font-size: 13px;
	line-height: 1.5;
}

/* Notification */
.late-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 15px 20px;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 10001;
	max-width: 400px;
	animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.late-post-actions .late-btn-small {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.late-post-actions .late-btn-small i {
	font-size: 11px;
}

/* Welcome Overlay */
.late-welcome-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
	animation: late-fadeIn 0.3s ease-out;
}

@keyframes late-fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.late-welcome-content {
	background: #fff;
	border-radius: 16px;
	padding: 40px;
	max-width: 500px;
	width: 100%;
	text-align: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	animation: late-slideUp 0.4s ease-out;
	position: relative;
}

@keyframes late-slideUp {
	from {
		transform: translateY(30px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.late-welcome-icon {
	font-size: 64px;
	color: #0073aa;
	margin-bottom: 20px;
	animation: late-bounce 2s ease-in-out infinite;
}

@keyframes late-bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

.late-welcome-content h2 {
	margin: 0 0 15px 0;
	font-size: 28px;
	color: #333;
	font-weight: 700;
}

.late-welcome-description {
	margin: 0 0 30px 0;
	color: #666;
	font-size: 16px;
	line-height: 1.6;
}

.late-welcome-content .late-btn {
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	min-width: 200px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.3s ease;
}

.late-welcome-content .late-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.late-welcome-content .late-btn i {
	font-size: 18px;
}

.late-welcome-message {
	margin-top: 20px;
	min-height: 20px;
}

.late-welcome-message .late-notice {
	margin: 0;
	text-align: left;
}

/* Hide onboarding content when overlay is visible */
.late-onboarding-frontend.has-welcome-overlay .late-onboarding-content {
	opacity: 0.3;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

/* Responsive welcome overlay */
@media (max-width: 768px) {
	.late-welcome-content {
		padding: 30px 20px;
		margin: 10px;
	}
	
	.late-welcome-icon {
		font-size: 48px;
	}
	
	.late-welcome-content h2 {
		font-size: 24px;
	}
	
	.late-welcome-description {
		font-size: 14px;
	}
	
	.late-welcome-content .late-btn {
		min-width: 100%;
		padding: 12px 24px;
	}
}

/* Analytics Frontend Styles */
.late-analytics-frontend {
	/* Uses base styles from line 26-30 (max-width: 1200px, margin: 0 auto, position: relative) */
}

.late-analytics-content {
	position: relative;
	min-height: 400px;
}

/* Analytics Loading Overlay */
#late-analytics-loader.late-loader-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	border-radius: 8px;
}

.late-analytics-header {
	display: none !important;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #e0e0e0;
}

.late-analytics-header h2 {
	margin: 0 0 10px 0;
	font-size: 28px;
	color: #333;
}

.late-analytics-header .late-description {
	color: #666;
	font-size: 14px;
	margin: 0;
}

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

.late-analytics-filters-inner {
	display: flex;
	gap: 20px;
	align-items: flex-end;
	flex-wrap: wrap;
}

.late-filter-group {
	flex: 1;
	min-width: 180px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.late-filter-label {
	font-weight: 600;
	color: #333;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.late-filter-select {
	min-width: 100%;
	border: 1.5px solid #ddd;
	border-radius: 8px;
	padding: 11px 14px;
	font-size: 14px;
	background: #fff;
	transition: all 0.2s ease;
	cursor: pointer;
}

.late-filter-select:hover {
	border-color: #0073aa;
	box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.late-filter-select:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

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

.late-stat-item {
	position: relative;
	padding: 28px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e8ecf0;
	display: flex;
	align-items: center;
	gap: 20px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

.late-stat-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #0073aa, #00a0d6);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.late-stat-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	border-color: #0073aa;
}

.late-stat-item:hover::before {
	opacity: 1;
}

.late-stat-engagement .late-stat-icon {
	background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
	color: #fff;
}

.late-stat-rate .late-stat-icon {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: #fff;
}

.late-stat-posts .late-stat-icon {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
	color: #fff;
}

.late-stat-icon {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.late-stat-label {
	font-size: 13px;
	color: #666;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.late-stat-value {
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
	word-break: break-word;
}

/* Platform Stats Section */
.late-analytics-platform-section {
	margin-bottom: 40px;
}

.late-platform-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
	margin-bottom: 30px;
}

.late-platform-stat-card {
	padding: 26px;
	background: #fff;
	border: 1.5px solid #e8ecf0;
	border-radius: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.late-platform-stat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #0073aa, #00a0d6);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.late-platform-stat-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	transform: translateY(-3px);
	border-color: #0073aa;
}

.late-platform-stat-card:hover::before {
	opacity: 1;
}

.late-platform-stat-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1.5px solid #f0f0f0;
}

.late-platform-stat-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: #0073aa;
	background: rgba(0, 115, 170, 0.1);
	flex-shrink: 0;
}

.late-platform-stat-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	text-transform: capitalize;
}

.late-platform-stat-metrics {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 18px;
}

.late-platform-metric {
	text-align: center;
	padding: 12px;
	background: #f8f9fa;
	border-radius: 8px;
}

.late-platform-metric-label {
	font-size: 11px;
	color: #666;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}

.late-platform-metric-value {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
}

.late-platform-metric-value.rate {
	color: #28a745;
}

.late-platform-stat-footer {
	display: flex;
	gap: 20px;
	padding-top: 18px;
	border-top: 1.5px solid #f0f0f0;
	flex-wrap: wrap;
	align-items: center;
}

.late-platform-stat-footer-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #666;
}

.late-platform-stat-footer-item strong {
	color: #1a1a1a;
	font-weight: 600;
}

.late-platform-stat-link {
	margin-left: auto;
}

/* Loading States */
.late-loading-spinner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	text-align: center;
}

.late-loading-text {
	margin-top: 20px;
	color: #666;
	font-size: 14px;
	font-weight: 500;
}

/* Posts Section */
.late-analytics-posts-section {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 2px solid #f0f0f0;
}

/* Empty State */
.late-analytics-empty-state {
	padding: 60px 30px;
	text-align: center;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border: 2px dashed #e0e0e0;
	border-radius: 12px;
	transition: all 0.3s ease;
}

.late-analytics-empty-state:hover {
	border-color: #0073aa;
	background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
}

.late-empty-state-icon {
	font-size: 64px;
	color: #0073aa;
	margin-bottom: 24px;
	opacity: 0.8;
}

.late-empty-state-title {
	margin: 0 0 16px 0;
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
}

.late-empty-state-message {
	margin: 0 0 32px 0;
	font-size: 16px;
	line-height: 1.6;
	color: #666;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.late-empty-state-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.late-empty-state-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

@media (max-width: 768px) {
	.late-analytics-empty-state {
		padding: 40px 20px;
	}
	
	.late-empty-state-icon {
		font-size: 48px;
		margin-bottom: 20px;
	}
	
	.late-empty-state-title {
		font-size: 20px;
	}
	
	.late-empty-state-message {
		font-size: 14px;
	}
}

/* Responsive Design */
@media (max-width: 1024px) {
	.late-analytics-frontend {
		padding: 30px 24px;
	}
	
	.late-platform-stats-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.late-analytics-header h2 {
		font-size: 24px;
	}
	
	.late-analytics-filters {
		padding: 20px;
	}
	
	.late-analytics-filters-inner {
		flex-direction: column;
		gap: 16px;
	}
	
	.late-filter-group {
		min-width: 100%;
	}
	
	.late-stats-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.late-stat-item {
		padding: 22px;
	}
	
	.late-stat-icon {
		width: 48px;
		height: 48px;
		font-size: 20px;
	}
	
	.late-stat-value {
		font-size: 28px;
	}
	
	.late-platform-stats-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.late-platform-stat-metrics {
		grid-template-columns: 1fr;
	}
	
	.late-platform-stat-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	
	.late-platform-stat-link {
		margin-left: 0;
		margin-top: 8px;
	}
}

@media (max-width: 480px) {
	.late-analytics-header h2 {
		font-size: 22px;
	}
	
	.late-stat-item {
		flex-direction: column;
		text-align: center;
		gap: 16px;
	}
	
	.late-stat-icon {
		margin: 0 auto;
	}
}

/* Enhanced Analytics Dashboard Styles */

/* Section Tabs */
.late-analytics-section-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 30px;
	border-bottom: 2px solid #e0e0e0;
	padding-bottom: 0;
}

.late-analytics-section-tabs .late-section-tab,
.late-section-tab {
	padding: 12px 24px;
	border: none;
	background: transparent !important;
	color: #666;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.late-analytics-section-tabs .late-section-tab:hover,
.late-analytics-section-tabs .late-section-tab:focus,
.late-section-tab:hover,
.late-section-tab:focus {
	color: #0073aa;
	background: transparent !important;
}

.late-analytics-section-tabs .late-section-tab.active,
.late-section-tab.active {
	color: #0073aa;
	border-bottom-color: #0073aa;
	background: transparent !important;
}

.late-section-tab i {
	font-size: 16px;
}

/* Analytics Sections */
.late-analytics-sections {
	margin-top: 30px;
}

.late-analytics-section {
	display: none;
}

.late-analytics-section.active {
	display: block;
	animation: late-fadeIn 0.3s ease-out;
}

.late-section-title {
	margin: 0 0 20px 0;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 12px;
}

/* Follower Stats Section */
.late-follower-stats-section {
	margin-top: 20px;
}

.late-follower-stats-container {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.late-follower-stat-card {
	padding: 24px;
	background: #fff;
	border: 1.5px solid #e8ecf0;
	border-radius: 12px;
	text-align: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.late-follower-stat-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	transform: translateY(-3px);
	border-color: #0073aa;
}

.late-follower-stat-header h4 {
	margin: 0 0 16px 0;
	font-size: 16px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.late-follower-stat-value {
	font-size: 48px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 8px;
}

.late-follower-stat-date {
	font-size: 13px;
	color: #999;
}

/* Growth Metrics */
.late-follower-growth-metrics {
	padding: 24px;
	background: #fff;
	border: 1.5px solid #e8ecf0;
	border-radius: 12px;
}

.late-follower-growth-metrics h4 {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
}

.late-growth-metrics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.late-growth-metric {
	padding: 16px;
	background: #f8f9fa;
	border-radius: 8px;
	text-align: center;
}

.late-growth-metric-label {
	font-size: 12px;
	color: #666;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.late-growth-metric-value {
	font-size: 24px;
	font-weight: 700;
}

.late-growth-metric-value.positive {
	color: #28a745;
}

.late-growth-metric-value.negative {
	color: #dc3545;
}

/* Follower History */
.late-follower-history {
	padding: 24px;
	background: #fff;
	border: 1.5px solid #e8ecf0;
	border-radius: 12px;
}

.late-follower-history h4 {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
}

.late-follower-history-chart {
	height: 400px; /* Increased from 300px for better visibility */
	margin-bottom: 20px; /* Reduced from 30px since no table below */
	position: relative;
	background: #fafafa;
	border-radius: 8px;
	padding: 20px;
}

.late-follower-history-table {
	display: none; /* Hide table completely - using timeline graph instead */
	overflow-x: auto;
}

.late-follower-history-table table {
	width: 100%;
	border-collapse: collapse;
}

.late-follower-history-table th {
	padding: 12px;
	text-align: left;
	font-weight: 600;
	color: #333;
	border-bottom: 2px solid #e0e0e0;
	background: #f8f9fa;
}

.late-follower-history-table td {
	padding: 12px;
	border-bottom: 1px solid #f0f0f0;
}

.late-follower-history-table td.positive {
	color: #28a745;
	font-weight: 600;
}

.late-follower-history-table td.negative {
	color: #dc3545;
	font-weight: 600;
}

/* Post Analytics Section */
.late-post-analytics-section {
	margin-top: 20px;
}

.late-post-analytics-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.late-post-analytics-item {
	padding: 20px;
	background: #fff;
	border: 1.5px solid #e8ecf0;
	border-radius: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.late-post-analytics-item:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transform: translateY(-2px);
	border-color: #0073aa;
}

.late-post-analytics-item-header {
	margin-bottom: 12px;
}

.late-post-analytics-item-content p {
	margin: 0 0 8px 0;
	color: #333;
	font-size: 14px;
	line-height: 1.6;
}

.late-post-analytics-date {
	font-size: 12px;
	color: #999;
}

.late-post-analytics-platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.late-post-analytics-platform-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #f5f5f5;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	color: #666;
}

.late-post-analytics-platform-badge i {
	font-size: 14px;
}

/* Single Post Analytics */
.late-post-analytics-single {
	padding: 24px;
	background: #fff;
	border: 1.5px solid #e8ecf0;
	border-radius: 12px;
}

.late-post-analytics-header {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 2px solid #f0f0f0;
}

.late-post-analytics-header h4 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.5;
}

.late-post-analytics-platforms {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.late-post-analytics-platform-item {
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
}

.late-post-analytics-platform-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.late-post-analytics-platform-header i {
	font-size: 20px;
	color: #0073aa;
}

.late-post-analytics-platform-header strong {
	font-size: 16px;
	color: #1a1a1a;
}

.late-post-analytics-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
}

.late-post-analytics-metric {
	padding: 12px;
	background: #fff;
	border-radius: 6px;
	text-align: center;
}

.late-post-analytics-metric .metric-label {
	display: block;
	font-size: 11px;
	color: #666;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}

.late-post-analytics-metric .metric-value {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
}

/* Rate Limit and Warning Styles */
#late-rate-limit-warning,
#late-addon-required-warning {
	margin-bottom: 20px;
	padding: 15px 20px;
	border-left: 4px solid #ffc107;
}

#late-rate-limit-warning p,
#late-addon-required-warning p {
	margin: 0;
	font-weight: 500;
}

/* Follower Growth Stat Card */
.late-stat-followers .late-stat-icon {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
	.late-analytics-section-tabs {
		flex-wrap: wrap;
		gap: 4px;
	}
	
	.late-section-tab {
		padding: 10px 16px;
		font-size: 13px;
	}
	
	.late-follower-stat-value {
		font-size: 36px;
	}
	
	.late-growth-metrics-grid {
		grid-template-columns: 1fr;
	}
	
	.late-follower-history-chart {
		height: 250px;
	}
	
	.late-post-analytics-metrics {
		grid-template-columns: 1fr;
	}
	
	.late-post-analytics-platform-item {
		padding: 16px;
	}
}

@media (max-width: 480px) {
	.late-section-tab {
		padding: 8px 12px;
		font-size: 12px;
	}
	
	.late-section-tab i {
		font-size: 14px;
	}
	
	.late-follower-stat-value {
		font-size: 32px;
	}
	
	.late-follower-history-chart {
		height: 200px;
	}
}

/* Followers Shortcode Specific Styles */
.late-followers-frontend {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 30px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.late-followers-header {
	margin-bottom: 40px;
	padding-bottom: 25px;
	border-bottom: 2px solid #f0f0f0;
}

.late-followers-header h2 {
	margin: 0 0 12px 0;
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
}

.late-followers-filters {
	margin-bottom: 35px;
	padding: 25px;
	background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
	border-radius: 12px;
	border: 1px solid #e8ecf0;
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.late-followers-content {
	position: relative;
	min-height: 400px;
}

#late-followers-loader.late-loader-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	border-radius: 12px;
}

/* Responsive for followers shortcode */
@media (max-width: 768px) {
	.late-followers-frontend {
		padding: 24px 20px;
	}
	
	.late-followers-filters {
		flex-direction: column;
		gap: 16px;
	}
	
	.late-filter-group {
		min-width: 100%;
	}
}

@media (max-width: 480px) {
	.late-followers-frontend {
		padding: 20px 16px;
	}
	
	.late-followers-header h2 {
		font-size: 24px;
	}
}

