* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: #f5f7fa;
	color: #333;
	line-height: 1.6;
}

.account-container {
	display: flex;
	min-height: 100vh;
}

/* Боковая панель */
.sidebar {
	width: 280px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 30px 20px;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.user-profile {
	text-align: center;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.3);
	object-fit: cover;
}

.username {
	margin-top: 15px;
	font-size: 1.2rem;
	font-weight: 600;
}

.user-email {
	font-size: 0.9rem;
	opacity: 0.8;
}

.main-nav {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nav-link {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	padding: 12px 15px;
	border-radius: 8px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
	background: rgba(255, 255, 255, 0.1);
	color: white;
}

/* Основной контент */
.content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 2rem;
  color: #2d3748;
}

.status-indicator {
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 600;
}

.status-indicator.active {
	background: #48bb78;
	color: white;
}
.status-indicator.noactive {
	background: red;
	color: white;
}



/* Карточки дашборда */
.dashboard-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.card {
	background: white;
	padding: 25px;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
}

.right-btn {
	position: absolute;
	text-decoration: none;
	color: #000;
	background-color: rgba(232, 178, 90, 1);
	border-radius: 8px 0 0 8px;
	padding: 4px 10px; 
	top: 15px;
	right: 0px;
	-webkit-box-shadow: -5px -5px 5px -5px rgba(34, 60, 80, 0.6);
	-moz-box-shadow: -5px -5px 5px -5px rgba(34, 60, 80, 0.6);
	box-shadow: -5px -5px 5px -5px rgba(34, 60, 80, 0.6);
	font-weight: bold;
}

.right-btn:hover {
	background-color: rgba(196, 143, 57, 1);
}

.back_modal {
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,0.4); 
	backdrop-filter: blur(10px);
	width: 100%;
	height: 100vh;
}

.block_modal {
	width: 95%; 
	min-height: 100px;
	background-color: #fff;
	color: #000;
	padding: 25px 40px;
	border-radius: 16px;
	border: 2px solid #000;
	margin: auto auto;

}



.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
	color: #718096;
	font-size: 0.9rem;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.balance {
	font-size: 1.8rem;
	font-weight: bold;
	color: #2d3748;
}

.forbutton {
	text-align: center;
	margin-top: 15px;
}

.morebutton {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	text-decoration: none;
	background-color: #ffbe54;
	color: #000;
	font-size: 15px;
	font-weight: bold;
	padding: 7px 18px;
	margin: 0px 4px;
	border-radius: 14px;
	border: 1px solid #000;
	outline: none;
	box-shadow: none;
	cursor: pointer;
	line-height: 1.4;
}

.toppanel {
	width: 100%;
	text-align: right;
	margin: 0 0 15px 0;
}

.personal {
	width: 100%;
	padding: 15px 20px;
	background: white;
	border-radius: 8px;
	margin-bottom: 10px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.personal table {
	width: 100%;
}

.personal tr {
	border-bottom: 1px dotted #888;
}
.personal td {
	padding: 1px 4px;
	width: 50%;
}
.p-name {
	text-align: left;
	border-bottom: 1px dotted #888;
}
.p-value {
	text-align: right;
	border-bottom: 1px dotted #888;
}

.recent-activity h2 {
	margin-bottom: 20px;
	color: #2d3748;
}

.activity-list {
	list-style: none;
}

.activity-item {
	display: flex;
	justify-content: space-between;
	padding: 15px 20px;
	background: white;
	border-radius: 8px;
	margin-bottom: 10px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.activity-desc {
  color: #4a5568;
}

.activity-amount {
  font-weight: 600;
}

.activity-amount:contains('+') {
  color: #48bb78;
}

.activity-amount:contains('-') {
  color: #e53e3e;
}

/* Адаптивность */
@media (max-width: 768px) {
  .account-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 20px;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }
}


.auth-body {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}
.auth-body-img {
	background-image: url("../../images/background.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
	width: 100%;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.auth-container {
	width: 100%;
	max-width: 400px;
	padding: 20px;
	margin: auto auto;
}

.auth-logo {
	width: 80%;
}

.auth-form {
	background: white;
	padding: 40px;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	animation: fadeIn 0.5s ease-out;
}

.auth-btn {
	width: 100%;
	font-weight: bold;
	background-color: rgba(217, 181, 0, 0.7);
	padding: 10px 15px;
	text-align: center;
	border: 1px solid #888;
	text-decoration: none;
	color: #000;
}

.auth-btn:hover {
	background-color: rgba(217, 181, 0, 1);
}

.maintable {
	display: flex; 
	flex-direction: column;
	margin-top: 10px;
}

blockquote {
	width: 100%;
	padding: 10px;
	border: 2px solid blue;

}

a {
	text-decoration: none;
	color: #000;
}

.table {
	display: flex; 
	flex-direction: row; 
	flex-wrap: wrap; 
	width: 100%; 
	padding: 3px 5px;
}

.table div { padding: 0px 3px; }



.tablwheader {
	background-color: rgba(255, 179, 112, 0.55);
	display: flex; 
	flex-direction: row; 
	flex-wrap: wrap; 
	width: 100%; 
	padding: 2px;
	text-align: center;
	border-bottom: 2px  solid #000;
	font-weight: bold;
}


.table:nth-child(odd){
	background: #fff;
}
.table:nth-child(even){
	background: rgba(255, 179, 112, 0.25);
}
.table:hover {
	background-color: rgba(255, 179, 112, 0.55);
}

.modal-window {
	display: flex;
	flex-direction: column;	
	justify-content: center; 
	align-items: center; 
	height: 120px;
	margin: auto auto;
	padding: 10px 30px 15px 30px;
	background-color: #fff;
	color: #000;
	z-index: 9999;
	border-radius: 16px;
	border: 2px solid #333;
	-webkit-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
	-moz-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
	box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
}


.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.85);
	overflow: auto;
}

.modal-content {
	margin: auto;
	display: block;
	max-width: 90%;
	max-height: 90%;
	margin-top: 2%;
}

.close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
}

.chat-bubble {
	position: relative;
	background-color: #00aabb;
	color: white;
	padding: 15px;
	border-radius: 10px;
	width: 100%;
	margin-bottom: 20px;
}

.chat-info {
	position: absolute;
	bottom: 2px;
	right: 5px;
	text-align: right;
	color: #eee;
	font-size: 10px;

}

.errormessage {
	width: 100%;
	padding: 25px;
	background-color: #ffc9c9;
	font-weight: bold;
	border-radius: 22px;
	border: 2px solid #ff7575;
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.chat-bubble::after {
	content: '';
	position: absolute;
	bottom: -10px; /* Положение хвостика */
	left: 20px;
	border-width: 10px 10px 0;
	border-style: solid;
	border-color: #00aabb transparent;
	display: block;
	width: 0;
}



@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.auth-title {
	text-align: center;
	margin-bottom: 30px;
	color: #333;
	font-size: 24px;
	font-weight: 600;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e1e5ee;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
	color: #aab2bf;
}

.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	font-size: 14px;
}

/* Стили для кастомного чекбокса */
.checkbox-container {
	display: flex;
	align-items: center;
	cursor: pointer;
}

.checkbox {
	display: none;
}

.checkmark {
	width: 20px;
	height: 20px;
	border: 2px solid #e1e5ee;
	border-radius: 4px;
	margin-right: 8px;
	position: relative;
	transition: all 0.3s ease;
}

.checkbox:checked + .checkmark {
	background-color: #667eea;
	border-color: #667eea;
}

.checkbox:checked + .checkmark::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: 1px solid #000;
}