/* Estilos para el sistema de usuarios Agremiats */

/* Ocultar título de página en página de login */
.page-header {
	display: none !important;
}

/* Login */
.agremiats-login-container {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	padding: 40px 20px;
}

.agremiats-login-box {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	padding: 40px;
	max-width: 450px;
	width: 100%;
}

.agremiats-login-box h2 {
	margin: 0 0 30px 0;
	text-align: center;
	color: #111827;
	font-size: 28px;
	font-weight: 400;
}

/* Formularios */
.agremiats-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.agremiats-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.agremiats-field label {
	font-weight: 600;
	color: #374151;
	font-size: 14px;
}

.agremiats-field input[type="text"],
.agremiats-field input[type="email"],
.agremiats-field input[type="password"],
.agremiats-field input[type="url"] {
	width: 100%;
	padding: 12px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 16px;
	transition: border-color 0.2s;
}

.agremiats-field input:focus {
	outline: none;
	border-color: #2252AC;
}

.agremiats-field input:disabled {
	background: #f3f4f6;
	cursor: not-allowed;
}

.agremiats-button {
	background: #2252AC;
	color: white;
	padding: 14px 32px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

.agremiats-button:hover {
	background: #1a4189;
}

.agremiats-button-small {
	background: #2252AC;
	color: white;
	padding: 8px 20px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	text-decoration: none;
	display: inline-block;
}

.agremiats-button-small:hover {
	background: #1a4189;
}

.agremiats-links {
	text-align: center;
	margin-top: 15px;
}

.agremiats-links a {
	color: #2252AC;
	text-decoration: none;
	font-size: 14px;
}

.agremiats-links a:hover {
	text-decoration: underline;
}

.agremiats-message {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.agremiats-message.success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #10b981;
}

.agremiats-message.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #ef4444;
}

/* Dashboard */
.agremiats-dashboard {
	min-height: 60vh;
}

.agremiats-menu {
	background: #2252AC;
	color: white;
	padding: 0;
	margin-bottom: 40px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.agremiats-menu-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 20px;
}

.agremiats-user-info {
	padding: 20px 0;
}

.agremiats-user-name {
	font-weight: 600;
	font-size: 16px;
}

.agremiats-menu-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;
}

.agremiats-menu-items li {
	margin: 0;
}

.agremiats-menu-items a {
	color: white;
	text-decoration: none;
	padding: 20px 24px;
	display: block;
	font-weight: 500;
	transition: background 0.2s;
	border-bottom: 3px solid transparent;
}

.agremiats-menu-items a:hover {
	background: rgba(255, 255, 255, 0.1);
}

.agremiats-menu-items a.active {
	background: rgba(255, 255, 255, 0.15);
	border-bottom-color: white;
}

.agremiats-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

/* Dashboard Home */
.agremiats-home h1 {
	font-size: 36px;
	font-weight: 400;
	margin: 0 0 15px 0;
	color: #111827;
}

.agremiats-home > p {
	color: #6b7280;
	margin-bottom: 40px;
	font-size: 18px;
}

.agremiats-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.agremiats-card {
	background: white;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s, box-shadow 0.2s;
}

.agremiats-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.agremiats-card h3 {
	margin: 0 0 12px 0;
	font-size: 24px;
	color: #111827;
	font-weight: 500;
}

.agremiats-card p {
	color: #6b7280;
	margin-bottom: 20px;
	line-height: 1.6;
}

/* Perfil */
.agremiats-perfil h2 {
	font-size: 32px;
	font-weight: 400;
	margin: 0 0 30px 0;
	color: #111827;
}

.agremiats-perfil h3 {
	font-size: 24px;
	font-weight: 500;
	margin: 30px 0 15px 0;
	color: #111827;
}

.agremiats-perfil .description {
	color: #6b7280;
	font-size: 14px;
	font-style: italic;
	margin-bottom: 15px;
}

.agremiats-perfil hr {
	border: none;
	border-top: 1px solid #e5e7eb;
	margin: 30px 0;
}

