@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

a {
	text-decoration: none;
}

i {
    font-style: normal;
}

p {
	margin: 0px;
}

/* Select reset for better cross-browser consistency */
select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: transparent;
	border: none;
	padding: 0;
	margin: 0;
	width: 100%;
	font-family: inherit;
	font-size: inherit;
	cursor: inherit;
	line-height: inherit;
	outline: none;
}

select::-ms-expand {
	display: none;
}

option {
	font-family: inherit;
	font-weight: normal;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: #f8f9fa;
	color: #2c3e50;
	line-height: 1.6;
	min-height: 100vh;
}

.mb2 {
	margin-bottom: 2rem;
}

.mt2 {
	margin-top: 2rem;
}

.disabled {
	background-color: #cd848433 !important;
}

.gap-1 {
    gap: .25rem !important;
}

.align-items-center {
    align-items: center !important;
}

.d-flex {
    display: flex !important;
}

.title-inside-section {
	display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

:root {
	--primary: #2563eb;
	--primary-dark: #1d4ed8;
	--primary-light: #eff6ff;
	--accent: #10b981;
	--accent-dark: #059669;
	--accent-light: #ecfdf5;
	--danger: #ef4444;
	--danger-light: #fef2f2;
	--warning: #f59e0b;
	--warning-light: #fef3c7;
	--light-gray: #f9fafb;
	--border: #e5e7eb;
	--text-primary: #111827;
	--text-secondary: #6b7280;
	--text-muted: #9ca3af;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Modal Overlay */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Modal Container */
.modal-container {
	background: white;
	width: 90%;
	max-width: 900px;
	max-height: 90vh;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--shadow-xl);
	animation: slideUp 0.3s ease;
	display: flex;
	flex-direction: column;
}

.modal-header {
	background: var(--primary);
	padding: 1.5rem;
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h2 {
	font-size: 1.25rem;
	font-weight: 600;
}

.modal-close {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: white;
	font-size: 1.25rem;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.modal-body {
	flex: 1;
	overflow-y: auto;
	background: white;
}

/* Dashboard */
.dashboard {
	width: 100%;
	height: 100vh;
	background: var(--light-gray);
	display: flex;
}

/* Sidebar */
.sidebar {
	width: 260px;
	background: white;
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
}

.sidebar-header {
	padding: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	text-align: center;
}

.logo .primary {
	color: var(--primary);
}

.logo .accent {
	color: var(--accent);
}

.nav-menu {
	flex: 1;
	padding: 0.5rem 0;
}

.nav-item {
	display: flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	color: var(--text-secondary);
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
	font-weight: 500;
	font-size: 0.875rem;
	position: relative;
}

.nav-item:hover {
	background: var(--light-gray);
	color: var(--text-primary);
}

.nav-item.active {
	color: var(--primary);
	background: var(--primary-light);
}

.nav-item.active::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--primary);
}

.nav-item i {
	margin-right: 0.75rem;
	width: 20px;
	text-align: center;
	font-size: 1rem;
}

.sidebar-footer {
	padding: 1rem 1.5rem;
	border-top: 1px solid var(--border);
}

.user-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 0;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--text-primary);
	font-size: 0.875rem;
}

.user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 0.75rem;
	font-weight: 700;
}

/* Main Content */
.main-content {
	flex: 1;
	overflow-y: auto;
	padding: 2rem;
	padding-bottom: 6rem;
}

.header {
	margin-bottom: 2rem;
}

.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

.header h1 {
	font-size: 1.875rem;
	color: var(--text-primary);
	font-weight: 700;
}

.header-subtitle {
	color: var(--text-secondary);
	font-size: 0.875rem;
}

.header-actions {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.notification-bell {
	position: relative;
	cursor: pointer;
	padding: 0.5rem;
	color: var(--text-secondary);
	border-radius: 6px;
	transition: all 0.2s;
}

.notification-bell:hover {
	background: white;
	box-shadow: var(--shadow-sm);
}

.notification-dot {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 6px;
	height: 6px;
	background: var(--danger);
	border-radius: 50%;
}

.notification {
	position: absolute;
    width: 342px;
    height: 500px;
    background-color: #ffff;
    border: 1px solid var(--border);
    top: 96px;
    right: 32px;
    z-index: 1;
    border-radius: 7px;
	display: none;
	transition: .2s;
	overflow: hidden;
}

.notification.active {
	display: block;
}

.notification .notices {
    font-size: 13px;
}

.notification .notices .item {
	padding: 15px;
}

.notification .notices .item:hover {
	background-color: var(--border);
}

.notification .notices .date {
	color: #797979;
	font-size: 12px;
}

.notification .notices .item p {
	margin-bottom: 0px;
}

.btn-primary {
	background: var(--primary);
	color: white;
	padding: 0.625rem 1.25rem;
	border-radius: 6px;
	border: none;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.btn-primary:hover {
	background: var(--primary-dark);
	box-shadow: var(--shadow-sm);
}

/* View Sections */
.view-section {
	display: none;
}

.view-section.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

/* KPI Cards */
.kpi-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.kpi-card {
	background: white;
	padding: 1.25rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	position: relative;
}

.kpi-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 3px;
	height: 100%;
	background: var(--primary);
	border-radius: 8px 0 0 8px;
}

.kpi-card:nth-child(2)::before {
	background: var(--accent);
}

.kpi-card:nth-child(3)::before {
	background: var(--warning);
}

.kpi-label {
	color: var(--text-muted);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.5rem;
}

.kpi-value {
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--text-primary);
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}

.kpi-trend {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.125rem 0.375rem;
	border-radius: 4px;
}

.trend-up {
	color: var(--accent);
	background: var(--accent-light);
}

.trend-down {
	color: var(--danger);
	background: var(--danger-light);
}

/* NEW: Contracts View - Improved */
.contracts-toolbar {
	background: white;
	padding: 1rem 1.5rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	margin-bottom: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.toolbar-left {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	flex: 1;
	min-width: 300px;
}

.search-box {
	position: relative;
	flex: 1;
	max-width: 400px;
}

.search-input {
	width: 100%;
	padding: 0.5rem 1rem 0.5rem 2.5rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.875rem;
	transition: all 0.2s;
}

.search-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
}

