/* ==========================================================================
   AK AFFILIATES - MODERN FULLPAGE DASHBOARD CSS
   ========================================================================== */

/* CSS Variables - Dynamic colors injected via PHP */
:root {
	--wf-primary: #2c00d5;
	--wf-primary-hover: #2500b3;
	--wf-sidebar-bg: #ffffff;
	--wf-sidebar-width: 280px;
	--wf-sidebar-collapsed: 70px;
	--wf-content-bg: #f6f8fa;
	--wf-text-color: #131313;
	--wf-text-muted: #7d7d7d;
	--wf-border-color: #e3e4e6;
	--wf-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	--wf-font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--wf-spacing: 20px;
}

/* ==========================================================================
   PRO NOTICE
   ========================================================================== */
.wc-affiliate-pro-notice-title {
	text-align: center;
	font-family: var(--wf-font-family);
	color: #f48d02;
}

.wc-affiliate-pro-notice {
	text-align: center;
}

/* ==========================================================================
   LOGIN & REGISTRATION FORMS
   ========================================================================== */
.wf-tab-content {
	display: none;
	padding: 30px;
	background: #f6f6ff;
}

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

.wf-login-tabs {
	background: #fff;
	margin: 30px;
	border-radius: 8px;
}

.wf-tab-btns {
	display: flex;
	justify-content: center;
	border-bottom: 1px solid var(--wf-primary);
	padding: 30px;
	padding-bottom: 0px;
}

.wf-login-tabs .wf-tab-btn {
	background-color: #f6f6ff;
	color: var(--wf-primary);
	border: 1px solid var(--wf-primary);
	margin-bottom: -1px;
	border-right: none;
	padding: .5rem 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wf-login-tabs .wf-tab-btn:first-child {
	border-top-left-radius: 4px;
}

.wf-login-tabs .wf-tab-btn:last-child {
	border-top-right-radius: 4px;
	border-right: 1px solid var(--wf-primary);
}

.wf-login-tabs .wf-tab-btn.active {
	border-bottom: none;
	background-color: #fff;
}

#wf-login-form form {
	width: 500px;
	margin: auto;
}

.wf-application-form-panel-content {
	margin: 8px 0 8px 0;
}

#wf-application-form label,
#wf-login-form label {
	display: block;
	font-size: 16px;
	font-weight: 400;
	font-family: var(--wf-font-family);
	line-height: 2;
}

#wf-login-form label.woocommerce-form-login__rememberme {
	display: contents;
}

#wf-application-form textarea,
#wf-application-form input,
#wf-login-form input {
	width: 100%;
	font-size: 14px;
	color: #838383;
	font-weight: 400;
	font-family: var(--wf-font-family);
	background: #fff;
	border: 1px solid var(--wf-border-color);
	padding: 10px;
	border-radius: 4px;
	transition: border-color 0.2s ease;
}

#wf-application-form textarea:focus,
#wf-application-form input:focus,
#wf-login-form input:focus {
	border-color: var(--wf-primary);
	outline: none;
}

#wf-login-form #rememberme {
	width: auto;
}

#wf-login-form p {
	margin-bottom: 15px;
}

#wf-login-form .woocommerce-form-login__submit {
	width: auto;
	background-color: var(--wf-primary);
	color: #ffffff;
	font-weight: 500;
	border: none;
	border-radius: 4px;
	float: right;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

#wf-login-form .woocommerce-form-login__submit:hover {
	background-color: var(--wf-primary-hover);
}

#wf-login-form .required {
	color: #c36;
}

#wf-login-form {
	position: relative;
}

.mobile .lost_password {
	margin-top: 60px;
}

.mobile .woocommerce-form-login__submit {
	position: absolute;
	top: 65%;
	left: 10%;
}

#wf-application-form label {
	display: block;
	font-size: 16px;
	font-weight: 400;
	font-family: var(--wf-font-family);
}

#wf-application-form input {
	width: 100%;
}

#wf-application-form input#terms-agree {
	width: auto;
}

#wf-application-form .wf-application-form-panel-button input.button.wf-button {
	width: auto;
	background-color: var(--wf-primary);
	color: #ffffff;
	font-weight: 500;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	padding: 17px 50px;
	margin: 24px 0 0 0;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

