/**
 * Webyzen Master Agency Hub - Modern Dark SaaS Design System
 * 
 * Brand Accent: #625CD0
 * Overdue Alert: #EF3C51
 * Palette: #0A0B0F, #0E0F15, #13141D, #212332
 * Font: 'Poppins', sans-serif
 *
 * @package Webyzen
 */

/* ==========================================================================
   1. CSS VARIABLES & RESET
   ========================================================================== */
:root {
	--bg-canvas: #0A0B0F;
	--bg-sidebar: #0E0F15;
	--bg-card: #13141D;
	--bg-card-hover: #171824;
	--bg-input: #12131b;
	--bg-secondary: #191B26;
	
	--border-subtle: #212332;
	--border-focus: #625CD0;
	--border-light: #2A2D40;
	
	--brand-primary: #625CD0;
	--brand-light: #7B75F3;
	--brand-glow: rgba(98, 92, 208, 0.15);
	
	--alert-red: #EF3C51;
	--alert-red-bg: rgba(239, 60, 81, 0.12);
	--alert-red-border: rgba(239, 60, 81, 0.28);
	
	--esthete-amber: #F59E0B;
	--esthete-amber-bg: rgba(245, 158, 11, 0.12);
	--esthete-amber-border: rgba(245, 158, 11, 0.25);
	
	--success-green: #10B981;
	--success-bg: rgba(16, 185, 129, 0.12);
	
	--text-primary: #FFFFFF;
	--text-secondary: #9496A8;
	--text-muted: #5E6175;
	
	--font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 14px;
	--transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	background-color: var(--bg-canvas);
	color: var(--text-primary);
	font-family: var(--font-family);
	font-size: 14px;
	line-height: 1.5;
	overflow-x: hidden;
	width: 100%;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: inherit;
	text-decoration: none;
}

button, input, select, textarea {
	font-family: inherit;
}

/* ==========================================================================
   2. INPUT FIELDS & FORM STYLING
   ========================================================================== */
.form-control {
	width: 100%;
	padding: 12px 16px;
	background-color: var(--bg-input) !important;
	color: #ffffff !important;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	font-size: 13px;
	outline: none;
	transition: var(--transition);
}

.form-control:focus {
	border-color: var(--brand-primary);
	box-shadow: 0 0 0 2px var(--brand-glow);
	color: #ffffff !important;
}

.form-control::placeholder {
	color: var(--text-muted);
}

/* Prevent autofill turning text black */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #12131b inset !important;
	-webkit-text-fill-color: #ffffff !important;
	transition: background-color 5000s ease-in-out 0s;
}

.form-group {
	margin-bottom: 16px;
}

.form-group label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-secondary);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

/* ==========================================================================
   3. BUTTON SYSTEM
   ========================================================================== */
.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--brand-primary);
	color: #ffffff;
	border: none;
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	white-space: nowrap;
}

.btn-primary:hover {
	background: #534dbf;
	box-shadow: 0 4px 14px var(--brand-glow);
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--bg-card);
	color: var(--text-primary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
	white-space: nowrap;
}

.btn-secondary:hover {
	background: var(--bg-card-hover);
	border-color: var(--border-light);
}

.btn-sm {
	padding: 6px 12px;
	font-size: 12px;
}

.btn-danger-outline {
	border: 1px solid var(--alert-red-border);
	color: var(--alert-red);
	background: transparent;
	padding: 4px 8px;
	border-radius: var(--radius-sm);
	font-size: 11px;
	cursor: pointer;
	transition: var(--transition);
}

.btn-danger-outline:hover {
	background: var(--alert-red-bg);
}

/* ==========================================================================
   4. LAYOUT: FIXED 260px SIDEBAR & WORKSPACE
   ========================================================================== */
.webyzen-app-layout {
	display: flex;
	min-height: 100vh;
	width: 100%;
	background: var(--bg-canvas);
	position: relative;
	overflow-x: hidden;
}