.filter-dropdown {
	padding: 0.5rem 1rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: white;
	font-size: 14px !important;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	font-weight: 400 !important;
	cursor: pointer;
	transition: all 0.2s;
	min-width: 200px;
	height: 38px;
	line-height: 1.5;
	color: var(--text-primary);
	text-align: left;
	text-indent: 0;
	text-shadow: none;
	display: inline-block;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%236b7280' d='M6 9L1 4h10z'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}

.filter-dropdown:hover {
	border-color: var(--primary);
}

.filter-dropdown:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Forced styles for option elements */
.filter-dropdown option {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	padding: 8px 16px !important;
	background-color: white !important;
	color: #111827 !important;
	text-align: left !important;
	direction: ltr !important;
	display: block !important;
	white-space: nowrap !important;
	min-height: 1.2em !important;
}

.filter-dropdown optgroup {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	font-size: 14px !important;
	font-weight: 400 !important;
}

/* Statistics Bar */
.contracts-stats-bar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.stat-item {
	background: white;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 1rem;
}

.stat-icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}

.stat-icon.draft { background: #f1f5f9; color: #64748b; }
.stat-icon.pending { background: var(--warning-light); color: var(--warning); }
.stat-icon.signed { background: var(--accent-light); color: var(--accent); }
.stat-icon.cancelled { background: var(--danger-light); color: var(--danger); }

.stat-info {
	flex: 1;
}

.stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1;
}

.stat-label {
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-top: 0.25rem;
}

/* Table View */
.table-container {
	background: white;
	border-radius: 8px;
	border: 1px solid var(--border);
	overflow: hidden;
}

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

.table thead {
	background: var(--light-gray);
	border-bottom: 1px solid var(--border);
}

.table th {
	padding: 1rem 1.25rem;
	text-align: left;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.table tbody tr {
	border-bottom: 1px solid var(--border);
	transition: all 0.2s;
	cursor: pointer;
}

.table tbody tr:hover {
	background: var(--light-gray);
}

.table td {
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
	color: var(--text-primary);
}

.document-title-list {
	display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    width: 100%;
    margin: 2px;
	color: var(--primary);
}

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.375rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	width: 100%;
	margin: 2px;
	justify-content: center;
}

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

.draft {
	background: #f1f5f9;
	color: #64748b;
}

.draft .status-dot {
	background: #94a3b8;
}

.pending {
	background: var(--warning-light);
	color: #92400e;
}

.pending .status-dot {
	background: var(--warning);
}

.signed {
	background: var(--accent-light);
	color: #065f46;
}

.signed .status-dot {
	background: var(--accent);
}

.cancelled {
	background: var(--danger-light);
	color: #991b1b;
}

.cancelled .status-dot {
	background: var(--danger);
}

.service-tag {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	width: 100%;
	margin: 2px;
}

.service-tag.bankruptcy {
	background: #fef2f2;
	color: #dc2626;
}

.service-tag.agreement {
	background: #f0f9ff;
	color: #0284c7;
}

.service-tag.property {
	background: #fefce8;
	color: #ca8a04;
}

.service-tag.restructuring {
	background: #f0fdf4;
	color: #15803d;
}

.service-tag.liquidation {
	background: #faf5ff;
	color: #9333ea;
}

.amount {
	font-weight: 600;
	color: var(--text-primary);
}

.table-actions {
	display: flex;
	gap: 0.375rem;
}

.action-btn {
	padding: 0.375rem 0.625rem;
	border: 1px solid var(--border);
	background: white;
	color: var(--text-secondary);
	border-radius: 4px;
	font-size: 0.75rem;
	cursor: pointer;
	transition: all 0.2s;
}

.action-btn:hover {
	background: var(--light-gray);
	border-color: var(--primary);
	color: var(--primary);
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
	background: white;
	border-top: 1px solid var(--border);
	border-radius: 0 0 8px 8px;
}

.pagination-info {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.pagination-controls {
	display: flex;
	gap: 0.25rem;
}

.pagination-btn {
	padding: 0.375rem 0.75rem;
	border: 1px solid var(--border);
	background: white;
	color: var(--text-secondary);
	border-radius: 4px;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
	background: var(--light-gray);
	border-color: var(--primary);
	color: var(--primary);
}

.pagination-btn.active {
	background: var(--primary);
	color: white;
	border-color: var(--primary);
}

.pagination-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 3rem;
}

.empty-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
	opacity: 0.3;
}

.empty-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.empty-desc {
	color: var(--text-secondary);
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
}

/* Kwalifikator Container */
.qualifier-container {
	background: white;
	border-radius: 8px;
	border: 1px solid var(--border);
	overflow: hidden;
	margin-bottom: 2rem;
}

/* Client Selection Styles */
.client-selection {
	padding: 2rem;
}

.service-selection {
	padding: 2rem;
}

.client-search-container {
	display: flex;
	margin-bottom: 2rem;
	max-width: 800px;
}

.client-search-wrapper {
	width: 100%;
	display: flex;
	gap: 0.5rem;
}

.client-search-box {
	position: relative;
	flex: 1;
}

.client-search-input {
	width: 100%;
	padding: 0.75rem 1rem 0.75rem 2.75rem;
	border: 2px solid var(--border);
	border-radius: 8px;
	font-size: 0.9375rem;
	transition: all 0.2s;
}

.client-search-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.client-search-box .search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
}

.btn-search {
	background: var(--primary);
	color: white;
	padding: 0.75rem 2rem;
	border-radius: 8px;
	border: none;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
}

.btn-search:hover {
	background: var(--primary-dark);
	box-shadow: var(--shadow-sm);
}

.subsection-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.clients-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.client-card {
	background: white;
	border: 2px solid var(--border);
	border-radius: 8px;
	padding: 1rem;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.client-card:hover {
	border-color: var(--primary);
	box-shadow: var(--shadow-md);
}

.client-card.selected {
	border-color: var(--primary);
	background: var(--primary-light);
}

.client-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--primary);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1rem;
	flex-shrink: 0;
}

