/* ==========================================================================
   Area Restrita Luman - Frontend Styles
   ========================================================================== */

:root {
	--arl-primary: #1a3a5c;
	--arl-primary-hover: #244d7a;
	--arl-accent: #c5962e;
	--arl-accent-hover: #d4a83f;
	--arl-bg: #f5f6f8;
	--arl-white: #ffffff;
	--arl-text: #333333;
	--arl-text-light: #666666;
	--arl-border: #e0e0e0;
	--arl-error: #c0392b;
	--arl-error-bg: #fdecea;
	--arl-radius: 8px;
	--arl-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.arl-container {
	max-width: 960px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--arl-text);
	line-height: 1.6;
}

.arl-container * {
	box-sizing: border-box;
}

/* ==========================================================================
   Login
   ========================================================================== */

.arl-login-container {
	max-width: 440px;
	margin-top: 60px;
}

.arl-has-login h1.page-title,
.arl-has-login .page-title,
.arl-has-login .entry-title {
	display: none !important;
}

.arl-login-box {
	background: var(--arl-white);
	border-radius: var(--arl-radius);
	box-shadow: var(--arl-shadow);
	padding: 40px;
}

.arl-login-header {
	text-align: center;
	margin-bottom: 30px;
}

.arl-login-header h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--arl-primary);
	margin: 0 0 8px;
}

.arl-login-header p {
	font-size: 14px;
	color: var(--arl-text-light);
	margin: 0;
}

/* Alerts */
.arl-alert {
	padding: 12px 16px;
	border-radius: var(--arl-radius);
	font-size: 14px;
	margin-bottom: 20px;
}

.arl-alert-error {
	background: var(--arl-error-bg);
	color: var(--arl-error);
	border: 1px solid rgba(192, 57, 43, 0.2);
}

.arl-alert-success {
	background: #eafaf1;
	color: #1a7f37;
	border: 1px solid rgba(26, 127, 55, 0.2);
}

.arl-form-footer {
	text-align: center;
	margin-top: 16px;
	font-size: 13px;
}

.arl-form-footer a {
	color: var(--arl-text-light);
	text-decoration: none;
}

.arl-form-footer a:hover {
	color: var(--arl-primary);
	text-decoration: underline;
}

/* Form */
.arl-form-group {
	margin-bottom: 20px;
}

.arl-form-group label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--arl-text);
}

.arl-form-group input[type="text"],
.arl-form-group input[type="email"],
.arl-form-group input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--arl-border);
	border-radius: var(--arl-radius);
	font-size: 15px;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: var(--arl-bg);
}

.arl-form-group input:focus {
	outline: none;
	border-color: var(--arl-primary);
	box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.12);
	background: var(--arl-white);
}

/* Buttons */
.arl-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--arl-radius);
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, transform 0.1s;
	line-height: 1.4;
}

.arl-btn:hover {
	transform: translateY(-1px);
}

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

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

.arl-btn-outline {
	background: transparent;
	color: var(--arl-text-light);
	border: 1px solid var(--arl-border);
	padding: 8px 16px;
	font-size: 13px;
}

.arl-btn-outline:hover {
	background: var(--arl-bg);
	color: var(--arl-text);
}

.arl-btn-small {
	padding: 6px 14px;
	font-size: 13px;
}

.arl-btn-full {
	width: 100%;
	justify-content: center;
	padding: 14px;
	font-size: 16px;
}

.arl-btn-download {
	background: var(--arl-accent);
	color: var(--arl-white);
}

.arl-btn-download:hover {
	background: var(--arl-accent-hover);
	color: var(--arl-white);
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.arl-dashboard-header,
.arl-empreendimento-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 30px;
	flex-wrap: wrap;
	gap: 16px;
}

.arl-dashboard-header h2,
.arl-empreendimento-header h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--arl-primary);
	margin: 0 0 4px;
}

.arl-dashboard-header p {
	font-size: 14px;
	color: var(--arl-text-light);
	margin: 0;
}

.arl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.arl-card {
	background: var(--arl-white);
	border-radius: var(--arl-radius);
	box-shadow: var(--arl-shadow);
	overflow: hidden;
	text-decoration: none;
	color: var(--arl-text);
	transition: transform 0.2s, box-shadow 0.2s;
	display: block;
}

.arl-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	color: var(--arl-text);
}

.arl-card-image {
	height: 180px;
	background-size: cover;
	background-position: center;
	background-color: var(--arl-bg);
}

.arl-card-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.arl-card-image-placeholder .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: var(--arl-border);
}

.arl-card-body {
	padding: 20px;
}

.arl-card-body h3 {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 12px;
	color: var(--arl-primary);
}

.arl-card-body .arl-btn-small {
	background: var(--arl-primary);
	color: var(--arl-white);
}

/* ==========================================================================
   Empreendimento View
   ========================================================================== */

.arl-back-link {
	font-size: 13px;
	color: var(--arl-text-light);
	text-decoration: none;
	display: inline-block;
	margin-bottom: 8px;
}

.arl-back-link:hover {
	color: var(--arl-primary);
}

.arl-intro-text {
	background: var(--arl-white);
	border-radius: var(--arl-radius);
	box-shadow: var(--arl-shadow);
	padding: 30px;
	margin-bottom: 30px;
	font-size: 15px;
}

.arl-intro-text p:first-child {
	margin-top: 0;
}

.arl-intro-text p:last-child {
	margin-bottom: 0;
}

.arl-file-section {
	margin-bottom: 30px;
}

.arl-file-section h3 {
	font-size: 18px;
	font-weight: 600;
	color: var(--arl-primary);
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.arl-file-section h3 .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.arl-file-list {
	background: var(--arl-white);
	border-radius: var(--arl-radius);
	box-shadow: var(--arl-shadow);
	overflow: hidden;
}

.arl-file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--arl-border);
	gap: 16px;
	flex-wrap: wrap;
}

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

.arl-file-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
}

.arl-file-info .dashicons {
	color: var(--arl-accent);
	font-size: 24px;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.arl-file-info div {
	min-width: 0;
}

.arl-file-info strong {
	display: block;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.arl-file-info small {
	display: block;
	font-size: 12px;
	color: var(--arl-text-light);
}

.arl-file-size {
	color: #999;
}

/* Empty state */
.arl-empty-state {
	text-align: center;
	padding: 60px 20px;
	background: var(--arl-white);
	border-radius: var(--arl-radius);
	box-shadow: var(--arl-shadow);
	color: var(--arl-text-light);
}

.arl-empty-state p {
	margin: 4px 0;
	font-size: 15px;
}

/* Error */
.arl-error {
	padding: 20px;
	background: var(--arl-error-bg);
	color: var(--arl-error);
	border-radius: var(--arl-radius);
	border: 1px solid rgba(192, 57, 43, 0.2);
	text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
	.arl-container {
		margin: 20px auto;
		padding: 0 16px;
	}

	.arl-login-box {
		padding: 24px;
	}

	.arl-dashboard-header,
	.arl-empreendimento-header {
		flex-direction: column;
	}

	.arl-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.arl-file-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.arl-file-item .arl-btn {
		align-self: flex-end;
	}
}