#wf-application-form .wf-application-form-panel-button input.button.wf-button:hover {
	background-color: var(--wf-primary-hover);
}

/* ==========================================================================
   FULLPAGE DASHBOARD LAYOUT
   ========================================================================== */
#wf-dashboard-fullpage {
	display: flex;
	min-height: 100vh;
	font-family: var(--wf-font-family);
	background: var(--wf-content-bg);
}

/* Hide old panel styles */
#wf-dashboard-panel {
	display: none;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.wf-sidebar {
	width: var(--wf-sidebar-width);
	background: var(--wf-sidebar-bg);
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	z-index: 1000;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
	transition: width 0.3s ease, transform 0.3s ease;
}

/* Sidebar Logo */
.wf-sidebar-logo {
	padding: 24px 20px;
	border-bottom: 1px solid var(--wf-border-color);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
}

.wf-sidebar-logo img {
	max-width: 180px;
	max-height: 50px;
	height: auto;
	object-fit: contain;
}

.wf-sidebar-logo .wf-logo-text {
	font-size: 20px;
	font-weight: 700;
	color: var(--wf-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Sidebar Navigation */
.wf-sidebar-nav {
	flex: 1;
	overflow-y: auto;
	padding: 16px 0;
}

.wf-dashboard-navigation {
	padding: 0;
}

.wf-dashboard-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wf-dashboard-navigation ul li a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 24px;
	font-size: 15px;
	color: var(--wf-text-muted);
	font-weight: 400;
	font-family: var(--wf-font-family);
	text-decoration: none;
	outline: none;
	border-left: 3px solid transparent;
	transition: all 0.2s ease;
}

.wf-dashboard-navigation ul li a .wf-nav-icon {
	width: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.wf-dashboard-navigation ul li a .wf-nav-label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wf-dashboard-navigation ul li:hover a,
.wf-dashboard-navigation ul li.active a {
	background-color: rgba(44, 0, 213, 0.05);
	color: var(--wf-primary);
	border-left-color: var(--wf-primary);
}

.wf-dashboard-navigation ul li.active a {
	font-weight: 500;
}

/* Logout Button */
.wf-nav-logout {
	padding: 8px 0;
	border-top: 1px solid var(--wf-border-color);
	margin-top: 8px;
}

.wf-nav-logout a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 24px;
	font-size: 15px;
	color: #dc3545;
	font-weight: 400;
	font-family: var(--wf-font-family);
	text-decoration: none;
	transition: all 0.2s ease;
}

.wf-nav-logout a:hover {
	background-color: rgba(220, 53, 69, 0.05);
}

.wf-nav-logout a .wf-nav-icon {
	width: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Sidebar Footer / Profile */
.wf-sidebar-footer {
	border-top: 1px solid var(--wf-border-color);
	padding: 16px;
	background: #fafcfe;
}

.wf-dashboard-profile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	background: transparent;
	text-align: left;
}

.wf-dashboard-profile-image img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.wf-dashboard-profile-info {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.wf-dashboard-profile-name h4 {
	font-size: 14px;
	color: var(--wf-text-color);
	font-weight: 500;
	font-family: var(--wf-font-family);
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wf-dashboard-profile-desc {
	font-size: 12px;
	color: var(--wf-text-muted);
	font-weight: 400;
	font-family: var(--wf-font-family);
}

.wf-dashboard-profile-desc p {
	margin: 2px 0 0 0;
}

/* Sidebar Toggle Button */
.wf-sidebar-toggle {
	display: none;
	position: fixed;
	top: 16px;
	left: 16px;
	z-index: 1001;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: var(--wf-sidebar-bg);
	border: 1px solid var(--wf-border-color);
	box-shadow: var(--wf-card-shadow);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: var(--wf-text-color);
	transition: all 0.2s ease;
}

.wf-sidebar-toggle:hover {
	background: var(--wf-content-bg);
}

/* Sidebar Overlay */
.wf-sidebar-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.wf-main-content {
	flex: 1;
	margin-left: var(--wf-sidebar-width);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	transition: margin-left 0.3s ease;
}

/* Content Header */
.wf-content-header {
	background: var(--wf-sidebar-bg);
	padding: var(--wf-spacing);
	border-bottom: 1px solid var(--wf-border-color);
	position: sticky;
	top: 0;
	z-index: 100;
}

.wf-content-header h1 {
	font-size: 24px;
	font-weight: 600;
	color: var(--wf-text-color);
	margin: 0;
	font-family: var(--wf-font-family);
}

/* Content Body */
.wf-content-body {
	flex: 1;
	padding: 0;
	background: var(--wf-content-bg);
}

/* ==========================================================================
   DASHBOARD CONTENT PANELS
   ========================================================================== */
.wf-dashboard-panel-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wf-spacing);
	padding: var(--wf-spacing);
	border-bottom: 1px solid var(--wf-border-color);
	margin-bottom: 0;
	background: var(--wf-sidebar-bg);
}

.wf-dashboard-panel-title {
	margin: 0;
}

.wf-dashboard-panel-filter {
	width: 100%;
}

.wf-dashboard-panel-head h3 {
	font-size: 20px;
	color: var(--wf-text-color);
	font-weight: 600;
	font-family: var(--wf-font-family);
	margin: 0;
}

.wf-dashboard-panel-filter form {
	display: flex;
	gap: 16px;
	flex-wrap: nowrap;
	align-items: center;
}

.wf-content-body .wf-dashboard-panel-filter form input,
.wf-dashboard-panel-filter form input {
	font-size: 14px;
	color: var(--wf-text-muted);
	font-weight: 400;
	font-family: var(--wf-font-family);
	background: var(--wf-content-bg);
	border: 1px solid var(--wf-border-color);
	padding: 0 14px;
	height: 42px;
	border-radius: 6px;
	flex: 1;
	min-width: 0;
	transition: border-color 0.2s ease;
}

.wf-dashboard-panel-filter form input:focus {
	border-color: var(--wf-primary);
	outline: none;
}

.wf-dashboard-panel-filter form input.button,
.wf-dashboard-panel-filter form input.wf-button,
.wf-dashboard-panel-filter form input[type="submit"] {
	flex: 0 0 auto;
	width: auto !important;
	min-width: 100px;
	height: 42px !important;
	padding: 0 20px !important;
	background-color: var(--wf-primary);
	color: #ffffff;
	font-weight: 500;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
	line-height: 42px;
	text-align: center;
}

.wf-dashboard-panel-filter form input.button:hover {
	background-color: var(--wf-primary-hover);
}

/* ==========================================================================
   SUMMARY CARDS
   ========================================================================== */
.wf-dashboard-summary-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wf-spacing);
	padding: var(--wf-spacing);
	text-align: center;
}