.client-info {
	flex: 1;
}

.client-name {
	font-weight: 600;
	color: var(--text-primary);
	font-size: 0.9375rem;
	margin-bottom: 0.25rem;
}

.client-details {
	font-size: 0.8125rem;
	color: var(--text-secondary);
}

/* Selected Client Banner */
.selected-client-banner {
	background: var(--accent-light);
	border-left: 4px solid var(--accent);
	border-radius: 6px;
	padding: 1rem 1.25rem;
	margin-bottom: 2rem;
}

.banner-content {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.banner-label {
	font-size: 0.875rem;
	color: var(--text-secondary);
	font-weight: 500;
}

.banner-name {
	font-size: 1rem;
	font-weight: 600;
	color: var(--accent-dark);
	flex: 1;
}

.btn-change-client {
	padding: 0.375rem 0.75rem;
	background: white;
	border: 1px solid var(--accent);
	color: var(--accent);
	border-radius: 4px;
	font-size: 0.8125rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-change-client:hover {
	background: var(--accent);
	color: white;
}

/* Path Selection */
.path-selection {
	padding: 2rem;
}

.section-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 1.5rem;
}

.path-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
}

.path-card {
	background: white;
	border: 2px solid var(--border);
	border-radius: 8px;
	padding: 1.5rem;
	cursor: pointer;
	transition: all 0.2s;
}

.path-card:hover {
	border-color: var(--primary);
	box-shadow: var(--shadow-md);
}

.path-icon {
	width: 48px;
	height: 48px;
	background: var(--light-gray);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.path-card.expert .path-icon {
	background: #fef3c7;
	color: #f59e0b;
}

.path-card.guided .path-icon {
	background: var(--primary-light);
	color: var(--primary);
}

.path-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.path-description {
	font-size: 0.875rem;
	color: var(--text-secondary);
	line-height: 1.5;
}

/* Service Selection */
.service-selection {
	padding: 2rem;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-secondary);
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
	cursor: pointer;
	text-decoration: none;
}

.back-link:hover {
	color: var(--primary);
}

.service-list {
	display: grid;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.service-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.875rem 1rem;
	background: white;
	border: 1px solid var(--border);
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

.service-item:hover {
	border-color: var(--primary);
	background: var(--primary-light);
}

.service-item.selected {
	border-color: var(--primary);
	background: var(--primary-light);
}

.service-item.selected .service-radio {
	border-color: var(--primary);
	background: var(--primary);
}

.service-item.selected .service-radio::after {
	content: '';
	position: absolute;
	width: 6px;
	height: 6px;
	background: white;
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.service-radio {
	width: 18px;
	height: 18px;
	border: 2px solid var(--border);
	border-radius: 50%;
	position: relative;
	transition: all 0.2s;
}

.service-name {
	flex: 1;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-primary);
}

/* Wizard Steps */
.wizard-content {
	padding: 2rem;
}

.step-indicator {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	font-size: 0.75rem;
	color: var(--text-muted);
	font-weight: 500;
	text-transform: uppercase;
}

.question-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.question-hint {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
}

.question-warning {
	background: var(--warning-light);
	border-left: 3px solid var(--warning);
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	border-radius: 4px;
	font-size: 0.8125rem;
	color: #92400e;
}

.options-list {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.option-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem;
	background: white;
	border: 1.5px solid var(--border);
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

.option-item:hover {
	border-color: var(--primary);
	background: var(--primary-light);
}

.option-item.selected {
	border-color: var(--primary);
	background: var(--primary-light);
}

.option-item.warning {
	border-color: #fbbf24;
	background: #fffbeb;
}

.option-item.danger {
	border-color: #f87171;
	background: #fef2f2;
}

.option-icon {
	width: 36px;
	height: 36px;
	background: var(--light-gray);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
	flex-shrink: 0;
}

.option-content {
	flex: 1;
}

.option-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}

.option-desc {
	font-size: 0.8125rem;
	color: var(--text-secondary);
	line-height: 1.4;
}

.option-badge {
	display: inline-block;
	padding: 0.125rem 0.5rem;
	background: var(--danger-light);
	color: var(--danger);
	border-radius: 4px;
	font-size: 0.6875rem;
	font-weight: 600;
	margin-top: 0.5rem;
}

.option-check {
	width: 20px;
	height: 20px;
	border: 2px solid var(--border);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.option-item.selected .option-check {
	background: var(--primary);
	border-color: var(--primary);
	color: white;
	font-size: 0.75rem;
}

/* Navigation */
.nav-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 2rem;
	border-top: 1px solid var(--border);
}

.nav-buttons {
	display: flex;
	gap: 0.75rem;
}

.btn {
	padding: 0.625rem 1.25rem;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	border: none;
}

.btn-secondary {
	background: white;
	color: var(--text-secondary);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	background: var(--light-gray);
}

.btn-next {
	background: var(--primary);
	color: white;
}

.btn-next:hover:not(:disabled) {
	background: var(--primary-dark);
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Result Screen */
.result-content {
	padding: 2rem;
	text-align: center;
}

.result-header {
	margin-bottom: 2rem;
}

.result-badge {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	background: var(--accent-light);
	color: var(--accent-dark);
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.75rem;
}

.result-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary);
}

.recommendation-card {
	background: var(--light-gray);
	border: 1.5px solid var(--border);
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.service-label {
	font-size: 0.75rem;
	color: var(--text-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.5rem;
}

.service-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 1rem;
}

.success-metric {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 1rem 0;
}

.success-label {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.success-value {
	font-size: 2rem;
	font-weight: 800;
	color: var(--accent);
}

.reason-box {
	background: white;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 1.25rem;
	margin-bottom: 1.5rem;
	text-align: left;
}

.reason-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.75rem;
}

.reason-text {
	font-size: 0.875rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

.criteria-list {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
}

.criteria-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	font-size: 0.8125rem;
	color: var(--text-secondary);
}

.criteria-item .icon {
	color: var(--accent);
	font-size: 0.875rem;
}

.action-buttons {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
}

.btn-success {
	background: var(--accent);
	color: white;
	padding: 0.75rem 1.5rem;
}

.btn-success:hover {
	background: var(--accent-dark);
}

/* Quick Actions */
.quick-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.action-card {
	background: white;
	padding: 1.25rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
}

.action-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.action-icon {
	width: 40px;
	height: 40px;
	margin: 0 auto 0.75rem;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}

.action-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}

