:root {
	--primary: #E30069;
	--primary-hover: #bb065b;

	--secondary: #FEF1FB;
}


/* General body and fonts */
body {
	font-family: Arial, Helvetica, sans-serif;
	background-color: #f5f6fa;
	color: #333;
	margin: 0;
	padding: 0;
}

/* Container / Panel */
.container {
	width: 90%;
	max-width: 1200px;
	margin: 20px auto;
	padding: 20px;
}


.small-container {
	width: 100%;
	max-width: 300px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

/* Headings */
h1,
h2,
h3 {
	margin-top: 0;
	color: #2f3640;
}

h2 {
	width: 100%;
	text-align: center;
}

h1 {
	margin-bottom: 0;
}

nav {
	width: 100%;

	margin-bottom: 20px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 15px;
}

/* Buttons */
button,
.btn {
	background-color: var(--primary);
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

button:hover,
.btn:hover {
	background-color: var(--primary-hover);
}

button.secondary,
.btn.secondary {
	background-color: #3498db;
}

button.secondary:hover,
.btn.secondary:hover {
	background-color: #2980b9;
}

button.danger,
.btn.danger {
	background-color: #e74c3c;
}

button.danger:hover,
.btn.danger:hover {
	background-color: #c0392b;
}

/* Inputs and selects */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {

	width: 100%;
	max-width: none;
	padding: 10px;
	margin: 5px 0 15px 0;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 14px;
	transition: border-color 0.2s ease;
}

textarea {
	resize: none;
	height: 200px;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--primary);
	outline: none;
}

input[type="file"] {
	width: 100%;
	padding: 10px;
	margin: 5px 0 15px 0;
	border: 2px dashed #ccc;
	border-radius: 6px;
	background-color: #fff;
	cursor: pointer;
	transition: border-color 0.3s ease, background-color 0.3s ease;
	font-size: 14px;
	color: #555;
}

input[type="file"]:hover {
	border-color: var(--primary);
	background-color: #fff5fa;
}

input[type="file"]:focus {
	outline: none;
	border-color: var(--primary-hover);
	background-color: #fff0f8;
}

/* Date input field */
input[type="date"] {
	width: 100%;
	padding: 10px;
	margin: 5px 0 15px 0;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 14px;
	background-color: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	color: #333;
	font-family: inherit;
}

/* Hover & focus effects */
input[type="date"]:hover {
	border-color: var(--primary);
	background-color: #fff9fc;
}

input[type="date"]:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(227, 0, 115, 0.1);
	outline: none;
	background-color: #fff;
}

/* Calendar icon styling (WebKit browsers like Chrome/Edge) */
input[type="date"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	filter: invert(38%) sepia(92%) saturate(3136%) hue-rotate(318deg) brightness(90%) contrast(95%);
}

/* For a consistent text alignment */
input[type="date"]::-webkit-datetime-edit {
	color: #555;
}


/* Custom upload label wrapper */
.upload-field {
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 2px dashed #aaa;
	border-radius: 10px;
	padding: 20px;
	text-align: center;
	margin-bottom: 15px;
	cursor: pointer;
	transition: background 0.3s, border-color 0.3s;
	position: relative;
}

.upload-field.dragover {
	background: #f3f3f3;
	border-color: #333;
}

.upload-field input[type="file"] {
	display: none;
}

.upload-preview {
	display: none;
	max-width: 100%;
	max-height: 200px;
	margin-top: 10px;
	border-radius: 10px;
	object-fit: contain;
}

.upload-field span {
	font-size: 14px;
	word-break: break-all;
	color: #777;
}



/* Forms */
form label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	text-align: center;
}

.inline-inputs {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin-bottom: 1rem;
}

.inline-inputs label {
	margin: 0 auto;
}

/* Tables */
.stats-table {
	width: 100%;
	border-collapse: collapse;
	margin: 2em 0;
}

.stats-table th,
.stats-table td {
	border: 1px solid #ddd;
	padding: 12px;
	text-align: left;
}

.stats-table th {
	background: #f5f5f5;
}

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

/* Panel / Card */
.panel {
	margin-top: 50px;
	background-color: #fff;
	padding: 15px;
	border-radius: 6px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	margin-bottom: 20px;
}

/* Alerts */
.alert {
	padding: 12px;
	margin-bottom: 15px;
	border-radius: 5px;
}

.alert.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.alert.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.alert.info {
	background-color: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

/* Links */
a {
	/* color: #3498db; */
	/* color: var(--secondary); */
	color: var(--primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Utility classes */
.text-center {
	text-align: center;

}