/* Fixed Left Sidebar (260px wide, never shrinks) */
.webyzen-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 260px;
	min-width: 260px;
	max-width: 260px;
	flex-shrink: 0;
	background: var(--bg-sidebar);
	border-right: 1px solid var(--border-subtle);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	z-index: 100;
	height: 100vh;
	overflow-y: auto;
}

/* Account for WordPress 32px Admin Bar */
body.admin-bar .webyzen-sidebar {
	top: 32px;
	height: calc(100vh - 32px);
}

@media (max-width: 782px) {
	body.admin-bar .webyzen-sidebar {
		top: 46px;
		height: calc(100vh - 46px);
	}
}

.sidebar-top {
	padding: 22px 18px;
}

.sidebar-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
	padding-left: 2px;
}

.sidebar-logo {
	height: 38px;
	width: auto;
}

/* Sidebar Workspace Selector Box */
.sidebar-workspace-box {
	background: var(--bg-canvas);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 12px 14px;
	margin-bottom: 20px;
}

.sidebar-section-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.8px;
	color: var(--text-muted);
	margin-bottom: 8px;
	text-transform: uppercase;
}

.workspace-select {
	width: 100%;
	padding: 8px 10px;
	background: var(--bg-input);
	color: #ffffff !important;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	font-size: 12px;
	font-weight: 600;
	outline: none;
	cursor: pointer;
}

.workspace-select:focus {
	border-color: var(--brand-primary);
}

/* Sidebar Navigation Items */
.sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sidebar-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	background: transparent;
	border: none;
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: var(--transition);
	width: 100%;
	position: relative;
}

.sidebar-nav-item:hover {
	color: #ffffff;
	background: var(--bg-card);
}

.sidebar-nav-item.active {
	color: #ffffff;
	background: var(--bg-card);
	font-weight: 600;
}

.sidebar-nav-item.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	bottom: 6px;
	width: 3px;
	border-radius: 0 4px 4px 0;
	background: var(--brand-primary);
}

.sidebar-nav-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	opacity: 0.8;
}

.sidebar-nav-item.active .sidebar-nav-icon {
	opacity: 1;
	color: var(--brand-light);
}

.sidebar-nav-label {
	flex: 1;
}

.sidebar-nav-badge {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 10px;
	background: var(--bg-secondary);
	color: var(--text-muted);
}

.sidebar-nav-item.active .sidebar-nav-badge {
	background: var(--brand-primary);
	color: #ffffff;
}

/* Sidebar Bottom Section */
.sidebar-bottom {
	padding: 18px;
	border-top: 1px solid var(--border-subtle);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* RED OVERDUE ALERT PILL (#EF3C51) */
.sidebar-overdue-alert {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--alert-red-bg);
	border: 1px solid var(--alert-red-border);
	border-radius: var(--radius-sm);
	color: var(--alert-red);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: var(--transition);
}

.sidebar-overdue-alert:hover {
	background: rgba(239, 60, 81, 0.2);
}

.overdue-pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--alert-red);
	box-shadow: 0 0 8px var(--alert-red);
	animation: alertPulse 1.8s infinite;
}

@keyframes alertPulse {
	0% { transform: scale(0.95); opacity: 0.8; }
	50% { transform: scale(1.2); opacity: 1; }
	100% { transform: scale(0.95); opacity: 0.8; }
}

/* Bridge Connection Status Indicator */
.bridge-status-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background: var(--bg-canvas);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	font-size: 11px;
	color: var(--text-secondary);
}

.bridge-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--text-muted);
}

.bridge-status-indicator.connected .bridge-status-dot {
	background: var(--success-green);
	box-shadow: 0 0 6px var(--success-green);
}

.bridge-status-indicator.error .bridge-status-dot {
	background: var(--alert-red);
}

/* User Card in Sidebar */
.sidebar-user-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background: var(--bg-canvas);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
}

.sidebar-user-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--border-light);
}

.sidebar-user-info {
	flex: 1;
	min-width: 0;
}