.action-desc {
	font-size: 0.75rem;
	color: var(--text-muted);
}

/* Progress Steps */
.progress-dots {
	display: flex;
	gap: 0.5rem;
}

.dot {
	width: 6px;
	height: 6px;
	background: var(--border);
	border-radius: 50%;
	transition: all 0.2s;
}

.dot.active {
	background: var(--primary);
	width: 20px;
	border-radius: 3px;
}

.dot.completed {
	background: var(--accent);
}

/* Knowledge Base Styles */
.knowledge-header {
	margin-bottom: 2rem;
}

.knowledge-search {
	position: relative;
	max-width: 600px;
	margin: 0 auto 3rem;
}

/* Add Client Form Styles */
.add-client-form {
	max-width: 100%;
	padding: 2rem;
	background: white;
	margin-bottom: 2rem;
	border: 1px solid var(--border);
	border-radius: 8px;
}

.form-section {
	margin-bottom: 2rem;
}

.form-label {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

.service-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
}

.service-card-option {
	background: white;
	border: 2px solid var(--border);
	border-radius: 12px;
	padding: 1.5rem 1rem;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
}

.service-card-option:hover {
	border-color: var(--primary);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card-option.selected {
	border-color: var(--primary);
	background: var(--primary-light);
}

.service-card-icon {
	font-size: 2.5rem;
	margin-bottom: 0.75rem;
}

.service-card-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.25rem;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.input-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
	padding: 0.75rem 1rem;
	border: 2px solid var(--border);
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.2s;
}

.form-input:focus, .form-textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-textarea {
	resize: vertical;
	font-family: inherit;
	width: 100%;
}

.form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 2px solid var(--border);
}

.knowledge-search-input {
	width: 100%;
	padding: 1rem 1.5rem 1rem 3.5rem;
	border: 2px solid var(--border);
	border-radius: 12px;
	font-size: 1rem;
	transition: all 0.2s;
}

.knowledge-search-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.knowledge-search .search-icon {
	position: absolute;
	left: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.25rem;
	color: var(--text-muted);
}

.kb-categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.kb-category-card {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	border: 2px solid var(--border);
	cursor: pointer;
	transition: all 0.3s;
}

.kb-category-card:hover {
	border-color: var(--primary);
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.kb-category-icon {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

.kb-category-card.upadlosc .kb-category-icon {
	background: #fef2f2;
	color: #dc2626;
}

.kb-category-card.ugoda .kb-category-icon {
	background: #f0f9ff;
	color: #0284c7;
}

.kb-category-card.ochrona .kb-category-icon {
	background: #fefce8;
	color: #ca8a04;
}

.kb-category-card.restrukturyzacja .kb-category-icon {
	background: #f0fdf4;
	color: #15803d;
}

.kb-category-card.likwidacja .kb-category-icon {
	background: #faf5ff;
	color: #9333ea;
}

.kb-category-card.ogolne .kb-category-icon {
	background: #eff6ff;
	color: #2563eb;
}

.kb-category-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.kb-category-desc {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-bottom: 1rem;
	line-height: 1.5;
}

.kb-category-count {
	font-size: 0.75rem;
	color: var(--text-muted);
	font-weight: 600;
}

.kb-detail-view {
	display: none;
}

.kb-detail-view.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

.kb-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-secondary);
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
	cursor: pointer;
	text-decoration: none;
	font-weight: 500;
}

.kb-back-link:hover {
	color: var(--primary);
}

.kb-accordion {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--border);
}

.kb-accordion-item {
	border-bottom: 1px solid var(--border);
}

.kb-accordion-item:last-child {
	border-bottom: none;
}

.kb-accordion-header {
	padding: 1.25rem 1.5rem;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.2s;
	background: white;
}

.kb-accordion-header:hover {
	background: var(--light-gray);
}

.kb-accordion-title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--text-primary);
	flex: 1;
}

.kb-accordion-icon {
	font-size: 1rem;
	color: var(--text-muted);
	transition: transform 0.3s;
}

.kb-accordion-item.active .kb-accordion-icon {
	transform: rotate(180deg);
}

.kb-accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.kb-accordion-item.active .kb-accordion-content {
	max-height: 2000px;
}

.kb-accordion-body {
	padding: 0 1.5rem 1.5rem 1.5rem;
	color: var(--text-secondary);
	font-size: 0.875rem;
	line-height: 1.7;
}

.kb-accordion-body p {
	margin-bottom: 0.75rem;
}

.kb-accordion-body ul {
	margin: 0.75rem 0 0.75rem 1.5rem;
	list-style: disc;
}

.kb-accordion-body li {
	margin-bottom: 0.5rem;
}

.kb-accordion-body strong {
	color: var(--text-primary);
	font-weight: 600;
}

.kb-info-box {
	background: var(--primary-light);
	border-left: 4px solid var(--primary);
	padding: 1rem;
	border-radius: 4px;
	margin: 1rem 0;
}

.kb-warning-box {
	background: var(--warning-light);
	border-left: 4px solid var(--warning);
	padding: 1rem;
	border-radius: 4px;
	margin: 1rem 0;
}

.kb-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}

.kb-table th,
.kb-table td {
	padding: 0.75rem;
	text-align: left;
	border: 1px solid var(--border);
}

.kb-table th {
	background: var(--light-gray);
	font-weight: 600;
	color: var(--text-primary);
}

.kb-quick-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}

.kb-quick-link {
	background: white;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 1rem;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
}

.kb-quick-link:hover {
	border-color: var(--primary);
	background: var(--primary-light);
}