.wf-dashboard-summary-img {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 12px;
}

.wf-dashboard-summary-img img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.wf-dashboard-summary-card {
	border-radius: 12px;
	background-color: #ffffff;
	padding: var(--wf-spacing);
	box-shadow: var(--wf-card-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wf-dashboard-summary-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.wf-dashboard-summary-info {
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
	font-family: var(--wf-font-family);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wf-dashboard-summary-value {
	font-size: 32px;
	color: var(--wf-text-color);
	font-weight: 700;
	font-family: var(--wf-font-family);
	margin-top: 8px;
}

/* ==========================================================================
   CHARTS
   ========================================================================== */
.wf-dashboard-charts {
	padding: 0 var(--wf-spacing) var(--wf-spacing);
	display: grid;
	gap: var(--wf-spacing);
	grid-template-columns: repeat(2, 1fr);
	grid-template-areas:
		'visits-referrals-earnings visits-referrals-earnings'
		'visits referrals'
		'earnings conversions'
		'landingpages landingpages'
		'referralurls referralurls';
}

.wf-dashboard-chart {
	background: #fff;
	border-radius: 12px;
	padding: var(--wf-spacing);
	box-shadow: var(--wf-card-shadow);
}

.wf-dashboard-chart h4 {
	font-size: 16px;
	line-height: 1.4;
	color: var(--wf-text-color);
	font-weight: 600;
	font-family: var(--wf-font-family);
	margin: 0 0 16px 0;
}

#wf-landingpages,
#wf-referralurls,
#wf-visits-referrals-earnings {
	padding: 16px;
}

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.wf-dashboard-panel-head-title {
	display: flex;
	gap: var(--wf-spacing);
	align-items: center;
	flex-wrap: wrap;
}

.wf-dashboard-panel-head-title button.button {
	border-radius: 6px;
	background-color: rgba(44, 0, 213, 0.1);
	padding: 10px 18px;
	border: none;
	font-size: 14px;
	color: var(--wf-primary);
	font-weight: 500;
	font-family: var(--wf-font-family);
	cursor: pointer;
	transition: all 0.2s ease;
}

.wf-dashboard-panel-head-title button.button:hover {
	background-color: rgba(44, 0, 213, 0.15);
}

.wf-content-body .wf-dashboard-panel-filter .wfd-perpage {
	min-width: 100px;
}

.wfd-list-table .tablenav.top {
	display: none;
}

.wfd-list-table {
	margin: var(--wf-spacing);
	background: #fff;
	padding: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--wf-card-shadow);
}

.wfd-list-table .wp-list-table {
	border: none;
	border-bottom: 1px solid var(--wf-border-color);
	position: relative !important;
	width: 100%;
}

.wfd-list-table .wp-list-table th,
.wfd-list-table .wp-list-table th a,
.wfd-list-table .wp-list-table td a,
.wfd-list-table .wp-list-table td {
	vertical-align: middle;
	text-align: center;
	border: none;
	font-size: 13px;
	color: var(--wf-text-color);
	font-weight: 400;
	font-family: var(--wf-font-family);
	padding: 12px 16px;
}

.wfd-list-table .wp-list-table th {
	font-weight: 600;
	background: #fafcfe;
	color: var(--wf-text-muted);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.5px;
}

.wfd-list-table .wp-list-table tbody tr:nth-child(odd) {
	background: #ffffff;
}

.wfd-list-table .wp-list-table tbody tr:nth-child(even) {
	background: #fafcfe;
}

.wfd-list-table .wp-list-table tbody tr:hover {
	background: rgba(44, 0, 213, 0.02);
}

.wfd-list-table .next-page.button,
.wfd-list-table .last-page.button,
.wfd-list-table .tablenav-pages-navspan.button {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background-color: var(--wf-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	cursor: pointer;
	font-size: 14px;
	color: #fff;
	transition: background-color 0.2s ease;
}

.wfd-list-table .next-page.button:hover,
.wfd-list-table .last-page.button:hover {
	background-color: var(--wf-primary-hover);
}

.wfd-list-table .tablenav.bottom {
	display: flex;
	justify-content: center;
	align-content: center;
	padding: var(--wf-spacing);
}

.wfd-list-table .pagination-links,
.wfd-list-table .tablenav-pages {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

/* ==========================================================================
   TRANSACTION CARDS
   ========================================================================== */
.wf-dashboard-transaction-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wf-spacing);
	padding: var(--wf-spacing);
	text-align: center;
}

.wf-dashboard-transaction-img {
	text-align: left;
}

.wf-dashboard-transaction-card {
	border-radius: 12px;
	background-color: #ffffff;
	padding: var(--wf-spacing);
	box-shadow: var(--wf-card-shadow);
}

.wf-dashboard-transaction-info {
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
	font-family: var(--wf-font-family);
}

.wf-dashboard-transaction-value {
	font-size: 28px;
	color: var(--wf-text-color);
	font-weight: 700;
	font-family: var(--wf-font-family);
	margin-top: 8px;
}

.wf-request-payout.button.button-primary {
	background: #f48d02;
	color: #fff;
	font-weight: 500;
	padding: 10px 24px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wf-request-payout.button.button-primary:hover {
	background: #d67c02;
}

.wfd-list-table.wf-transactions-panel {
	margin-top: 0px;
}

/* ==========================================================================
   URL GENERATOR
   ========================================================================== */
.wf-url-generator-container {
	border-radius: 12px;
	background-color: #ffffff;
	padding: var(--wf-spacing);
	margin: var(--wf-spacing);
	box-shadow: var(--wf-card-shadow);
}

.wf-dashboard-panel-head.wf-dashboard-urlg-header .wf-dashboard-panel-head-title {
	margin: 0;
}

.wf-url-generator-input-fields {
	display: grid;
	align-items: end;
	margin-bottom: 24px;
	grid-template-columns: 2fr 1fr;
	grid-column-gap: 24px;
	grid-row-gap: 16px;
}

.wfug-inputs label {
	font-size: 14px;
	color: var(--wf-text-muted);
	font-weight: 500;
	font-family: var(--wf-font-family);
	display: flex;
	margin-bottom: 6px;
}

.woocommerce .woocommerce-MyAccount-content .wf-url-generator-input-fields .wfug-inputs input,
.wf-url-generator-input-fields .wfug-inputs input {
	width: 100%;
	height: 42px;
	border-radius: 6px;
	background-color: var(--wf-content-bg);
	font-size: 14px;
	color: var(--wf-text-color);
	font-weight: 400;
	font-family: var(--wf-font-family);
	border: 1px solid var(--wf-border-color);
	padding: 0 14px;
	transition: border-color 0.2s ease;
}

.wf-url-generator-input-fields .wfug-inputs input:focus {
	border-color: var(--wf-primary);
	outline: none;
}

/* Checkbox styling */
.wf-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	color: var(--wf-text-color);
	font-family: var(--wf-font-family);
}

.wf-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--wf-primary);
	cursor: pointer;
	margin: 0;
}