/* Documents */
.agremiats-documents {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 30px;
}

.agremiats-documents-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
}

.agremiats-documents h2 {
	font-size: 32px;
	font-weight: 400;
	margin: 0;
	color: #111827;
}

.agremiats-documents-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 25px;
	padding: 20px;
	background: white;
	border-radius: 8px;
}

.agremiats-documents-filters .filter-label {
	font-weight: 600;
	color: #111827;
	margin-right: 5px;
}

.filter-pill {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	border: 2px solid transparent;
	background: white;
	color: #6b7280;
	transition: all 0.2s;
}

.filter-pill:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-pill.active {
	color: white;
	border-color: transparent;
}

.agremiats-documents-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.agremiats-document-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 25px 30px;
	background: white;
	border-bottom: 1px solid #e5e7eb;
	transition: background-color 0.2s;
	min-height: 100px;
}

.agremiats-document-row:first-child {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

.agremiats-document-row:last-child {
	border-bottom: none;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}

.agremiats-document-row:hover {
	background: #f9fafb;
}

.document-row-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.document-badge {
	display: inline-block;
	align-self: flex-start;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	color: white;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.document-title {
	margin: 0;
	font-size: 18px;
	color: #111827;
	font-weight: 400;
	line-height: 1.4;
}

.document-date {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6b7280;
	font-size: 14px;
}

.document-date svg {
	flex-shrink: 0;
}

.document-row-actions {
	display: flex;
	gap: 5px;
	align-items: center;
	margin-left: 20px;
}

.doc-action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	color: #9ca3af;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.2s;
	text-decoration: none;
}

.doc-action-btn:hover {
	background: #f3f4f6;
	color: #374151;
}

.doc-action-btn svg {
	flex-shrink: 0;
}

.no-documents {
	text-align: center;
	padding: 40px;
	color: #6b7280;
	background: white;
	border-radius: 8px;
}

/* Responsive documents */
@media (max-width: 768px) {
	.agremiats-documents-filters {
		padding: 15px;
	}
	
	.filter-pill {
		font-size: 10px;
		padding: 6px 14px;
	}
	
	.agremiats-document-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
		padding: 20px;
	}
	
	.document-row-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		width: 100%;
	}
	
	.document-row-actions {
		width: 100%;
		justify-content: flex-end;
	}
}

/* Garatges */
.agremiats-garatges h2 {
	font-size: 32px;
	font-weight: 400;
	margin: 0 0 30px 0;
	color: #111827;
}

.agremiats-garatge-card {
	background: white;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	margin-bottom: 25px;
}

.agremiats-garatge-card h3 {
	margin: 0 0 10px 0;
	font-size: 24px;
	color: #111827;
	font-weight: 500;
}

.agremiats-garatge-address {
	color: #6b7280;
	margin: 0 0 15px 0;
}

.agremiats-garatge-details summary {
	cursor: pointer;
	font-weight: 600;
	color: #2252AC;
	padding: 12px;
	background: #f3f4f6;
	border-radius: 8px;
	transition: background 0.2s;
}

.agremiats-garatge-details summary:hover {
	background: #e5e7eb;
}

.agremiats-garatge-details[open] summary {
	margin-bottom: 20px;
}

.agremiats-garatge-details h4 {
	font-size: 18px;
	font-weight: 600;
	margin: 25px 0 15px 0;
	color: #374151;
}

.agremiats-checkboxes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.agremiats-checkboxes label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	color: #374151;
}

.agremiats-checkboxes input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
	.agremiats-menu-container {
		flex-direction: column;
		padding: 15px;
	}
	
	.agremiats-user-info {
		padding: 10px 0;
	}
	
	.agremiats-menu-items {
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
	}
	
	.agremiats-menu-items a {
		padding: 12px 16px;
		font-size: 14px;
	}
	
	.agremiats-cards {
		grid-template-columns: 1fr;
	}
	
	.agremiats-checkboxes {
		grid-template-columns: 1fr;
	}
}
