:root {
	--primary: #007BFF;
	--primary-dark: #0056b3;
	--primary-light: #e6f2ff;
	--secondary: #f4f4f4;
	--secondary-dark: #e8e8e8;
	--accent: #28a745;
	--accent-light: #e6f7ec;
	--accent-dark: #1e7e34;
	--light: #ffffff;
	--dark: #333333;
	--gray: #6c757d;
	--light-gray: #f8f9fa;
	--border: #dee2e6;
	--danger: #dc3545;
	--success: #28a745;
	--warning: #ffc107;
	--info: #17a2b8;
	--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	--shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
	--border-radius: 12px;
}

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

body {
	font-family: 'Open Sans', sans-serif;
	background-color: var(--secondary);
	color: var(--dark);
	line-height: 1.6;
}

.mt20 {
	margin-top: 20px!important;
}

.mb20 {
	margin-bottom: 20px!important;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	margin-bottom: 0px;
}

a {
	text-decoration: blink;
}

.clickable-href  {
	cursor: pointer;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.login-container {
	max-width: 400px;
	margin: 100px auto;
	padding: 30px;
	background-color: var(--light);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
	text-align: center;
	margin-bottom: 30px;
	color: var(--primary);
}

.form-space,
.form-group {
	margin-bottom: 20px;
}

.form-space label,
.form-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
}

.form-space textarea,
.form-space select,
.form-space input,
.form-control {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid var(--border);
	border-radius: 4px;
	transition: border-color 0.3s;
}

.form-space input:focus,
.form-control:focus {
	border-color: var(--primary);
	outline: none;
}

.btn {
	display: inline-block;
	font-weight: 500;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	user-select: none;
	padding: 10px 20px;
	font-size: 14px;
	border-radius: 4px;
	transition: all 0.2s;
	cursor: pointer;
	border: none;
}

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

.btn-primary:hover {
	background-color: var(--primary-dark);
}

.btn-success {
	background-color: var(--success);
	color: var(--light);
}

.btn-success:hover {
	background-color: #218838;
}

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

.btn-small {
	padding: 5px 10px;
}

.btn-danger:hover {
	background-color: #c82333;
}

.btn-block {
	display: block;
	width: 100%;
}

.text-center {
	text-align: center;
}