.wf-checkbox-text {
	font-weight: 500;
}

.wf-generate-shortlink {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}

.wf-shortlink-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wf-label span {
	color: #c36;
}

#wf-shorten-string {
	width: 100px;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 14px;
}

.wfug-submit label {
	visibility: hidden;
}

.wf-url-generator-input-fields .wfug-submit input,
.wf-url-generator-input-fields .wfug-submit input.wf-button {
	width: 100%;
	height: 42px !important;
	border-radius: 6px;
	background-color: var(--wf-primary);
	font-size: 14px;
	color: #ffffff;
	font-weight: 500;
	font-family: var(--wf-font-family);
	padding: 0 20px !important;
	cursor: pointer;
	border: none;
	transition: background-color 0.2s ease;
	line-height: 42px;
	text-align: center;
}

.wf-url-generator-input-fields .wfug-submit input:hover {
	background-color: var(--wf-primary-hover);
}

.wfug-inputs.wf-generate-shortlink {
	height: auto;
	padding-top: 8px;
}

.wf-shortlinks-table {
	border: none;
	margin-top: 32px;
	margin-bottom: 16px;
	width: 100%;
	border-collapse: collapse;
}

.wf-shortlinks-table th,
.wf-shortlinks-table td {
	border: none;
	padding: 12px 16px;
	text-align: left;
}