.kb-quick-link-icon {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.kb-quick-link-text {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
}

/* Billing/Rozliczenia Styles */
.billing-summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.billing-card {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	border: 2px solid var(--border);
	text-align: center;
	transition: all 0.3s;
}

.billing-card.pending {
	border-color: #3b82f6;
}

.billing-card.overdue {
	border-color: #ef4444;
	background: #fef2f2;
}

.billing-card.paid {
	border-color: #10b981;
}

.billing-card-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.billing-card-amount {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}

.billing-card-label {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-bottom: 0.75rem;
}

.billing-card-count {
	font-size: 0.8125rem;
	color: var(--text-muted);
}

.billing-card-action {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.375rem 1rem;
	background: #dc2626;
	color: white;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.7; }
}

.billing-filters {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	border: 1px solid var(--border);
}

.billing-filters-row {
	display: flex;
	gap: 1rem;
	align-items: center;
	flex-wrap: wrap;
}

.billing-filter-group {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.billing-filter-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-secondary);
}

.billing-select {
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.875rem;
	background: white;
	cursor: pointer;
	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='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.5rem center;
}

.billing-search {
	position: relative;
	flex: 1;
	max-width: 300px;
}

.billing-search input {
	width: 100%;
	padding: 0.5rem 0.75rem 0.5rem 2.25rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.875rem;
}

.billing-search-icon {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
}

.billing-alert {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	border-left: 4px solid #dc2626;
	background: #fef2f2;
}

.billing-alert-title {
	font-size: 1rem;
	font-weight: 700;
	color: #dc2626;
	margin-bottom: 0.5rem;
}

.billing-alert-desc {
	font-size: 0.875rem;
	color: #991b1b;
}

.billing-client-card {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	border: 2px solid var(--border);
	margin-bottom: 1rem;
	transition: all 0.2s;
}

.billing-client-card:hover {
	box-shadow: var(--shadow-md);
}

.billing-client-card.overdue {
	border-color: #dc2626;
	background: #fef2f2;
}

.billing-client-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.billing-client-name {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}

.billing-client-service {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.billing-status-badge {
	padding: 0.375rem 0.75rem;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

.billing-status-badge.overdue {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #dc2626;
}

.billing-status-badge.pending {
	background: #eff6ff;
	color: #2563eb;
	border: 1px solid #93c5fd;
}

.billing-client-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	padding: 1rem;
	background: var(--light-gray);
	border-radius: 8px;
	margin-bottom: 1rem;
}

.billing-detail-item {
	display: flex;
	flex-direction: column;
}

.billing-detail-label {
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-bottom: 0.25rem;
}

.billing-detail-value {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--text-primary);
}

.billing-warning {
	background: #fef3c7;
	border-left: 3px solid #f59e0b;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.billing-warning-text {
	font-size: 0.8125rem;
	color: #92400e;
	margin: 0;
}

.billing-last-contact {
	font-size: 0.8125rem;
	color: var(--text-muted);
	margin-bottom: 1rem;
}

.billing-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.billing-btn {
	padding: 0.5rem 1rem;
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.billing-btn-primary {
	background: var(--primary);
	color: white;
}

.billing-btn-primary:hover {
	background: #1d4ed8;
}

.billing-btn-secondary {
	background: white;
	color: var(--text-primary);
	border: 1px solid var(--border);
}

.billing-btn-secondary:hover {
	background: var(--light-gray);
}

.billing-section-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.billing-section-count {
	background: #dc2626;
	color: white;
	font-size: 0.875rem;
	padding: 0.25rem 0.625rem;
	border-radius: 12px;
}

/* Billing Collapsible Sections */
.billing-section {
	background: white;
	border-radius: 12px;
	border: 2px solid var(--border);
	margin-bottom: 1.5rem;
	overflow: hidden;
}

.billing-section.overdue {
	border-color: #dc2626;
}

.billing-section.upcoming {
	border-color: #f59e0b;
}

.billing-section.paid {
	border-color: #10b981;
}

.billing-section-header {
	padding: 1.25rem 1.5rem;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.2s;
	background: white;
}

.billing-section.overdue .billing-section-header {
	background: #fef2f2;
}

.billing-section.upcoming .billing-section-header {
	background: #fffbeb;
}

.billing-section.paid .billing-section-header {
	background: #f0fdf4;
}

.billing-section-header:hover {
	background: var(--light-gray);
}

.billing-section.overdue .billing-section-header:hover {
	background: #fee2e2;
}

.billing-section.upcoming .billing-section-header:hover {
	background: #fef3c7;
}

.billing-section.paid .billing-section-header:hover {
	background: #dcfce7;
}

.billing-section-header-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.billing-section-icon {
	font-size: 1.5rem;
}

.billing-section-info {
	display: flex;
	flex-direction: column;
}

.billing-section-name {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-primary);
}

.billing-section-subtitle {
	font-size: 0.8125rem;
	color: var(--text-muted);
	margin-top: 0.125rem;
}

.billing-section-header-right {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.billing-section-badge {
	background: #dc2626;
	color: white;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.375rem 0.75rem;
	border-radius: 12px;
}

.billing-section.upcoming .billing-section-badge {
	background: #f59e0b;
}

.billing-section.paid .billing-section-badge {
	background: #10b981;
}

.billing-chevron {
	font-size: 1rem;
	color: var(--text-muted);
	transition: transform 0.3s;
}

.billing-section.active .billing-chevron {
	transform: rotate(180deg);
}

.billing-section-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.billing-section.active .billing-section-content {
	max-height: 10000px;
}

.billing-section-body {
	padding: 1.5rem;
	padding-top: 0;
}

/* Login Page Styles */
.login-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
	padding: 1rem;
}

.login-card {
	background: white;
	border-radius: 16px;
	box-shadow: var(--shadow-xl);
	overflow: hidden;
	width: 100%;
	max-width: 400px;
	border: 1px solid var(--border);
}

.login-header {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	padding: 2rem;
	text-align: center;
	color: white;
}