.header {
	background-color: var(--light);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 15px 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header-logo {
	display: flex;
	align-items: center;
}

.header-logo h1 {
	font-size: 24px;
	margin-left: 10px;
	color: var(--primary);
}

.user-avatar {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background-color: var(--primary-light);
	color: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 10px;
	font-size: 15px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.user-avatar::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 25px;
	height: 25px;
	background-color: rgba(0, 0, 0, 0.05);
	border-radius: 50%;
}

.header-user {
	display: flex;
	align-items: center;
}

/* Ulepszony styl dla nawigacji */
.navbar {
	background-color: var(--light);
	border-bottom: 1px solid var(--border);
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-nav {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-item {
	position: relative;
}

.nav-link {
	display: block;
	padding: 15px 20px;
	color: var(--dark);
	text-decoration: none;
	transition: all 0.3s ease;
	font-weight: 500;
	font-size: 16px;
	border-bottom: 3px solid transparent;
	text-align: center;
}

.nav-link:hover {
	color: var(--primary);
	background-color: rgba(0,123,255,0.05);
}

.nav-link.active {
	color: var(--primary);
	border-bottom: 3px solid var(--primary);
	font-weight: 600;
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	min-width: 200px;
	background-color: var(--light);
	border: 1px solid var(--border);
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
}

.nav-item:hover .dropdown-menu {
	display: block;
}

.dropdown-item {
	display: block;
	padding: 8px 15px;
	color: var(--dark);
	text-decoration: none;
	transition: background-color 0.3s;
}

.dropdown-item:hover {
	background-color: var(--secondary);
}

.main {
	padding: 30px 0;
}

.card {
	background-color: var(--light);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
	overflow: hidden;
}

.card-header {
	padding: 15px 20px;
	background-color: var(--light);
	border-bottom: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.card-header .action-buttons {
	display: flex;
	gap: 10px;
}

.card-header h2 .offer-type {
	font-size: 20px;
	color: #dc3545;
}

.card-body {
	padding: 20px;
}

.card-footer {
	padding: 15px 20px;
	background-color: var(--light-gray);
	border-top: 1px solid var(--border);
}

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

.table th, .table td {
	padding: 12px 10px;
	text-align: left;
	border-bottom: 1px solid var(--border);
}

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

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

.badge {
	display: inline-block;
	padding: 4px 8px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 50px;
	text-align: center;
}

.badge-primary {
	background-color: var(--primary);
	color: var(--light);
}

.badge-success {
	background-color: var(--success);
	color: var(--light);
}

.badge-warning {
	background-color: var(--warning);
	color: var(--dark);
}

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

.alert {
	padding: 12px 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.alert-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.alert-danger {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.alert-warning {
	background-color: #fff3cd;
	color: #856404;
	border: 1px solid #ffeeba;
}

.alert-info {
	background-color: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1050;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
	background-color: var(--light);
	margin: 10% auto;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
	width: 80%;
	max-width: 600px;
	animation: modalopen 0.3s;
}

@keyframes modalopen {
	from {opacity: 0; transform: translateY(-60px);}
	to {opacity: 1; transform: translateY(0);}
}

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

.modal-title {
	margin: 0;
}

.modal-close {
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	color: var(--gray);
}

.modal-body {
	padding: 15px 0;
}

.modal-footer {
	padding-top: 15px;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.tabs {
	display: flex;
	border-bottom: 1px solid var(--border);
	margin-bottom: 20px;
}

.tab {
	padding: 10px 20px;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: all 0.3s;
}

.tab.active {
	border-bottom: 2px solid var(--primary);
	color: var(--primary);
	font-weight: 600;
}

.tab-content {
	display: none;
}

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

.notification {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: var(--success);
	color: var(--light);
	padding: 15px 20px;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	animation: slideIn 0.3s, fadeOut 0.5s 2.5s forwards;
	z-index: 1000;
}

@keyframes slideIn {
	from {transform: translateX(100%);}
	to {transform: translateX(0);}
}

@keyframes fadeOut {
	from {opacity: 1;}
	to {opacity: 0;}
}

.form-row {
	display: flex;
	flex-wrap: wrap;
	margin-right: -10px;
	margin-left: -10px;
	row-gap: 10px;
}

.form-col {
	padding-right: 10px;
	padding-left: 10px;
	flex: 1;
	min-width: 0;
}

.form-col-6 {
	flex: 0 0 50%;
	max-width: 50%;
	padding-right: 10px;
	padding-left: 10px;
}

.form-col-4 {
	flex: 0 0 33.333333%;
	max-width: 33.333333%;
	padding-right: 10px;
	padding-left: 10px;
}

.form-col-3 {
	flex: 0 0 25%;
	max-width: 25%;
	padding-right: 10px;
	padding-left: 10px;
}

.form-check {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.form-check-input {
	margin-right: 10px;
}

/* Nowy, zmodernizowany styl dla kart nieruchomości */
.property-card {
	display: flex;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
	margin-bottom: 24px;
	background-color: var(--light);
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
	position: relative;
}

.property-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-hover);
}

.property-image {
	flex: 0 0 260px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--light);
	font-size: 72px;
	position: relative;
}

.property-image-apartment {
	background: linear-gradient(135deg, #007bff, #00c6ff);
}

.property-image-house {
	background: linear-gradient(135deg, #28a745, #43e97b);
}

.property-image-land {
	background: linear-gradient(135deg, #ff9a00, #ff5e62);
}

.property-image-shadow {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.1);
	z-index: 1;
}

.property-image i {
	position: relative;
	z-index: 2;
}

.property-type-label {
	position: absolute;
	bottom: 15px;
	left: 15px;
	background-color: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	z-index: 2;
}

.property-content {
	flex: 1;
	padding: 25px 30px;
	display: flex;
	flex-direction: column;
	position: relative;
}

.property-header {
	margin-bottom: 16px;
}

.small-title,
.property-title {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--dark);
}

.small-title {
	margin-bottom: 0px;
}

.property-price {
	font-size: 24px;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 20px;
}

.client-details,
.property-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 10px;
}

.property-detail {
	display: flex;
	align-items: center;
	font-size: 15px;
}

.property-detail i {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--primary-light);
	color: var(--primary);
	border-radius: 50%;
	margin-right: 12px;
	font-size: 14px;
}

.property-detail span {
	color: var(--dark);
}

.client-agent,
.property-agent {
	color: var(--gray);
	display: flex;
	align-items: center;
	margin-top: 20px;
	margin-bottom: 20px;
}

.client-agent {
	border-top: 1px var(--border) solid;
    padding-top: 10px;
	margin-bottom: 0px;
}

.client-agent i,
.property-agent i {
	margin-right: 10px;
	color: var(--primary);
	margin-bottom: 1px;
}

.activity-log {
	background-color: var(--light-gray);
	border-radius: 8px;
	padding: 15px;
}

.activity-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 12px;
	color: var(--dark);
	display: flex;
	align-items: center;
}

.activity-title i {
	margin-right: 8px;
	color: var(--primary);
}

.activity-item {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	padding: 10px;
	background-color: var(--light);
	border-radius: 8px;
	border-left: 3px solid transparent;
}

.activity-item:last-child {
	margin-bottom: 0;
}

.activity-item.view {
	border-left-color: var(--info);
}

.activity-item.pdf {
	border-left-color: var(--danger);
}

.activity-item.interest {
	border-left-color: var(--accent);
}

.activity-icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	margin-right: 12px;
	flex-shrink: 0;
}

.activity-icon.view {
	background-color: var(--info);
	color: white;
}

.activity-icon.pdf {
	background-color: var(--danger);
	color: white;
}

.activity-icon.interest {
	background-color: var(--accent);
	color: white;
}

.activity-content {
	flex: 1;
	line-height: 1.4;
}

.activity-content strong {
	font-weight: 600;
}

.activity-time {
	color: var(--gray);
	font-size: 13px;
	white-space: nowrap;
	margin-left: 15px;
}

.property-actions {
	position: absolute;
	top: 25px;
	right: 30px;
	display: flex;
	gap: 10px;
}

.action-button {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
	color: white;
}

.action-button:hover {
	transform: scale(1.1);
}

.action-button.interest {
	background-color: var(--accent);
}

.action-button.interest:hover {
	background-color: var(--accent-dark);
}

.action-button.pdf {
	background-color: var(--primary);
}

.action-button.pdf:hover {
	background-color: var(--primary-dark);
}

.action-button.details {
	background-color: var(--dark);
}

.action-button.details:hover {
	background-color: black;
}

.search-filters {
	padding: 15px;
	background-color: var(--light);
	border-radius: 8px;
	margin-bottom: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.notification-bell {
	position: relative;
	cursor: pointer;
}

.notification-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background-color: var(--danger);
	color: var(--light);
	font-size: 10px;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.notification-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	width: 300px;
	background-color: var(--light);
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	display: none;
	z-index: 1000;
}

.notification-header {
	padding: 10px 15px;
	border-bottom: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.notification-list {
	max-height: 300px;
	overflow-y: auto;
}

.notification-item {
	padding: 10px 15px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: flex-start;
}

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

.notification-icon {
	margin-right: 10px;
	padding: 8px;
	border-radius: 50%;
	color: var(--light);
}

.notification-content {
	flex: 1;
}

.notification-title {
	font-weight: 600;
	font-size: 14px;
}

.notification-text {
	font-size: 13px;
	color: var(--gray);
}

.notification-time {
	font-size: 12px;
	color: var(--gray);
	margin-top: 3px;
}

/* Podstawowe informacje */

.info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.info-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.info-item.client-description .info-value,
.info-item.estate-description .info-value {
	font-size: .9rem;
}

.info-item.estate-description {
	display: flex;
	flex-direction: column;
	gap: 5px;
	border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.info-label {
	font-weight: 600;
	color: #666;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.info-value {
	font-size: 1.1rem;
	color: #333;
	font-weight: 700;
}

.price {
	font-size: 2rem;
	font-weight: 700;
	background: linear-gradient(135deg, #667eea, #764ba2);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.status {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: center;
    margin-top: 10px;
}

.status.active {
	background: linear-gradient(135deg, #4CAF50, #45a049);
	color: white;
}

.status.pending {
	background: linear-gradient(135deg, #FF9800, #F57C00);
	color: white;
}

.full-width {
	grid-column: 1 / -1;
}

/* Historia aktywności */
.timeline {
	position: relative;
	padding-left: 30px;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 15px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(135deg, #667eea, #764ba2);
}

.timeline-item {
	position: relative;
	margin-bottom: 25px;
	background: rgba(102, 126, 234, 0.05);
	padding: 15px 20px;
	border-radius: 12px;
	border-left: 3px solid #667eea;
}

.timeline-item::before {
	content: '';
    position: absolute;
    left: -37px;
    top: 42%;
    width: 15px;
    height: 15px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid white;
}

.timeline-author {
	font-size: 0.9rem;
	color: #00000;
	font-weight: 600;
}

.timeline-date {
	font-size: 0.9rem;
	color: #666;
	font-weight: 600;
}

.timeline-content {
	margin-top: 5px;
	color: #333;
	line-height: 1.5;
}

/* team discussion */

.discussion-item {
	background: rgba(102, 126, 234, 0.05);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 15px;
	border-left: 4px solid #667eea;
}

.discussion-header {
	display: flex;
	justify-content: between;
	align-items: center;
	margin-bottom: 10px;
}

.discussion-author {
	font-size: 0.9rem;
	color: #00000;
	font-weight: 600;
}

.discussion-date {
	font-size: 0.9rem;
	color: #666;
	font-weight: 600;
}

.discussion-content {
	color: #555;
	line-height: 1.6;
}

.post-form {
	border-radius: 12px;
	padding: 20px;
}

/* Responsywność */
@media (max-width: 991px) {
	.stats-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
	
	.form-col, .form-col-6, .form-col-4, .form-col-3 {
		flex: 0 0 50%;
		max-width: 50%;
		margin-bottom: 15px;
	}
	
	.modal-content {
		width: 95%;
		margin: 5% auto;
		max-height: 90vh;
		overflow-y: auto;
	}
}

@media (max-width: 768px) {
	.form-col, .form-col-6, .form-col-4, .form-col-3 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.property-card {
		flex-direction: column;
	}

	.property-image {
		height: 180px;
		flex: none;
		width: 100%;
	}

	.property-content {
		padding: 20px;
	}

	.property-actions {
		position: relative;
		top: auto;
		right: auto;
		margin-top: 20px;
		justify-content: flex-end;
	}

	.property-details {
		grid-template-columns: 1fr;
	}

	.header-content {
		flex-direction: column;
		text-align: center;
	}

	.header-logo, .header-user {
		margin-bottom: 10px;
	}
	
	.header-user {
		width: 100%;
		justify-content: center;
	}
	
	.notification-dropdown {
		right: -100px;
	}

	.navbar-nav {
		flex-direction: column;
	}

	.dropdown-menu {
		position: static;
		width: 100%;
		box-shadow: none;
		border: none;
	}

	.nav-item:hover .dropdown-menu {
		display: none;
	}
	
	.nav-link {
		text-align: left;
		padding: 12px 15px;
	}
	
	.table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
	
	.table th, .table td {
		min-width: 120px;
	}
	
	.card-header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.card-header h2 {
		margin-bottom: 15px;
	}
	
	.card-header div {
		display: flex;
		width: 100%;
	}
	
	.card-header .btn {
		flex: 1;
	}
}

@media (max-width: 576px) {
	.header-logo h1 {
		font-size: 20px;
	}
	
	.property-title {
		font-size: 18px;
	}
	
	.property-price {
		font-size: 20px;
	}
	
	.modal-header {
		padding-bottom: 10px;
	}
	
	.modal-title {
		font-size: 18px;
	}
	
	.tabs {
		flex-wrap: wrap;
	}
	
	.tab {
		flex: 0 0 50%;
		text-align: center;
		padding: 10px;
		border-bottom: 1px solid var(--border);
	}
	
	.tab.active {
		border-bottom: 2px solid var(--primary);
	}
	
	.activity-item {
		flex-wrap: wrap;
	}
	
	.activity-time {
		width: 100%;
		text-align: left;
		margin-left: 48px;
		margin-top: 5px;
	}
	
	/* Poprawka dla formularza kryteriów dopasowań na małych ekranach */
	.range-container {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.range-container .range-value {
		margin-left: 0;
		margin-top: 5px;
	}
	
	/* Zwiększenie przycisków dotykowych na mobilnych urządzeniach */
	.btn {
		padding: 12px 20px;
		font-size: 16px;
	}
	
	.action-button {
		width: 48px;
		height: 48px;
	}
	
	/* Fixed bottom navigation bar dla mobilnych urządzeń */
	.mobile-nav {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background-color: var(--light);
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
		z-index: 1000;
	}
	
	.mobile-nav a {
		flex: 1;
		text-align: center;
		padding: 10px;
		color: var(--gray);
		text-decoration: none;
		font-size: 12px;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.mobile-nav a i {
		font-size: 20px;
		margin-bottom: 4px;
	}
	
	.mobile-nav a.active {
		color: var(--primary);
	}
	
	/* Dodaj padding na dole dla content, żeby zrobić miejsce dla mobile nav */
	.main {
		padding-bottom: 70px;
	}
}

/* Specific page styles */
#dashboardPage .stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

#dashboardPage .stat-card {
	background-color: var(--light);
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	display: flex;
	align-items: center;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	color: inherit;
}

#dashboardPage .stat-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-hover);
	background-color: var(--light-gray);
}

#dashboardPage .stat-icon {
	width: 50px;
	height: 50px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 15px;
	font-size: 24px;
	transition: transform 0.3s ease;
}

#dashboardPage .stat-card:hover .stat-icon {
	transform: scale(1.1);
}

#dashboardPage .stat-info h3 {
	font-size: 24px;
	margin-bottom: 5px;
}

#dashboardPage .stat-info p {
	color: var(--gray);
	margin: 0;
}

.range-container {
	display: flex;
	align-items: center;
}

.range-container input[type=range] {
	flex: 1;
}

.range-container .range-value {
	margin-left: 10px;
	min-width: 30px;
	text-align: center;
	font-weight: 600;
}

.my-4 {
	margin-top: 20px;
	margin-bottom: 20px;
}

.activity-timeline {
	margin-top: 20px;
}

.activity-date {
	margin: 20px 0 10px;
	padding-bottom: 5px;
	border-bottom: 1px solid var(--border);
}

.activity-date h4 {
	margin: 0;
	color: var(--gray);
	font-weight: 600;
}

.activity-list {
	margin-left: 10px;
}

.activity-list .activity-item {
	margin-bottom: 15px;
	padding: 15px;
	background-color: var(--light);
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.activity-user {
	margin-bottom: 5px;
}

.activity-meta {
	font-size: 12px;
	color: var(--gray);
}

.activity-list .activity-item {
	display: flex;
	align-items: center;
}

.activity-list .activity-time {
	margin-left: auto;
	white-space: nowrap;
	color: var(--gray);
	font-size: 14px;
}

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-gray { color: var(--gray); }

.bg-light { background-color: var(--light); }
.bg-primary { background-color: var(--primary); color: var(--light); }
.bg-success { background-color: var(--success); color: var(--light); }
.bg-danger { background-color: var(--danger); color: var(--light); }
.bg-warning { background-color: var(--warning); }
.bg-info { background-color: var(--info); color: var(--light); }
.bg-gray { background-color: var(--gray); color: var(--light); }

.ml-2 { margin-left: 10px; }
.mr-2 { margin-right: 10px; }
.mt-3 { margin-top: 15px; }
.mb-3 { margin-bottom: 15px; }
.p-3 { padding: 15px; }

/* Dodatkowe style dla głównej nawigacji */
.main-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	background-color: #fff;
	border-bottom: 1px solid #eee;
}

.main-nav a {
	display: block;
	padding: 15px 25px;
	color: #333;
	text-decoration: none;
	font-weight: 500;
	font-size: 16px;
	position: relative;
	transition: all 0.3s;
}

.main-nav a:hover {
	color: var(--primary);
}

.main-nav a.active {
	color: var(--primary);
}

.main-nav a.active:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: var(--primary);
}

.auth .step.show {
	display: block;
	animation-name: step-show;
	animation-duration: 1s;
	animation-fill-mode: forwards;
	right: 0px;
}

@keyframes step-show {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

.auth .step.hide {
	display: none;
	animation-name: step-hide;
	animation-duration: 1s;
	animation-fill-mode: forwards;
}

@keyframes step-hide {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}


/* WINDOW */

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

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

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

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

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

.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: .3s;
	transform: translate(-50%, -50%);
}

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

.window .window-body .window-close {
	position: absolute;
	right: 10px;
	top: 10px;
	font-weight: 600;
	cursor: pointer;
	width: 26px;
	height: 26px;
	border-radius: 4px;
	background-color: #f6f6f6;
    color: rgb(23, 116, 226);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: .2s;
}

.window .window-body .window-close:hover {
	background-color: #f1f1f1;
}

.window .window-body .window-close i {
	font-size: 28px;
	transition: .1s;
}

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

.window .window-body h3 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 20px;
	font-weight: 700;
	color: #001b47;
}

.window .window-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #001b47;
}


/* PAGINATION */

.pagination {
	display: flex;
	align-items: center;
	text-align: center;
	flex-wrap: wrap;
	gap: 5px;
}

.pagination a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 5px;
	border: 1px solid #ddd;
	border-radius: 1px;
	background-color: #fff;
	font-size: 12px;
	line-height: 12px;
	text-transform: uppercase;
	font-weight: 600;
}