.sidebar-user-name {
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar-user-role {
	font-size: 11px;
	color: var(--brand-light);
}

.btn-logout {
	background: transparent;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	padding: 6px;
	border-radius: var(--radius-sm);
	transition: var(--transition);
}

.btn-logout:hover {
	color: var(--alert-red);
	background: var(--alert-red-bg);
}

/* ==========================================================================
   5. MAIN WORKSPACE CONTENT & TOPBAR
   ========================================================================== */
.webyzen-main-wrap {
	margin-left: 260px;
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--bg-canvas);
	overflow-x: hidden;
}

body.admin-bar .webyzen-main-wrap {
	min-height: calc(100vh - 32px);
}

.main-topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(14, 15, 21, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-subtle);
	padding: 16px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

body.admin-bar .main-topbar {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .main-topbar {
		top: 46px;
	}
}

.topbar-left-cluster {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 1;
}

/* Workspace Segmented Pill Switcher */
.workspace-pill-group {
	display: inline-flex;
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	padding: 3px;
	gap: 2px;
}

.workspace-pill-btn {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 6px 14px;
	background: transparent;
	border: none;
	border-radius: 4px;
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	white-space: nowrap;
}

.workspace-pill-btn:hover {
	color: #ffffff;
}

.workspace-pill-btn.active {
	background: var(--bg-secondary);
	color: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.pill-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
}

.pill-dot-all { background: #38BDF8; }
.pill-dot-wz { background: var(--brand-light); }
.pill-dot-esthete { background: var(--esthete-amber); }

/* Global Search Input */
.topbar-search-wrap {
	position: relative;
	width: 320px;
}

.topbar-search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 15px;
	height: 15px;
	color: var(--text-muted);
}

.topbar-search-input {
	width: 100%;
	padding: 8px 14px 8px 38px;
	background: var(--bg-input) !important;
	color: #ffffff !important;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	font-size: 12px;
	outline: none;
	transition: var(--transition);
}

.topbar-search-input:focus {
	border-color: var(--brand-primary);
}

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Inner Workspace Content */
.webyzen-content {
	padding: 32px;
	flex: 1;
}

.tab-pane {
	display: none;
}

.tab-pane.active {
	display: block;
	animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   6. SECTION HEADERS & BADGES
   ========================================================================== */
.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	gap: 16px;
}

.section-title {
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.4px;
}

.section-subtitle {
	display: block;
	font-size: 13px;
	color: var(--text-secondary);
	margin-top: 4px;
}

