/**
 * User Account Page - Styles
 */

/* Container główny */
.user-account-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

/* Komunikaty */
.account-messages {
	margin-bottom: 30px;
}

.account-message {
	padding: 15px 20px;
	border-radius: 8px;
	margin-bottom: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	animation: slideDown 0.3s ease;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

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

.message-close {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: inherit;
	opacity: 0.5;
	cursor: pointer;
	padding: 0;
	margin-left: 15px;
	transition: opacity 0.2s;
}

.message-close:hover {
	opacity: 1;
}

/* Sekcje */
.account-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.account-section h2 {
	margin: 0 0 20px 0;
	font-size: 24px !important;
	color: #333;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 10px;
}

.account-section h3 {
	margin: 25px 0 15px 0;
	font-size: 18px;
	color: #555;
}

.section-description {
	color: #666;
	margin-bottom: 20px;
	line-height: 1.6;
}

/* Formularze */
.account-form {
	max-width: 600px;
}

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

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
	outline: none;
	border-color: #4a90e2;
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-help {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #666;
}

/* Przyciski */
.form-actions {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f0;
}

.btn {
	display: inline-block;
	padding: 12px 30px;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	text-decoration: none;
	text-align: center;
}

.btn-primary {
	background-color: #103b5d;
	color: #fff !important;
}

.btn-primary:hover:not(:disabled) {
	background-color: #1d5179;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.btn-primary:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}


.btn-loader {
	display: inline-block;
}

/* Wskaźnik siły hasła */
.password-strength-indicator {
	margin-top: 10px;
}

.strength-bar {
	height: 6px;
	background-color: #e0e0e0;
	border-radius: 3px;
	margin-bottom: 5px;
	position: relative;
	overflow: hidden;
}

.strength-bar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0;
	border-radius: 3px;
	transition: width 0.3s, background-color 0.3s;
}

.strength-bar.weak::before {
	width: 25%;
	background-color: #dc3545;
}

.strength-bar.medium::before {
	width: 50%;
	background-color: #ffc107;
}

.strength-bar.strong::before {
	width: 75%;
	background-color: #28a745;
}

.strength-bar.very-strong::before {
	width: 100%;
	background-color: #0c5c28;
}

.strength-text {
	font-size: 13px;
	color: #666;
}

/* Zgody */
.consents-list {
	margin: 20px 0;
}

.consent-item {
	padding: 15px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 15px;
	transition: background-color 0.2s;
}

.consent-item:hover {
	background-color: #f9f9f9;
}

.consent-label {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	margin: 0;
	font-weight: normal;
}

.consent-label input[type="checkbox"] {
	margin-right: 12px;
	margin-top: 4px;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.consent-info {
	flex: 1;
}

.consent-info strong {
	display: block;
	margin-bottom: 5px;
	color: #333;
}

.consent-info small {
	display: block;
	color: #666;
	font-size: 13px;
	line-height: 1.5;
}

/* Tagi */
.tags-display {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 15px;
}

.tag-badge {
	display: inline-block;
	padding: 6px 12px;
	background-color: #e9ecef;
	color: #495057;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
}

.tags-note {
	margin-top: 15px;
	padding: 12px;
	background-color: #f8f9fa;
	border-left: 3px solid #6c757d;
	border-radius: 4px;
}

/* Informacje o koncie */
.info-grid {
	display: grid;
	gap: 15px;
}

.info-item {
	padding: 15px;
	background-color: #f8f9fa;
	border-radius: 6px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.info-item strong {
	color: #555;
	font-weight: 600;
}

.info-item span {
	color: #333;
}

/* Sekcja wylogowania */
.account-logout {
	text-align: center;
	padding: 20px;
}

/* Komunikat logowania */
.user-account-login-required {
	max-width: 500px;
	margin: 50px auto;
	text-align: center;
}

.login-message {
	padding: 40px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.login-message h2 {
	margin: 0 0 15px 0;
	color: #333;
}

.login-message p {
	margin: 0 0 25px 0;
	color: #666;
	line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
	.user-account-container {
		padding: 15px;
	}

	.account-section {
		padding: 20px;
	}

	.account-section h2 {
		font-size: 20px;
	}

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

	.info-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}
}

@media (max-width: 480px) {
	.account-section {
		padding: 15px;
	}

	.form-group input[type="text"],
	.form-group input[type="email"],
	.form-group input[type="password"] {
		font-size: 16px;
		/* Zapobiega zoom na iOS */
	}
}

/* RODO Sections */
.rodo-info-box {
	background-color: #e8f4fd;
	border-left: 4px solid #4a90e2;
	padding: 15px 20px;
	margin: 20px 0;
	border-radius: 6px;
}

.rodo-info-box h4 {
	margin: 0 0 10px 0;
	color: #2c5aa0;
	font-size: 16px;
}

.rodo-info-box p {
	margin: 8px 0;
	font-size: 13px;
	line-height: 1.6;
	color: #555;
}

.consent-history-list {
	margin: 20px 0;
}

.consent-history-item {
	background-color: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 15px;
	margin-bottom: 15px;
}

.history-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ddd;
}

.history-source {
	font-size: 13px;
	color: #666;
	background-color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.history-details ul {
	margin: 10px 0;
	padding-left: 20px;
}

.history-details li {
	margin: 5px 0;
	font-size: 14px;
}

.history-meta {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #ddd;
}

.history-meta small {
	color: #999;
	font-size: 12px;
}

.no-history {
	text-align: center;
	color: #999;
	padding: 30px;
	background-color: #f8f9fa;
	border-radius: 6px;
}

.rodo-actions {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f0;
}