.pagination li.active a {
	background-color: #e7f3ff;
	color: #3086f3;
}

.pagination a.current {
	color: #3086f3;
	background: #e7f3ff;
}

/* DROPDOWN W TOPBAR */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.header-user {
    position: relative;
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

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

.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 300px;
    z-index: 1000;
}

.notification-dropdown.show {
    display: block;
}

/* TOASTS */

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

.toasts .toast {
	width: auto;
	border-radius: 10px;
	background-color: #fff;
}

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

.estate-image {
	width: 100%;
    overflow: hidden;
}

.estate-image img {
	width: 100%;
}

.property-card .estate-list-photo {
	max-width: 23%;
	overflow: hidden;
}

.property-card .estate-list-photo img {
	width: 100%;
    height: 100%;
	object-fit: cover;
    object-position: center;
}

.scroll-history-card {
	max-height: 700px;
	overflow: auto;
}

.scroll-post-card {
	max-height: 409px;
	overflow: auto;
}

 .checkbox-container {
	max-height: 200px;
	overflow-y: auto;
	border: 1px solid #ddd;
	padding: 10px;
	background: #f9f9f9;
}
.checkbox-item {
	margin-bottom: 5px;
}
.checkbox-item input[type="checkbox"] {
	margin-right: 8px;
}
.checkbox-item label {
	cursor: pointer;
	font-weight: normal;
}

.district-list {
	font-size: 13px;
    line-height: 15px;
    color: var(--gray);
}

.system-info {
	padding-top: 50px;
}

.editor-container {
	border: 1px solid #ccc;
	padding: 10px;
	min-height: 200px;
	background: white;
}

.user-info {
	display: flex;
    align-items: center;
}

.search {
	display: block;
}

.header-info-search {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
}

@media (min-width: 0px) and (max-width: 991px) {
	
	.btn {
		padding: 7px 10px;
	}
	
	.window.window-50 .window-body {
		width: 90%;
	}
	
	.action-buttons a,
	.back-buttons a {
		margin-bottom: 10px;
	}
	
	.property-card .estate-list-photo {
		max-width: 100%;
	}
	
	.main {
		padding: 0px;
	}
	
	.system-info {
		padding-top: 20px;
	}
	
}