/* Pill Badges: Webyzen vs Esthete */
.badge-workspace {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.badge-webyzen {
	background: rgba(98, 92, 208, 0.14);
	color: #A39EFC;
	border: 1px solid rgba(98, 92, 208, 0.3);
}

.badge-esthete {
	background: var(--esthete-amber-bg);
	color: var(--esthete-amber);
	border: 1px solid var(--esthete-amber-border);
}

/* Status Badges */
.badge-status {
	display: inline-flex;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: capitalize;
}

.badge-status-in_progress { background: rgba(56, 189, 248, 0.12); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.25); }
.badge-status-planning    { background: rgba(168, 85, 247, 0.12); color: #A855F7; border: 1px solid rgba(168, 85, 247, 0.25); }
.badge-status-review      { background: rgba(245, 158, 11, 0.12); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-status-done,
.badge-status-completed   { background: var(--success-bg); color: var(--success-green); border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-status-on_hold     { background: rgba(100, 116, 139, 0.12); color: #94A3B8; border: 1px solid rgba(100, 116, 139, 0.25); }

/* Priority Badges */
.badge-priority {
	display: inline-flex;
	padding: 2px 7px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.badge-priority-urgent { background: var(--alert-red-bg); color: var(--alert-red); border: 1px solid var(--alert-red-border); }
.badge-priority-high   { background: rgba(249, 115, 22, 0.12); color: #F97316; border: 1px solid rgba(249, 115, 22, 0.25); }
.badge-priority-medium { background: rgba(98, 92, 208, 0.12); color: var(--brand-light); border: 1px solid rgba(98, 92, 208, 0.25); }
.badge-priority-low    { background: rgba(100, 116, 139, 0.12); color: #94A3B8; border: 1px solid rgba(100, 116, 139, 0.2); }

/* ==========================================================================
   7. STAT METRIC CARDS & OVERVIEW
   ========================================================================== */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.stat-card {
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 20px;
	transition: var(--transition);
}

.stat-card:hover {
	border-color: var(--border-light);
	background: var(--bg-card-hover);
}

.stat-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.stat-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stat-icon {
	width: 18px;
	height: 18px;
	color: var(--text-muted);
}

.stat-value {
	font-size: 32px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1;
	margin-bottom: 8px;
	font-family: var(--font-family);
}

.stat-footer {
	font-size: 12px;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: 8px;
}

/* OVERDUE STAT CARD HIGHLIGHT (#EF3C51) */
.stat-card-overdue {
	border-color: var(--alert-red-border);
	background: linear-gradient(180deg, rgba(239, 60, 81, 0.08) 0%, rgba(19, 20, 29, 1) 100%);
}

.stat-card-overdue:hover {
	border-color: var(--alert-red);
}

.stat-icon-overdue {
	color: var(--alert-red);
}

.stat-value-overdue {
	color: var(--alert-red) !important;
}

.badge-overdue-tag {
	background: var(--alert-red);
	color: #ffffff;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.5px;
}

/* OVERDUE ALERT BANNER */
.overdue-alert-banner {
	background: var(--alert-red-bg);
	border: 1px solid var(--alert-red-border);
	border-radius: var(--radius-md);
	padding: 16px 20px;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #ffffff;
}

.overdue-banner-content {
	display: flex;
	align-items: center;
	gap: 14px;
}

.overdue-banner-icon {
	color: var(--alert-red);
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.overdue-banner-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--alert-red);
}

.overdue-banner-desc {
	font-size: 12px;
	color: var(--text-secondary);
}

/* Overview Split Layout */
.overview-split-layout {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 24px;
}

@media (max-width: 1100px) {
	.overview-split-layout {
		grid-template-columns: 1fr;
	}
}

.overview-main-col, .overview-side-col {
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 22px;
}

.projects-list-vertical, .urgent-tasks-vertical {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Project Item Row in Overview */
.overview-project-row {
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: var(--transition);
	cursor: pointer;
}

.overview-project-row:hover {
	border-color: var(--border-light);
	background: var(--bg-card-hover);
}

.overview-project-row-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.overview-project-title {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
}

.progress-track {
	width: 100%;
	height: 6px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: var(--brand-primary);
	border-radius: 10px;
	transition: width 0.4s ease;
}

/* Urgent Task Row in Overview */
.overview-urgent-row {
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: var(--transition);
	cursor: pointer;
}

.overview-urgent-row.is-overdue {
	border-left: 3px solid var(--alert-red);
}

.overview-urgent-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.overview-urgent-title {
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
}

.overview-urgent-meta {
	font-size: 11px;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 12px;
}

/* ==========================================================================
   8. PROJECTS GRID VIEW
   ========================================================================== */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 20px;
}

.project-card {
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: var(--transition);
	position: relative;
}

.project-card:hover {
	border-color: var(--border-light);
	background: var(--bg-card-hover);
}

.project-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.project-card-title {
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.35;
	margin-top: 4px;
}

.project-card-client {
	font-size: 12px;
	color: var(--text-secondary);
	margin-bottom: 14px;
}

.project-card-notes {
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 16px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.project-card-tech {
	display: inline-block;
	background: var(--bg-secondary);
	color: var(--text-secondary);
	border: 1px solid var(--border-subtle);
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11px;
	margin-bottom: 16px;
}

.project-card-footer {
	border-top: 1px solid var(--border-subtle);
	padding-top: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	color: var(--text-secondary);
}

.project-drive-link {
	color: var(--brand-light);
	font-weight: 600;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.project-drive-link:hover {
	text-decoration: underline;
}

/* ==========================================================================
   9. ISOLATED HORIZONTAL SCROLL KANBAN TASK BOARD
   ========================================================================== */
.tasks-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	gap: 16px;
	flex-wrap: wrap;
}

.filter-pill-group {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.filter-pill-btn {
	padding: 6px 14px;
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: 20px;
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
}

.filter-pill-btn:hover {
	border-color: var(--border-light);
	color: #ffffff;
}

.filter-pill-btn.active {
	background: var(--brand-primary);
	border-color: var(--brand-primary);
	color: #ffffff;
}

.filter-pill-overdue.active {
	background: var(--alert-red) !important;
	border-color: var(--alert-red) !important;
}

.view-toggle-bar {
	display: inline-flex;
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	padding: 3px;
	gap: 2px;
}

.view-toggle-btn {
	padding: 6px 12px;
	background: transparent;
	border: none;
	border-radius: 4px;
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
}

.view-toggle-btn.active {
	background: var(--bg-secondary);
	color: #ffffff;
}

/* ISOLATED HORIZONTAL SCROLL CONTAINER */
#kanbanViewContainer.kanban-view-container {
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 24px;
	-webkit-overflow-scrolling: touch;
	width: 100%;
}

.kanban-columns-row {
	display: flex;
	gap: 20px;
	min-width: max-content;
	align-items: flex-start;
}

/* EXACT 310px WIDE COLUMNS */
.kanban-column {
	width: 310px;
	min-width: 310px;
	max-width: 310px;
	flex-shrink: 0;
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 220px);
}

.kanban-column-header {
	padding: 14px 18px;
	border-bottom: 1px solid var(--border-subtle);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.col-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.col-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.col-dot-todo { background: #94A3B8; }
.col-dot-inprogress { background: #38BDF8; }
.col-dot-review { background: #F59E0B; }
.col-dot-done { background: var(--success-green); }

.col-title {
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.col-counter {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 10px;
	background: var(--bg-secondary);
	color: var(--text-muted);
}

.kanban-cards-dropzone {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow-y: auto;
	flex: 1;
	min-height: 250px;
	transition: background-color 0.15s ease;
}

.kanban-cards-dropzone.drag-over {
	background-color: rgba(98, 92, 208, 0.08);
	border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* KANBAN TASK CARD */
.task-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	padding: 14px;
	cursor: grab;
	transition: var(--transition);
	position: relative;
}

.task-card:hover {
	border-color: var(--border-light);
	background: var(--bg-card-hover);
}

.task-card.dragging {
	opacity: 0.4;
	cursor: grabbing;
}

/* BOLD RED OVERDUE TASK CARD HIGHLIGHT (#EF3C51) */
.task-card.is-overdue {
	border-color: var(--alert-red-border);
	background: linear-gradient(180deg, rgba(239, 60, 81, 0.08) 0%, rgba(25, 27, 38, 1) 100%);
	border-left: 3px solid var(--alert-red);
}

.task-card.is-overdue .task-deadline-pill {
	color: var(--alert-red) !important;
	font-weight: 700;
}

.task-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	gap: 8px;
}

.task-card-title {
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	line-height: 1.4;
	margin-bottom: 8px;
}

.task-card-project {
	font-size: 11px;
	color: var(--text-secondary);
	margin-bottom: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.task-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	padding-top: 10px;
	margin-top: 6px;
	font-size: 11px;
}

.task-user-tag {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--text-secondary);
}

.task-user-avatar {
	width: 20px;
	height: 20px;
	border-radius: 50%;
}

.task-deadline-pill {
	font-size: 11px;
	color: var(--text-muted);
}

/* ==========================================================================
   10. DATA TABLE VIEW (TASKS)
   ========================================================================== */
.data-table-wrap {
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	overflow-x: auto;
}

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

.data-table th {
	padding: 14px 18px;
	background: var(--bg-secondary);
	color: var(--text-secondary);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--border-subtle);
	color: #ffffff;
	vertical-align: middle;
}

.data-table tr:hover td {
	background: var(--bg-card-hover);
}

.data-table tr.is-overdue td {
	background: rgba(239, 60, 81, 0.04);
}

.data-table tr.is-overdue td:first-child {
	border-left: 3px solid var(--alert-red);
}

/* ==========================================================================
   11. CREDENTIALS VAULT GRID
   ========================================================================== */
.credentials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
	gap: 20px;
}

.credential-card {
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: var(--transition);
}

.credential-card:hover {
	border-color: var(--border-light);
	background: var(--bg-card-hover);
}

.cred-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.cred-title {
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
}

.cred-service-badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 4px;
	background: var(--bg-secondary);
	color: var(--brand-light);
	border: 1px solid var(--border-subtle);
}

.cred-details-box {
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 12px;
}

.cred-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.cred-label {
	color: var(--text-muted);
	font-size: 11px;
}

.cred-val {
	color: #ffffff;
	font-family: monospace;
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cred-pwd-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cred-pwd-masked {
	font-family: monospace;
	letter-spacing: 2px;
	color: var(--brand-light);
}

.btn-icon {
	background: transparent;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
}

.btn-icon:hover {
	color: #ffffff;
	background: var(--bg-canvas);
}

/* ==========================================================================
   12. CLIENT DOCUMENTS GRID
   ========================================================================== */
.documents-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 20px;
}

.document-card {
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: var(--transition);
}

.document-card:hover {
	border-color: var(--border-light);
	background: var(--bg-card-hover);
}

.doc-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.doc-title {
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.4;
}

.doc-client {
	font-size: 12px;
	color: var(--text-secondary);
	margin-bottom: 12px;
}

.doc-notes {
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 16px;
	line-height: 1.5;
}

.doc-footer {
	border-top: 1px solid var(--border-subtle);
	padding-top: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* ==========================================================================
   13. TEAM DIRECTORY GRID
   ========================================================================== */
.team-subheading {
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 16px;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.team-card {
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	transition: var(--transition);
}

.team-card:hover {
	border-color: var(--border-light);
	background: var(--bg-card-hover);
}

.team-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--border-light);
}

.team-name {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
}

.team-role {
	font-size: 12px;
	color: var(--brand-light);
}

.team-email {
	font-size: 11px;
	color: var(--text-muted);
	word-break: break-all;
}

/* ==========================================================================
   14. MODALS & OVERLAYS
   ========================================================================== */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal-overlay.active {
	display: flex;
}

.modal-dialog {
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	width: 100%;
	max-width: 540px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
	animation: modalSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
	from { opacity: 0; transform: scale(0.96) translateY(10px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
	padding: 20px 24px;
	border-bottom: 1px solid var(--border-subtle);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.modal-title {
	font-size: 17px;
	font-weight: 700;
	color: #ffffff;
}

.modal-close-btn {
	background: transparent;
	border: none;
	color: var(--text-muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: var(--transition);
}

.modal-close-btn:hover {
	color: #ffffff;
}

.modal-body {
	padding: 24px;
}

.modal-footer {
	padding: 16px 24px;
	border-top: 1px solid var(--border-subtle);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	background: var(--bg-secondary);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ==========================================================================
   15. GUEST LOGIN SCREEN
   ========================================================================== */
.webyzen-login-wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: radial-gradient(circle at 50% 20%, #171824 0%, #0A0B0F 70%);
}

.login-card {
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 36px;
	width: 100%;
	max-width: 440px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
}

.login-brand {
	text-align: center;
	margin-bottom: 28px;
}

.login-logo {
	height: 48px;
	margin-bottom: 14px;
}

.login-title {
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
}

.login-subtitle {
	font-size: 12px;
	color: var(--text-secondary);
	margin-top: 4px;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.quick-login-box {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--border-subtle);
}

.quick-login-title {
	font-size: 11px;
	font-weight: 700;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
	text-align: center;
}

.quick-login-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

/* ==========================================================================
   16. TOAST NOTICE
   ========================================================================== */
.toast-notice {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: var(--bg-card);
	border: 1px solid var(--border-light);
	color: #ffffff;
	padding: 12px 20px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 500;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	z-index: 2000;
	display: none;
	animation: toastIn 0.25s ease-out;
}

.toast-notice.toast-success {
	border-color: var(--success-green);
	border-left: 4px solid var(--success-green);
}

.toast-notice.toast-error {
	border-color: var(--alert-red);
	border-left: 4px solid var(--alert-red);
}

@keyframes toastIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: #252838;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #363a50;
}