.wf-shortlinks-table th {
	font-size: 11px;
	color: var(--wf-text-muted);
	font-weight: 600;
	font-family: var(--wf-font-family);
	background: #fafcfe;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wf-shortlinks-table td {
	font-size: 14px;
	color: var(--wf-text-color);
	font-weight: 400;
	font-family: var(--wf-font-family);
	vertical-align: middle;
}

.wf-shortlinks-table td.wf-delete-shortlink {
	color: #dc3545;
	font-size: 18px;
	padding: 12px 16px;
	text-align: center;
	width: 50px;
}

.wf-shortlinks-table td.wf-delete-shortlink span {
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.wf-shortlinks-table td.wf-delete-shortlink span:hover {
	opacity: 0.7;
}

.wf-shortlinks-table tr:nth-child(odd) {
	background: #ffffff;
}

.wf-shortlinks-table tr:nth-child(even) {
	background: #fafcfe;
}

.wfug-inputs.wfug-submit {
	text-align: right;
}

.wf-long-affiliate-url.wf-urls {
	margin-top: 32px;
	margin-bottom: 16px;
}

.wf-urls-container {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 12px;
	align-items: center;
}

.wf-urls-container label {
	font-size: 14px;
	color: var(--wf-text-muted);
	font-weight: 500;
}

.wf-urls-container input {
	width: 100%;
	border-radius: 6px;
	background-color: var(--wf-content-bg);
	font-size: 14px;
	color: var(--wf-text-color);
	font-weight: 400;
	font-family: var(--wf-font-family);
	border: 1px solid var(--wf-border-color);
	padding: 10px 14px;
}

.wf-url-copy.button {
	border-radius: 6px;
	width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wf-primary);
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wf-url-copy.button:hover {
	background: var(--wf-primary-hover);
}

.wf-url-copy.button i {
	color: #fff;
}

/* ==========================================================================
   SETTINGS TAB
   ========================================================================== */
.wf-setting-panel {
	margin: 20px;
	background: #fff;
	padding: 24px;
	border-radius: 12px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-row-gap: 16px;
	grid-column-gap: 24px;
	box-shadow: var(--wf-card-shadow);
	grid-template-areas:
		'wca-avatar wca-avatar'
		'wca-fname wca-lname'
		'wca-city wca-state'
		'wca-country wca-email'
		'wca-payout wca-mannual-payment'
		'wca-doaction wca-doaction'
		'wca-reset-password wca-reset-password'
		'wf-setting-password-area wf-setting-password-area'
		'wf-setting-update-button-area wf-setting-update-button-area';
}

.wf-setting-panel .wca-avatar {
	grid-area: wca-avatar;
	margin-bottom: 16px;
}

.wf-setting-panel .wca-avatar #wf-avatar {
	position: relative;
	height: 100px;
	width: 100px;
}

