/**
 * Smart Form Builder - Dashboard Styles
 */

/* Container & Wrapper */
.dragwyb-dashboard-wrap {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: #0f172a;
	background-color: #f8fafc;
	margin: 15px calc(1rem  + 20px) 20px 1rem;
	padding: 0;
	box-sizing: border-box;
}

.dragwyb-dashboard-wrap * {
	box-sizing: border-box;
}

/* Top Navigation Bar Tabs */
.dragwyb-db-nav-tabs {
	background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 28px;
	list-style: none;
    margin: 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.dragwyb-db-nav-item {
	text-decoration: none;
	display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid rgba(0,0,0,0);
    transition: all .2s ease;
    white-space: nowrap;
}

.dragwyb-db-nav-item svg {
	color: #64748b;
	transition: color 0.2s ease;
}

.dragwyb-db-nav-item:hover {
	color: #0f172a !important;
}

.dragwyb-db-nav-item:hover svg {
	color: #0f172a;
}

.dragwyb-db-nav-item.active {
	color: hsl(var(--dragwyb-primary)) !important;
	font-weight: 600;
	border-bottom-color: hsl(var(--dragwyb-primary));
}

.dragwyb-db-nav-item.active svg {
	color: hsl(var(--dragwyb-primary));
}

/* Main Dashboard Grid */
.dragwyb-db-grid {
    display: flex;
    gap: 24px;
    padding: 24px 28px;
    align-items: flex-start;
}

@media (max-width: 1200px) {
	.dragwyb-db-grid {
		grid-template-columns: 1fr;
	}
}

.dragwyb-db-col-left,
.dragwyb-db-col-right{
	display: flex;
    flex-direction: column;
    gap: 24px;
}
	

.dragwyb-db-col-left{
    flex: 1;
    min-width: 0;
    width: 100%;
}

.dragwyb-db-col-right {
	width: 380px;
    flex-shrink: 0;
}

/* Cards Standard Styling */
.dragwyb-db-card {
	background: #ffffff;
	border-radius: 14px;
	border: 1px solid #f1f5f9;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.02);
	padding: 20px 24px;
}

.dragwyb-db-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.dragwyb-db-card-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dragwyb-db-card-title h2 {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	line-height: 1.3;
}

.dragwyb-db-card-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dragwyb-db-select,
.dragwyb-db-select-sm {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: #334155;
	outline: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.dragwyb-db-select:hover,
.dragwyb-db-select-sm:hover {
	border-color: #cbd5e1;
}

.dragwyb-db-icon-btn {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	cursor: pointer;
	transition: all 0.2s ease;
}

.dragwyb-db-icon-btn:hover {
	border-color: #cbd5e1;
	color: #0f172a;
	background: #ffffff;
}

/* Submission Chart Container */
.dragwyb-db-chart-container {
	position: relative;
	height: 280px;
	width: 100%;
}

/* Form Analytics Overview Cards */
.dragwyb-db-stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.dragwyb-db-stat-tile {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px;
	border-radius: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dragwyb-db-stat-tile:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dragwyb-db-stat-tile.tile-pink {
	background-color: #fff1f2;
	color: hsl(var(--dragwyb-primary));
}

.dragwyb-db-stat-tile.tile-green {
	background-color: #f0fdf4;
	color: #16a34a;
}

.dragwyb-db-stat-tile.tile-purple {
	background-color: #faf5ff;
	color: #9333ea;
}

.dragwyb-db-stat-tile.tile-blue {
	background-color: #f0f9ff;
	color: #0284c7;
}

.dragwyb-db-stat-tile.tile-orange {
	background-color: #fff7ed;
	color: #ea580c;
}

.stat-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.stat-number {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.1;
}

.stat-label {
	font-size: 12px;
	font-weight: 600;
	opacity: 0.85;
	margin-top: 2px;
}

/* Table Section Styling */
.dragwyb-btn-secondary-link {
	font-size: 13px;
	font-weight: 600;
	color: hsl(var(--dragwyb-primary)) !important;
	background-color: #fff1f2;
	padding: 6px 14px;
	border-radius: 8px;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.dragwyb-btn-secondary-link:hover {
	background-color: #ffe4e6;
}

.dragwyb-db-table-responsive {
	overflow-x: auto;
	margin: 0 -24px;
}

.dragwyb-db-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	text-align: left;
}

.dragwyb-db-table th {
	background: #f8fafc;
	color: #64748b;
	font-weight: 600;
	padding: 12px 24px;
	border-top: 1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
}

.dragwyb-db-table td {
	padding: 14px 24px;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
}

.dragwyb-db-table tr:hover td {
	background-color: #f8fafc;
}

.dragwyb-user-cell {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dragwyb-avatar-badge {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

.dragwyb-user-name {
	font-weight: 600;
	color: #0f172a;
}

.dragwyb-email-cell {
	color: #64748b;
}

.dragwyb-action-view {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #f1f5f9;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.dragwyb-action-view:hover {
	background: hsl(var(--dragwyb-primary));
	color: #ffffff;
}

/* Support Card */
.dragwyb-support-card {
	text-align: center;
	padding: 24px;
}

.dragwyb-support-icon {
	width: 46px;
    height: 46px;
    border-radius: 50%;
    background: hsl(var(--dragwyb-primary)/0.1);
    color: hsl(var(--dragwyb-primary));
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
	margin-bottom: 12px;
	margin-inline: auto;
	padding: 5px;
}

.dragwyb-support-icon svg{
	fill: currentColor;
}

.dragwyb-support-title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 4px 0;
}

.dragwyb-support-desc {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 20px 0;
}

.dragwyb-support-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.dragwyb-btn-doc {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: #334155 !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	background: #ffffff;
	transition: all 0.2s ease;
}

.dragwyb-btn-doc:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.dragwyb-btn-premium {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 8px;
	background: hsl(var(--dragwyb-primary));
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.dragwyb-btn-premium:hover {
	background: #be123c;
}

/* More Plugins Promotional Card */
.dragwyb-promo-card {
	padding: 24px;
}

.dragwyb-promo-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

.dragwyb-star-badge {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #fff1f2;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dragwyb-promo-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 2px 0;
}

.dragwyb-promo-subtitle {
	font-size: 12px;
	color: #64748b;
	margin: 0;
}

.dragwyb-plugin-feature-box {
    background: #fff1f2;
    border: 1px solid #ffe0e2;
    border-radius: 12px;
    padding: 16px;
    gap: 12px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 40px 1fr;
}

.plugin-icon-bubble {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.plugin-icon-bubble img{
	width: 100%;
}

.plugin-name {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 4px 0;
}

.plugin-desc {
	font-size: 12px;
	color: #64748b;
	margin: 0;
	line-height: 1.4;
}

.dragwyb-plugin-btn-wrapper{
	grid-column: 1 / -1;
	text-align: center;
}

.dragwyb-btn-install {
	align-self: flex-start;
	display: inline-block;
	padding: 7px 16px;
	border-radius: 8px;
	border: 1px solid #f43f5e;
	background: #fff1f2;
	color: hsl(var(--dragwyb-primary)) !important;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.dragwyb-btn-install:hover {
	background: #ffe4e6;
}

.dragwyb-promo-footer {
	text-align: left;
}

.dragwyb-link-arrow {
	font-size: 13px;
	font-weight: 600;
	color: hsl(var(--dragwyb-primary)) !important;
	text-decoration: none !important;
	transition: gap 0.2s ease;
}

.dragwyb-link-arrow:hover {
	color: #be123c !important;
}

.dragwyb-loading-cell,
.dragwyb-empty-cell {
	text-align: center;
	padding: 30px !important;
	color: #64748b;
}

.dragwyb-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
