@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
	--bg-color: #e9ecef;
	--header-bg: #e9ecef;
	--menu-bg: #e9ecef;
	--hover-color: #fff;
	--text-color: #333;
	--text-secondary: #333;
	--border-color: #3b3a39;
	--accent-blue: #f45700;
}

body {
	margin: 0;
	font-family: 'Poppins', sans-serif;
	background-color: #e9e9e9;
	color: var(--text-color);
	overflow: hidden;
}

/* --- HEADER --- */
.top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: var(--header-bg);
	height: 50px;
	padding: 0 10px;
	box-shadow: 0 4px 30px rgba(88, 88, 88, 0.1);
	position: relative;
	z-index: 1000;
}

.bar-left,
.bar-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bar-center {
	flex-grow: 1;
	display: flex;
	justify-content: center;
}

.icon-btn {
	height: 40px;
	min-width: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: none;
	border: none;
	color: var(--text-color);
	font-size: 16px;
	cursor: pointer;
	border-radius: 50px;
	text-decoration: none;
	transition: background 0.2s;
}

.icon-btn:hover {
	background-color: var(--hover-color);
}

/* Logo e Titolo */
.app-logo {
	margin-left: 60px;
	margin-right: 10px;
	height: 35px;
}

.doc-title {
	font-size: 14px;
	font-weight: 500;
	margin-right: 10px;
}

/* Search Bar Superiore */
.header-search {
	background-color: #fff;
	border-radius: 4px;
	display: flex;
	align-items: center;
	width: 400px;
	height: 32px;
	padding: 0 10px;
	color: var(--text-color);
	font-size: 13px;
}

.header-search i {
	margin-right: 8px;
}

.header-search input {
	background: transparent;
	border: none;
	color: var(--text-color);
	width: 100%;
	outline: none;
}

/* Profilo */
.profile-section {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 8px;
	border-radius: 4px;
	cursor: pointer;
	position: relative;
}

.profile-section:hover,
.profile-section.active {
	background-color: var(--hover-color);
}

.profile-image img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.profile-text {
	display: flex;
	flex-direction: column;
	text-align: right;
	display: none;
}

@media (min-width: 1000px) {
	.profile-text {
		display: flex;
	}

	.profile-name {
		font-size: 13px;
		font-weight: 600;
	}

	.profile-sub {
		font-size: 11px;
		color: var(--text-secondary);
	}
}

/* --- APP LAUNCHER (WAFFLE MENU) --- */
/* .app-launcher-menu {
	position: absolute;
	top: 48px;
	left: 0;
	width: 340px;
	height: calc(100vh - 48px);
	background-color: var(--menu-bg);
	box-shadow: 0 4px 30px rgba(88, 88, 88, 0.1);
	display: flex;
	flex-direction: column;
	padding: 20px;
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
	z-index: 999;
}

.app-launcher-menu.active {
	transform: translateX(0);
}

.menu-search {
	background-color: #fff;
	padding: 8px 12px;
	border-radius: 4px;
	color: var(--text-color);
	margin-bottom: 20px;
	display: flex;
	align-items: center;
}

.menu-search input {
	background: transparent;
	border: none;
	color: var(--text-color);
	width: 100%;
	outline: none;
}

.apps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	overflow-y: auto;
}

.app-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 10px 4px;
	border-radius: 4px;
	cursor: pointer;
	color: var(--text-color);
	text-decoration: none;
}

.app-item:hover {
	background-color: var(--hover-color);
}

.app-icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	border-radius: 8px;
	margin-bottom: 8px;
	color: #fff;
}

.app-icon img {
	width: 36px;
}

.app-name {
	font-size: 11px;
	line-height: 1.2;
	color: #333;
}

.menu-footer {
	margin-top: auto;
	border-top: 1px solid var(--border-color);
	padding-top: 15px;
	margin-bottom: 40px;
}

.footer-link {
	display: block;
	color: var(--text-color);
	text-decoration: none;
	font-size: 13px;
	border-radius: 4px;
	padding: 8px;
}

.footer-link:hover {
	background-color: #fff;
}

.footer-link i {
	margin-right: 8px;
} */

/* --- ACCOUNT MENU (NEW) --- */
.account-dropdown {
	position: absolute;
	top: 50px;
	right: 10px;
	width: 320px;
	background-color: var(--menu-bg);
	box-shadow: 0 4px 30px rgba(88, 88, 88, 0.1);
	border-radius: 4px;
	display: none;
	flex-direction: column;
	z-index: 1001;
}

.account-dropdown.show {
	display: flex;
}

.acc-header {
	padding: 20px;
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.acc-avatar-large img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.acc-info {
	display: flex;
	flex-direction: column;
}

.acc-name-large {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-color);
}

.acc-email {
	font-size: 13px;
	color: var(--text-secondary);
	margin-bottom: 8px;
}

.acc-link {
	font-size: 13px;
	color: #5da4e4;
	text-decoration: none;
}

.acc-link:hover {
	text-decoration: underline;
}

.acc-separator {
	height: 1px;
	background-color: var(--border-color);
	width: 100%;
}

.acc-list {
	padding: 5px 0;
}

.acc-item-row {
	padding: 12px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
}

.acc-item-row:hover {
	background-color: var(--hover-color);
}

.acc-item-row i {
	width: 20px;
	text-align: center;
	color: var(--text-secondary);
}

.holding-badge {
	background-color: #fff;
	color: #333;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 4px;
	margin-left: auto;
}



/* Colori Icone App */
/* .icon-rgb {
	background: linear-gradient(135deg, #f06c00, #e3008c, #a800e3, #0078d4);
}

.icon-default {
	background-color: #333;
}

.icon-violet {
	background-color: #6264a7;
}

.icon-blue-gradient {
	background: linear-gradient(135deg, #00C6FB 0%, #005BEA 100%);
} */