/**
 * Agent Settings Form Styles
 *
 * @package Templines_User_Manager
 */

.tum-agent-settings-wrapper {
	max-width: 100%;
	margin: 0 auto;
}

.tum-agent-settings-wrapper .tum-form-title {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 15px 0;
	color: #1e1e1e;
}

.tum-agent-settings-wrapper .tum-form-description {
	font-size: 14px;
	color: #757575;
	margin: 0 0 30px 0;
	line-height: 1.6;
}

/* Section Titles */
.tum-section-title {
	font-size: 18px;
	font-weight: 600;
	color: #1e1e1e;
	margin: 30px 0 15px 0;
	padding: 10px 0 10px 25px;
	border-left: 4px solid #007cba;
	background: #f8f9fa;
    line-height: 1.7;
}

.tum-section-title:first-of-type {
	margin-top: 0;
}

/* Form Table */
.tum-agent-settings-form .form-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 30px 0;
}

.tum-agent-settings-form .form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
    text-align: left;
    vertical-align: top;
    font-weight: 400;
    color: #1e1e1e;
    font-size: 16px;
}

.tum-agent-settings-form .form-table td {
	padding: 20px 0;
	vertical-align: top;
}

.tum-agent-settings-form .form-table tr {
	border-bottom: 1px solid #e5e5e5;
}

.tum-agent-settings-form .form-table tr:last-child {
	border-bottom: none;
}

/* Form Inputs */
.tum-agent-settings-form input[type="text"],
.tum-agent-settings-form input[type="email"],
.tum-agent-settings-form input[type="url"] {
	width: 100%;
	max-width: 500px;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tum-agent-settings-form input[type="text"]:focus,
.tum-agent-settings-form input[type="email"]:focus,
.tum-agent-settings-form input[type="url"]:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

/* Description */
.tum-agent-settings-form .description {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: #646970;
	line-height: 1.5;
}

.tum-agent-settings-form .description strong {
	color: #1e1e1e;
}

/* Required indicator */
.tum-agent-settings-form .description .required {
	color: #d63638;
	font-weight: normal;
}

/* Submit Button */
.tum-agent-settings-form .submit {
	margin: 0;
	padding: 0;
}

.tum-agent-settings-form .button-primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	text-decoration: none;
	text-shadow: none;
	font-size: 14px;
	padding: 12px 24px;
	height: auto;
	line-height: 1.5;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	font-weight: 500;
}

.tum-agent-settings-form .button-primary:hover,
.tum-agent-settings-form .button-primary:focus {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

/* Success Message */
.tum-message {
	padding: 15px 20px;
	margin-bottom: 25px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.6;
}

.tum-message-success {
	background: #e8f5e9;
	border-left: 4px solid #4caf50;
	color: #2e7d32;
}

.tum-message-success p {
	margin: 0;
	font-weight: 500;
}

.tum-message-error {
	background: #ffebee;
	border-left: 4px solid #f44336;
	color: #c62828;
}

/* Responsive */
@media (max-width: 782px) {
	.tum-agent-settings-form .form-table th,
	.tum-agent-settings-form .form-table td {
		display: block;
		width: 100%;
		padding: 10px 0;
	}
	
	.tum-agent-settings-form .form-table th {
		padding-bottom: 5px;
	}
	
	.tum-agent-settings-form .form-table td {
		padding-top: 5px;
		padding-bottom: 20px;
	}
	
	.tum-agent-settings-form input[type="text"],
	.tum-agent-settings-form input[type="email"],
	.tum-agent-settings-form input[type="url"] {
		max-width: 100%;
	}
}

@media (max-width: 600px) {
	.tum-agent-settings-wrapper .tum-form-title {
		font-size: 20px;
	}
	
	.tum-agent-settings-form .button-primary {
		width: 100%;
		text-align: center;
	}
}

/* Editor Mode Styles */
.tum-editor-notice {
	background: #e8f4fd;
	border-left: 4px solid #2271b1;
	padding: 15px 20px;
	margin-bottom: 25px;
	border-radius: 4px;
}

.tum-editor-notice p {
	margin: 0;
	color: #135e96;
	font-size: 13px;
	line-height: 1.6;
}

.tum-editor-notice strong {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
	color: #0c4a6e;
}

.tum-demo-badge {
	display: inline-block;
	background: #f0f0f1;
	color: #50575e;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 3px;
	margin-left: 8px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	vertical-align: middle;
}

.tum-agent-settings-form.is-editor-mode input[type="text"],
.tum-agent-settings-form.is-editor-mode input[type="email"],
.tum-agent-settings-form.is-editor-mode input[type="url"] {
	background-color: #f9f9f9;
	cursor: not-allowed;
}

.tum-agent-settings-form.is-editor-mode .button-primary {
	pointer-events: none;
	opacity: 0.7;
}

/* Profile Background Upload */
.tum-profile-background-upload {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.tum-profile-background-preview {
	position: relative; ипа
	max-width: 600px;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	background: #f9f9f9;
}

.tum-profile-background-preview img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 200px;
	object-fit: cover;
}

.tum-profile-background-preview .tum-remove-background {
	margin: 10px;
	background: #d63638;
	border-color: #d63638;
	color: #fff;
	font-size: 13px;
	padding: 8px 16px;
	height: auto;
	line-height: 1.5;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.tum-profile-background-preview .tum-remove-background:hover {
	background: #b32d2e;
	border-color: #b32d2e;
	transform: translateY(-1px);
}

.tum-upload-background {
	background: #f0f0f1;
	border-color: #c3c4c7;
	color: #2c3338;
	font-size: 13px;
	padding: 8px 16px;
	height: auto;
	line-height: 1.5;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	align-self: flex-start;
}

.tum-upload-background:hover {
	background: #dcdcde;
	border-color: #8c8f94;
	color: #2c3338;
	transform: translateY(-1px);
}

/* Company Logo Upload */
.tum-company-logo-upload {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.tum-company-logo-preview {
	position: relative;
	max-width: 300px;
	padding: 15px;
	border: 2px dashed #ddd;
	border-radius: 8px;
	background: #fafafa;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}

.tum-company-logo-preview img {
	display: block;
	max-width: 200px;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tum-company-logo-preview .tum-remove-company-logo {
	background: #d63638;
	border-color: #d63638;
	color: #fff;
	font-size: 13px;
	padding: 8px 16px;
	height: auto;
	line-height: 1.5;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	font-weight: 500;
}

.tum-company-logo-preview .tum-remove-company-logo:hover {
	background: #b32d2e;
	border-color: #b32d2e;
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(214, 54, 56, 0.3);
}

.tum-upload-company-logo {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	font-size: 13px;
	padding: 10px 20px;
	height: auto;
	line-height: 1.5;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	font-weight: 500;
	align-self: flex-start;
}

.tum-upload-company-logo:hover,
.tum-upload-company-logo:focus {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

/* Textarea */
.tum-agent-settings-form textarea {
	width: 100%;
	max-width: 500px;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	resize: vertical;
}

.tum-agent-settings-form textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.tum-agent-settings-form.is-editor-mode textarea {
	background-color: #f9f9f9;
	cursor: not-allowed;
}

/* Responsive for Company Logo */
@media (max-width: 600px) {
	.tum-company-logo-preview {
		max-width: 100%;
	}
	
	.tum-company-logo-preview img {
		max-width: 150px;
	}
	
	.tum-upload-company-logo,
	.tum-remove-company-logo {
		width: 100%;
		text-align: center;
	}
}

