/* ==============================================
   pages.css - Page-specific styles
   (login, register, profiles, drivers list)
   ============================================== */

/* ── Login ── */
.login-container {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	padding: 40px;
	width: 520px;
	text-align: center;
}

.login-container h2 {
	margin-bottom: 20px;
	color: #333;
}

.login-container input[type="text"],
.login-container input[type="password"] {
	width: 100%;
	padding: 10px;
	margin-bottom: 20px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.login-container input[type="submit"] {
	width: 100%;
	padding: 10px;
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.login-container input[type="submit"]:hover {
	background-color: #0056b3;
}

/* ── Register ── */
.registration-container {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	padding: 40px;
	margin: 0 auto;
	width: 100%;
	max-width: 520px;
	box-sizing: border-box;
	text-align: center;
}

.registration-container h2 {
	margin-bottom: 20px;
	color: #333;
}

.form-group {
	margin-bottom: 20px;
	text-align: left;
	width: 100%;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="password"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.registration-container input[type="submit"] {
	width: 100%;
	padding: 10px;
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.registration-container input[type="submit"]:hover {
	background-color: #0056b3;
}

/* ── Profiles ── */
.profile-container {
	display: flex;
	flex-direction: column;
	max-width: 1300px;
	margin: 0 auto;
	box-sizing: border-box;
}

.top-section {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	width: 100%;
	margin-bottom: 20px;
}

.profile-picture img {
	width: 100px;
	height: auto;
	border-radius: 25%;
	margin-right: 20px;
}

.user-data {
	flex: 1;
	padding: 20px;
}

.profile-card {
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	background-color: #fff;
	box-sizing: border-box;
}

.profile-card.general-info {
	width: calc(50% - 10px);
	margin-bottom: 20px;
}

.profile-card.driver-rating {
	width: calc(50% - 10px);
	margin-bottom: 20px;
	align-self: flex-start;
}

.profile-card.race-statistics {
	width: 100%;
}

.profile-header {
	background-color: #f1f1f1;
	border-radius: 8px 8px 0 0;
	padding: 10px;
}

.profile-header h2 {
	margin: 0;
}

.profile-details {
	display: flex;
	align-items: center;
	padding: 20px;
}

.profile-details-fullwidth {
	padding: 20px;
	width: 100%;
}

.profile-details p, .profile-details a, .profile-details ul {
	margin: 10px 0;
}

.profile-details ul {
	padding-left: 20px;
}

/* ── Drivers List ── */
.user-table-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 1300px;
	margin: 0 auto;
	padding: 20px;
	box-sizing: border-box;
	background-color: #f9f9f9;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.user-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.user-table th, .user-table td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #ccc;
}

.user-table th {
	background-color: #f1f1f1;
}

.user-table tr:hover {
	background-color: #f9f9f9;
}

.position, .driver-rating {
	text-align: center !important;
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
}

.pagination a {
	padding: 10px 20px;
	margin: 0 5px;
	text-decoration: none;
	background-color: #0d6efd;
	color: #ffffff;
	width: 100px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-align: center;
	display: inline-block;
}

.pagination a:hover {
	background-color: #0b5ed7;
}

.pagination span {
	padding: 10px 20px;
	margin: 0 5px;
	border-radius: 4px;
	background-color: #f1f1f1;
}

/* ── Responsive ── */
@media screen and (max-width: 992px) {
	.profile-card.general-info,
	.profile-card.driver-rating {
		width: 100%;
		margin-right: 0;
	}
	.user-table th, .user-table td {
		padding: 8px;
	}
}

@media screen and (max-width: 576px) {
	.profile-container {
		width: 100%;
		padding: 10px;
	}
	.profile-card {
		width: 100%;
		margin-bottom: 20px;
	}
	.user-table th, .user-table td {
		padding: 6px;
	}
}