.wf-setting-panel .wca-avatar #wf-avatar img {
	border-radius: 50%;
	height: 100px;
	width: 100px;
	object-fit: cover;
}

.wf-setting-panel .wca-avatar #wf-avatar button#wf-upload-btn {
	padding: 6px 8px;
	font-size: 10px;
	border-radius: 50%;
	position: absolute;
	bottom: 0;
	right: 0;
	background: var(--wf-primary);
	border: 2px solid #fff;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wf-setting-panel .wca-avatar #wf-avatar button#wf-upload-btn:hover {
	background: var(--wf-primary-hover);
}

.wf-setting-panel .wca-fname {
	grid-area: wca-fname;
}

.wf-setting-panel .wca-lname {
	grid-area: wca-lname;
}

.wf-setting-panel .wca-city {
	grid-area: wca-city;
}

.wf-setting-panel .wca-state {
	grid-area: wca-state;
}

.wf-setting-panel .wca-country {
	grid-area: wca-country;
}

.wf-setting-panel .wca-email {
	grid-area: wca-email;
}

.wf-setting-panel .wca-payout {
	grid-area: wca-payout;
}

.wf-setting-panel .wca-mannual-payment {
	grid-area: wca-mannual-payment;
}

.wf-setting-panel .wca-reset-password {
	grid-area: wca-reset-password;
}

.wf-setting-panel .wca-doaction {
	grid-area: wca-doaction;
}

.wf-setting-panel .wf-setting-password-area {
	grid-area: wf-setting-password-area;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.wf-setting-panel .wf-setting-update-button-area {
	grid-area: wf-setting-update-button-area;
	padding-top: 8px;
}

.wf-setting-panel .wf-setting-panel-content label {
	display: block;
	font-family: var(--wf-font-family);
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--wf-text-muted);
}

.wf-setting-panel .wf-setting-panel-content textarea,
.wf-setting-panel .wf-setting-panel-content select,
.wf-setting-panel .wf-setting-panel-content input {
	width: 100%;
	font-size: 14px;
	color: var(--wf-text-color);
	font-weight: 400;
	font-family: var(--wf-font-family);
	background: var(--wf-content-bg);
	border: 1px solid var(--wf-border-color);
	padding: 10px 14px;
	border-radius: 6px;
	transition: border-color 0.2s ease;
}

.wf-setting-panel .wf-setting-panel-content textarea:focus,
.wf-setting-panel .wf-setting-panel-content select:focus,
.wf-setting-panel .wf-setting-panel-content input:focus {
	border-color: var(--wf-primary);
	outline: none;
}

