/**
 * DreamOne Crown API - Styles
 *
 * @package DreamOneCrownAPI
 * @since 1.0.0
 */

/* ==========================================================================
   Common Form Styles
   ========================================================================== */

.do-form {
	width: 100%;
}

.do-form h3 {
	margin: 0 0 20px 0;
	color: #333;
	font-size: 1.5em;
}

/* Form row for side-by-side layout */
.do-form-row {
	padding: 30px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.do-form-group {
	flex: 1;
	min-width: 200px;
	max-width: 220px;
}

.do-form label {
	display: block;
	margin-bottom: 8px;
	color: #2c3de5;
	font-size: 16px;
	font-weight: 700;
}

.do-form input[type="text"],
.do-form input[type="password"],
.do-form input[type="email"],
.do-form select {
	width: 100%;
	height: 40px;
	line-height: 40px;
	padding: 0 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	box-sizing: border-box;
}

.do-form input:focus {
	outline: none;
	border-color: #2c3de5;
	box-shadow: 0 0 0 2px rgba(44, 61, 229, 0.1);
}

/* Button styles */
.do-btn {
	display: inline-block;
	padding: 0 20px;
	height: 40px;
	background-color: #2c3de5;
	color: #ffffff;
	border: none;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}
a.do-btn {
	line-height: 40px;
}

.do-btn:hover {
	background-color: #141c70;
	color: #ffffff;
}

.do-btn-logout {
	background-color: #dc3545;
}

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

.do-btn-credenciar {
	text-align: center;
	background-color: #009cff;
}

.do-btn-credenciar:hover {
	background-color: #035a91;
}

.do-form .do-btn {
	margin-top: 20px;
}

/* Link styles */
.do-link {
	display: inline-block;
	color: #2c3de5;
	text-decoration: none;
}

.do-link:hover {
	color: #141c70;
	text-decoration: underline;
}

/* Error message */
.do-error-message {
	padding: 12px 30px;
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

/* User data display */
.do-user-data {
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.do-header-section {
	padding-bottom: 10px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid #2c3de5;
}
.do-header-section h3 {
	margin: 0;
	padding: 0;
}

.do-user-info p {
	margin: 4px 0;
	color: #555;
}

.do-user-info strong {
	color: #333;
	display: inline-block;
	min-width: 60px;
}

.do-section {
	padding: 30px 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.do-section:last-child {
	padding-top: 0;
}

.do-list-links {
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.do-list-links li {
	display: flex;
}
.do-list-links li a {
	padding: 10px 30px 30px 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	line-height: 100%;
	color: #fff;
	background-color: #2c3de5;
	border-radius: 20px;
	text-wrap: balance;
}
.do-list-links li a:hover {
	background-color: #141c70;
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media (max-width: 600px) {
	.do-form-row {
		padding: 0;
		flex-direction: column;
		gap: 15px;
	}

	.do-form-group {
		min-width: 100%;
	}

	.do-form input[type="text"],
	.do-form input[type="password"],
	.do-form input[type="email"] {
		max-width: 100%;
	}

	.do-form {
		padding: 30px;
	}

	.do-form .do-btn {
		margin-top: 0;
	}

	.do-list-links {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}