.login-logo {
	font-size: 1.875rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.login-logo .primary {
	color: white;
}

.login-logo .accent {
	color: var(--accent);
}

.login-subtitle {
	font-size: 0.875rem;
	opacity: 0.9;
	font-weight: 400;
}

.login-form {
	padding: 2rem;
}

.login-form-group {
	margin-bottom: 1.5rem;
	position: relative;
}

.login-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.login-input {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 2px solid var(--border);
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.2s ease;
	background: white;
	font-family: inherit;
}

.login-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-input:focus + .login-label {
	color: var(--primary);
}

.login-btn {
	width: 100%;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: white;
	padding: 0.875rem 1rem;
	border-radius: 8px;
	border: none;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-bottom: 1rem;
	font-family: inherit;
}

.login-btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.login-btn:active {
	transform: translateY(0);
}

.login-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.login-footer {
	text-align: center;
	padding: 1.5rem 2rem;
	background: var(--light-gray);
	border-top: 1px solid var(--border);
}

.login-footer-text {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.login-footer-link {
	color: var(--primary);
	text-decoration: none;
	font-weight: 600;
}

.login-footer-link:hover {
	text-decoration: underline;
}

.login-error {
	background: var(--danger-light);
	color: var(--danger);
	padding: 0.75rem 1rem;
	border-radius: 6px;
	font-size: 0.875rem;
	margin-bottom: 1rem;
	border: 1px solid rgba(239, 68, 68, 0.2);
}

.login-loading {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.login-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top: 2px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

/* Icons */
.icon-dashboard::before { content: "📊"; }
.icon-clients::before { content: "👥"; }
.icon-user::before { content: "👤"; }
.icon-contracts::before { content: "📋"; }
.icon-billing::before { content: "💰"; }
.icon-materials::before { content: "📄"; }
.icon-knowledge::before { content: "💡"; }
.icon-settings::before { content: "⚙️"; }
.icon-logout::before { content: "→"; }
.icon-bell::before { content: "🔔"; }
.icon-plus::before { content: "+"; }
.icon-arrow-left::before { content: "←"; }
.icon-calendar::before { content: "📅"; }
.icon-search::before { content: "🔍"; }
.icon-filter::before { content: "⊙"; }
.icon-download::before { content: "⬇"; }
.icon-eye::before { content: "👁"; }
.icon-edit::before { content: "✎"; }
.icon-mail::before { content: "✉"; }
.icon-check::before { content: "✓"; }
.icon-x::before { content: "✗"; }
.icon-clock::before { content: "🕐"; }
.icon-file::before { content: "📄"; }
.icon-chevron-down::before { content: "▼"; }
.icon-book::before { content: "📖"; }
.icon-document::before { content: "📄"; }

/* Animations */
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

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

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

.fade-in {
	animation: fadeIn 0.3s ease;
}

.slide-in {
	animation: slideIn 0.3s ease;
}

.table .number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background-color: #e4e6eb;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

/* Pricing Tables Grid */

.pricing-tables {
	padding: 20px;
}

.pricing-tables-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.pricing-table-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.pricing-table-wrapper .table-container {
	margin-bottom: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.pricing-table-wrapper .table {
	flex: 1;
}

/* Responsive */
@media (max-width: 1024px) {
	.path-cards {
		grid-template-columns: 1fr;
	}

	.pricing-tables-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

@media (max-width: 768px) {
	.sidebar {
		display: none;
	}

	.main-content {
		padding: 1rem;
	}

	.modal-container {
		width: 95%;
	}

	.table {
		font-size: 0.75rem;
	}

	.table th,
	.table td {
		padding: 0.75rem 0.5rem;
	}

	.table-actions {
		flex-direction: column;
	}

	/* Login responsive styles */
	.login-container {
		padding: 0.5rem;
	}

	.login-card {
		border-radius: 12px;
	}

	.login-header {
		padding: 1.5rem;
	}

	.login-form {
		padding: 1.5rem;
	}

	.login-footer {
		padding: 1rem 1.5rem;
	}
}

/* TOASTS */

.toasts {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 999999999999999999999999999999999999999;
}

.toasts .toast {
	width: auto;
	border-radius: 4px;
}

.toasts .toast.show {
	animation-name: show-toast;
	animation-duration: .5s;
}

@keyframes show-toast {
	0% {
		transform: translateX(-500px);
	}
	100% {
		transform: translateX(0px);
	}
}

.toasts .toast.success {
	background-color: #53a653;
	color: #fff;
}

.toasts .toast.error {
	background-color: #e57373;
	color: #fff;
}

.toasts .toast .toast-body {
	position: relative;
}

.toasts .toast a.toast-url {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

.toasts .toast h4 {
	font-size: 14px;
	font-weight: 600;
}

.toasts .toast i {
	position: relative;
	top: 3.5px;
	padding-right: 5px;
	color: blue;
	font-size: 16px;
	line-height: 16px;
}

.installments-number {
	display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Rozliczenia*/
.commission-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.commission-table th {
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	color: var(--text-primary);
	font-weight: 600;
	padding: 0.75rem 0.5rem;
	text-align: center;
	border-bottom: 2px solid var(--border);
	white-space: nowrap;
}

.commission-table td {
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid #f1f5f9;
	border-right: 1px solid #f1f5f9;
	text-align: center;
	vertical-align: middle;
}

.commission-table td:last-child {
	border-right: none;
}

.commission-table tr:hover {
	background: #f8fafc;
}

.commission-table .range-cell {
	background: var(--warning-light);
	color: #92400e;
	font-weight: 500;
	text-align: left;
	padding-left: 1rem;
}

.commission-table .bonus-cell {
	background: linear-gradient(135deg, var(--accent-light) 0%, #dcfce7 100%);
	color: var(--accent-dark);
	font-weight: 600;
}

.commission-table .rate-cell {
	color: var(--primary);
	font-weight: 700;
	font-size: 1rem;
}

.group-info {
	margin-top: 1rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.group-card {
	padding: 1rem;
	border-radius: 8px;
	border-left: 4px solid;
}

.group-a {
	background: linear-gradient(135deg, var(--accent-light) 0%, #dcfce7 100%);
	border-left-color: var(--accent);
}

.group-b {
	background: linear-gradient(135deg, var(--warning-light) 0%, #fde68a 100%);
	border-left-color: var(--warning);
}

.group-card h4 {
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.group-a h4 {
	color: var(--accent-dark);
}

.group-b h4 {
	color: #92400e;
}

.group-card ul {
	list-style: none;
	font-size: 0.75rem;
	line-height: 1.4;
}

.group-card li {
	margin-bottom: 0.25rem;
	color: #047857;
}

.group-b li {
	color: #92400e;
}

.service {
	display: inline-block;
    font-weight: 600;
}

.iframe-container {
	height: 100vh;
}

#myIframe {
	width: 100%;
    height: 100%;
}

.document-title {
    font-weight: 600;
    color: var(--primary);
}

.contact-info,
.client-info {
	padding: 20px;
	display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info span,
.client-info span {
	padding: 5px 15px;
    background-color: #8080801a;
    font-weight: 600;
    border-radius: 5px;
}


@media (max-width: 768px) {
	.commission-table {
		font-size: 0.75rem;
	}

	.commission-table th,
	.commission-table td {
		padding: 0.5rem 0.25rem;
	}

	.group-info {
		grid-template-columns: 1fr;
	}
}


/* WINDOW */

.window {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.65);
	z-index: 10002;
	display: none;
}

.window.show {
	display: block;
	animation-name: fadeIn;
	animation-duration: 0.3s;
}

.window .window-body {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 75%;
	background: #fff;
	border-radius: 2px;
	padding: 30px 40px;
	display: none;
	max-height: 90%;
	max-width: 1680px;
	overflow-y: auto;
}

.window.window-30 .window-body {
	width: 30%;
}

.window.window-50 .window-body {
	width: 50%;
}

.window.window-full .window-body {
	width: 98%;
	min-height: 98%;
	max-height: 98%;
	overflow: auto;
	height: 98%;
	padding: 20px 30px;
}

.window.show .window-body {
	display: block;
	animation-name: show-window-body;
	animation-duration: 0.3s;
	transform: translate(-50%, -50%);
}

@keyframes show-window-body {
	0% {
		top: 200%;
	}
	100% {
		top: 50%;
	}
}

.window .window-close {
	width: 30px;
	height: 30px;
	position: absolute;
	right: 30px;
	top: 20px;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid #999;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
}

.window .window-close i {
	position: relative;
	top: 1px;
	font-size: 14px;
	line-height: 14px;
	color: #999;
	transition: 0.1s;
}

.window .window-body .window-close:hover i {
	color: #000;
}

.window .window-body h1 {
	font-size: 20px;
	margin-bottom: 20px;
	color: #000;
	font-weight: 700;
}

.window .window-body h3 {
	font-size: 16px;
	color: #000;
	font-weight: 600;
}

.window-button-center {
	display: flex;
    justify-content: center;
}

 /* Chat Widget Styles */
.chat-widget {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 380px;
	height: 670px;
	background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
	border-radius: 20px;
	box-shadow: 0 15px 35px rgba(102, 126, 234, 0.25), 0 5px 15px rgba(0, 0, 0, 0.1);
	display: none;
	flex-direction: column;
	z-index: 10000;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	overflow: hidden;
}

.chat-widget.open {
	display: flex;
}

/* Chat Toggle Button */
.chat-toggle {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 65px;
	height: 65px;
	background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
	border: none;
	border-radius: 50%;
	color: white;
	cursor: pointer;
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.chat-toggle:hover {
	background: linear-gradient(135deg, #5a67d8 0%, var(--primary) 100%);
	transform: scale(1.1) rotate(5deg);
	box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6), 0 6px 20px rgba(0, 0, 0, 0.15);
}


/* Chat Header */
.chat-header {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
	color: #2d3748;
	padding: 20px;
	border-radius: 20px 20px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.chat-header-left h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.chat-status {
	font-size: 13px;
	opacity: 0.8;
	font-weight: 500;
}

.chat-close-btn {
	background: rgba(118, 75, 162, 0.1);
	border: none;
	color: #764ba2;
	font-size: 16px;
	cursor: pointer;
	padding: 8px;
	border-radius: 12px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.7;
	transition: all 0.3s ease;
	font-weight: bold;
}

.chat-close-btn:hover {
	background: rgba(118, 75, 162, 0.2);
	opacity: 1;
	transform: scale(1.1);
}

.chat-status.online {
	color: var(--accent);
}

.chat-status.offline {
	color: #ed8936;
}

/* Chat Messages Container */
.chat-messages {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
	min-height: 320px;
	backdrop-filter: blur(10px);
}

.chat-message {
	margin-bottom: 15px;
	display: flex;
	align-items: flex-end;
	gap: 10px;
}

.chat-message.user {
	flex-direction: row-reverse;
	justify-content: flex-start;
	align-items: flex-end;
}
.chat-message.other {
	flex-direction: row;
	justify-content: flex-start;
}

.chat-message.support.user .message-wrapper {
	align-items: flex-end;
}

/* Avatar styles */
.message-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: bold;
	color: white;
	flex-shrink: 0;
	text-transform: uppercase;
}

.chat-message.user .message-avatar {
	background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
}

.chat-message.other .message-avatar {
	background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
}

.chat-message.support .message-avatar {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.message-content {
	max-width: 70%;
	padding: 12px 16px;
	border-radius: 18px;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	backdrop-filter: blur(5px);
	word-wrap: break-word;
	word-break: break-word;
	overflow-wrap: break-word;
	position: relative;
}

.chat-message.support .message-content {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 245, 251, 0.9) 100%);
	color: #2d3748;
	border: 1px solid rgba(102, 126, 234, 0.1);
	border-radius: 18px 18px 18px 4px;
}

.chat-message.user .message-content {
	background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
	border-radius: 18px 18px 4px 18px;
}

.chat-message.other .message-content {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
	border-radius: 18px 18px 18px 4px;
}

.message-wrapper {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.chat-message.user .message-wrapper {
	align-items: flex-end;
}

.chat-message.other .message-wrapper,
.chat-message.support .message-wrapper {
	align-items: flex-start;
}

.message-time {
	font-size: 10px;
    color: #ffff;
    padding: 5px 0 0 0;
    flex-wrap: nowrap;
    display: flex;
    width: 170px;
}

.message-sender {
	font-size: 10px;
	color: #9ca3af;
	font-weight: 500;
	padding: 0 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Chat Input */
.chat-input-container {
	padding: 15px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
	border-radius: 0 0 20px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
}

.chat-input-form {
	display: flex;
	gap: 12px;
	align-items: center;
}

.chat-input {
	flex: 1;
	padding: 12px 18px;
	border: 2px solid rgba(37, 99, 235, 0.2);
	border-radius: 25px;
	outline: none;
	font-size: 14px;
	resize: none;
	height: 60px;
	line-height: 20px;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(5px);
	transition: all 0.3s ease;
	overflow-y: auto;
}

.chat-input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
	background: rgba(255, 255, 255, 0.95);
}

.chat-send-btn {
	background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
	font-size: 16px;
	margin-bottom: 0;
}

.chat-send-btn:hover {
	background: linear-gradient(135deg, #5a67d8 0%, var(--primary) 100%);
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.chat-send-btn:disabled {
	background: linear-gradient(135deg, #a0aec0 0%, #9ca3af 100%);
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Offline Notice */
.offline-notice {
	background: linear-gradient(135deg, rgba(255, 243, 205, 0.9) 0%, rgba(255, 234, 167, 0.9) 100%);
	border: 1px solid rgba(255, 193, 7, 0.3);
	border-radius: 15px;
	padding: 15px;
	margin: 15px 20px;
	text-align: center;
	font-size: 13px;
	color: #8b6f00;
	backdrop-filter: blur(5px);
	box-shadow: 0 2px 10px rgba(255, 193, 7, 0.1);
}

/* Typing Indicator */
.typing-indicator {
	display: none;
	padding: 10px 20px;
	font-style: italic;
	color: #718096;
	font-size: 13px;
	animation: pulse 2s infinite;
}

.typing-indicator.active {
	display: block;
}

/* Responsive */
@media (max-width: 768px) {
	.chat-widget {
		width: calc(100vw - 20px);
		height: calc(100vh - 40px);
		bottom: 10px;
		right: 10px;
		left: 10px;
		border-radius: 15px;
	}

	.chat-toggle {
		bottom: 15px;
		right: 15px;
		width: 60px;
		height: 60px;
		font-size: 24px;
	}

	.chat-header {
		padding: 15px;
		border-radius: 15px 15px 0 0;
	}

	.chat-header-left h3 {
		font-size: 16px;
	}

	.chat-input-container {
		padding: 15px;
	}

	.chat-input {
		padding: 10px 15px;
		font-size: 16px; /* Prevents zoom on iOS */
	}

	.chat-send-btn {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 480px) {
	.message-content {
		max-width: 90%;
		font-size: 14px;
	}

	.chat-messages {
		padding: 15px;
	}

	.offline-notice {
		margin: 10px 15px;
		padding: 12px;
	}
}
/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
	width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
	border-radius: 3px;
	transition: all 0.3s ease;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #5a67d8 0%, var(--primary) 100%);
}

.chat-widget.open {
	animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-message {
	animation: fadeInUp 0.3s ease;
}

/* Hover Effects */
.chat-message:hover .message-content {
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chat-input:hover {
	border-color: rgba(102, 126, 234, 0.4);
	background: rgba(255, 255, 255, 0.9);
}

/* Chat Tooltip */
.chat-tooltip {
	position: fixed;
	bottom: 95px;
	right: 20px;
	background: rgba(255, 255, 255, 0.95);
	color: #4a5568;
	padding: 12px 16px;
	border-radius: 15px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
	z-index: 10002;
	animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	cursor: pointer;
	max-width: 200px;
	text-align: center;
	border: 1px solid rgba(200, 200, 200, 0.3);
	backdrop-filter: blur(10px);
}

.chat-tooltip::after {
	content: '';
	position: absolute;
	bottom: -8px;
	right: 22px;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid rgba(255, 255, 255, 0.95);
}

.chat-tooltip.hidden {
	display: none;
}

@keyframes bounceIn {
	0% {
		opacity: 0;
		transform: scale(0.3) translateY(10px);
	}
	50% {
		opacity: 1;
		transform: scale(1.05) translateY(-5px);
	}
	70% {
		transform: scale(0.9) translateY(0);
	}
	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* Responsive tooltip */
@media (max-width: 768px) {
	.chat-tooltip {
		bottom: 85px;
		right: 15px;
		max-width: calc(100vw - 120px);
		font-size: 13px;
		padding: 10px 14px;
	}

	.chat-tooltip::after {
		right: 20px;
	}
}


/* POSTS */

.posts-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.posts-list .item {
	background-color: #fff;
	padding: 15px;
}

.posts-list .item .item-header {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	justify-content: space-between;
}

.posts-list .item .item-header .post-author {
	display: flex;
	align-items: center;
}

.posts-list .item .item-header .user-info h4 {
	font-size: 14px;
	font-weight: 600;
	margin: 2px;
}

.posts-list .item .item-header .user-info {
	flex-direction: column;
    gap: 0px;
	align-items: start;
}

.posts-list .item .item-header .user-info span.date {
	font-size: 13px;
	color: #999;
}

.posts-list .item .user-avatar {
	width: 44px;
	height: 44px;
	border-radius: 100%;
	margin-right: 15px;
}

.posts-list .item .user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 100%;
}

.posts-list .item td {
	border: 1px solid #ccc;
	padding: 5px;
}

.post-reply .form-textarea {
	margin-top: 15px;
}

.post-reply .form-end {
	justify-content: center;
    display: flex;
    margin-top: 10px;
}

.download-list-container a {
	font-weight: 600;
}

.header i {
	margin-right: 15px;
}