.wf-setting-panel .wf-setting-update-button-area .wf-button {
	width: auto;
	min-width: 160px;
	height: 44px;
	padding: 0 24px;
	border-radius: 6px;
	background-color: var(--wf-primary);
	color: #fff;
	font-family: var(--wf-font-family);
	font-size: 14px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wf-setting-panel .wf-setting-update-button-area .wf-button:hover {
	background-color: var(--wf-primary-hover);
}

#wf-upass-error {
	color: #dc3545;
	font-family: var(--wf-font-family);
	font-size: 13px;
	margin-top: 4px;
}

/* ==========================================================================
   COUPONS TAB
   ========================================================================== */
.wf-coupons-container {
	padding: var(--wf-spacing);
}

/* ==========================================================================
   RESPONSIVE - TABLET & MOBILE
   ========================================================================== */

/* Tablet: Collapsed sidebar */
@media only screen and (max-width: 1024px) {
	.wf-sidebar {
		width: var(--wf-sidebar-collapsed);
	}

	.wf-sidebar:hover {
		width: var(--wf-sidebar-width);
	}

	.wf-sidebar-logo img {
		max-width: 40px;
	}

	.wf-sidebar:hover .wf-sidebar-logo img {
		max-width: 180px;
	}

	.wf-sidebar-logo .wf-logo-text {
		font-size: 0;
		width: 40px;
		height: 40px;
		background: var(--wf-primary);
		border-radius: 8px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.wf-sidebar-logo .wf-logo-text::first-letter {
		font-size: 20px;
		color: #fff;
	}

	.wf-sidebar:hover .wf-sidebar-logo .wf-logo-text {
		font-size: 20px;
		width: auto;
		height: auto;
		background: transparent;
		color: var(--wf-primary);
	}

	.wf-dashboard-navigation ul li a .wf-nav-label,
	.wf-nav-logout a .wf-nav-label {
		opacity: 0;
		width: 0;
		overflow: hidden;
	}

	.wf-sidebar:hover .wf-dashboard-navigation ul li a .wf-nav-label,
	.wf-sidebar:hover .wf-nav-logout a .wf-nav-label {
		opacity: 1;
		width: auto;
	}

	.wf-dashboard-navigation ul li a {
		padding: 12px 24px;
		justify-content: center;
	}

	.wf-sidebar:hover .wf-dashboard-navigation ul li a {
		justify-content: flex-start;
	}

	.wf-nav-logout a {
		justify-content: center;
	}

	.wf-sidebar:hover .wf-nav-logout a {
		justify-content: flex-start;
	}

	.wf-dashboard-profile-info {
		opacity: 0;
		width: 0;
		overflow: hidden;
	}

	.wf-sidebar:hover .wf-dashboard-profile-info {
		opacity: 1;
		width: auto;
	}

	.wf-main-content {
		margin-left: var(--wf-sidebar-collapsed);
	}

	.wf-dashboard-summary-cards,
	.wf-dashboard-transaction-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile */
@media only screen and (max-width: 768px) {
	.wf-sidebar {
		transform: translateX(-100%);
		width: var(--wf-sidebar-width);
	}

	.wf-sidebar.active {
		transform: translateX(0);
	}

	.wf-sidebar-toggle {
		display: flex;
	}

	.wf-sidebar-overlay.active {
		display: block;
		opacity: 1;
	}

	.wf-main-content {
		margin-left: 0;
	}

	.wf-content-header {
		padding: 16px 20px;
		padding-left: 70px;
	}

	.wf-content-header h1 {
		font-size: 20px;
	}

	.wf-dashboard-panel-head {
		padding:20px;
	}

	.wf-dashboard-summary-cards,
	.wf-dashboard-transaction-cards {
		grid-template-columns: 1fr;
		padding: 16px 20px;
		gap: 16px;
	}

	.wf-dashboard-charts {
		grid-template-columns: 1fr;
		grid-template-areas:
			'visits-referrals-earnings'
			'visits'
			'referrals'
			'earnings'
			'conversions'
			'landingpages'
			'referralurls';
		padding: 0 20px 20px;
		gap: 16px;
	}

	.wfd-list-table {
		margin: 16px 20px;
		overflow-x: auto;
	}

	.wf-url-generator-container {
		margin: 20px;
		padding: 20px;
	}

	.wf-url-generator-input-fields {
		grid-template-columns: 1fr;
	}

	.wfug-submit label {
		display: none;
	}

	.wf-urls-container {
		grid-template-columns: 1fr;
	}

	.wf-setting-panel {
		margin: 16px 20px;
		padding: 20px;
		grid-template-columns: 1fr;
		grid-template-areas:
			'wca-avatar'
			'wca-fname'
			'wca-lname'
			'wca-city'
			'wca-state'
			'wca-country'
			'wca-email'
			'wca-payout'
			'wca-mannual-payment'
			'wca-doaction'
			'wca-reset-password'
			'wf-setting-password-area'
			'wf-setting-update-button-area';
	}

	.wf-setting-panel .wf-setting-password-area {
		grid-template-columns: 1fr;
	}

	.wf-dashboard-panel-filter form {
		flex-wrap: wrap;
	}

	.wf-content-body .wf-dashboard-panel-filter form input,
	.wf-dashboard-panel-filter form input {
		flex: 1 1 calc(50% - 8px);
		min-width: 120px;
	}

	.wf-dashboard-panel-filter form input.button {
		flex: 0 0 auto;
	}

	/* Restore labels on collapsed sidebar hover on mobile */
	.wf-sidebar .wf-dashboard-navigation ul li a .wf-nav-label,
	.wf-sidebar .wf-nav-logout a .wf-nav-label {
		opacity: 1;
		width: auto;
	}

	.wf-sidebar .wf-dashboard-navigation ul li a {
		justify-content: flex-start;
	}

	.wf-sidebar .wf-nav-logout a {
		justify-content: flex-start;
	}

	.wf-sidebar .wf-dashboard-profile-info {
		opacity: 1;
		width: auto;
	}

	.wf-sidebar .wf-sidebar-logo .wf-logo-text {
		font-size: 20px;
		width: auto;
		height: auto;
		background: transparent;
		color: var(--wf-primary);
	}

	.wf-sidebar .wf-sidebar-logo img {
		max-width: 180px;
	}
}

/* Very small screens */
@media only screen and (max-width: 460px) {
	#wf-application-form textarea,
	#wf-application-form input,
	#wf-login-form input {
		width: 100%;
	}

	#wf-application-form {
		display: block;
		padding: 0;
	}

	.wf-application-form-panel-content {
		margin-bottom: 16px;
	}

	.wf-application-form-panel-content textarea {
		width: 100%;
	}

	#wf-login-form form {
		width: 100%;
		padding: 0 16px;
	}

	.wf-login-tabs {
		margin: 16px;
	}

	.wf-tab-btns {
		padding: 16px;
		padding-bottom: 0;
	}

	.wfug-inputs.wf-generate-shortlink {
		height: auto;
	}

	#wf-shorten-string {
		width: 80px;
	}

	#wf-shortlinks-list {
		overflow-x: auto;
	}
}

/* Coupons Grid */
.wf-coupons-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--wf-spacing);
	padding: var(--wf-spacing);
}

.wf-coupon-card {
	background: #fff;
	border-radius: 8px;
	padding: var(--wf-spacing);
	box-shadow: var(--wf-card-shadow);
	border-left: 4px solid var(--wf-primary);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wf-coupon-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.wf-coupon-code {
	font-size: 1.1em;
	font-weight: 600;
	color: var(--wf-primary);
	margin-bottom: 8px;
}

.wf-coupon-discount {
	font-size: 0.95em;
	color: #555;
	margin-bottom: 12px;
}

.wf-coupon-expiry {
	font-size: 0.85em;
	color: #888;
	display: flex;
	align-items: center;
	gap: 6px;
}

.wf-coupon-expiry i {
	color: #aaa;
}

.wf-empty-state {
	text-align: center;
	padding: calc(var(--wf-spacing) * 3) var(--wf-spacing);
	color: #888;
}

.wf-empty-state p {
	font-size: 1.1em;
}
