@charset "utf-8";

html, body {
	min-height: 100vh;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Helvetica Neue', Arial, sans-serif;
	font-size: 12pt;
	background: linear-gradient(to bottom, #6B9071 0%, #6B9071 70%, #E3EED4 100%);
	color: white;
}

/* Gemensam wrapper */
.admin-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 60px 20px;
}


h2 {
	font-family: 'Helvetica Neue', Arial, sans-serif;
	font-size: 34px;
	font-weight: 300;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: white;
	text-align: center;
	margin: 0 0 20px 0;
}


.admin-page > p,
.intro-text {
	line-height: 1.7;
	max-width: 700px;
	margin: 0 auto 30px auto;
	color: #E3EED4;
	text-align: center;
}

.admin-section {
	margin-top: 40px;
	padding: 20px;
	background: rgba(15, 42, 29, 0.75);
	border: 1px solid rgba(255,255,255,0.35);
}

.admin-section legend {
	color: #E3EED4;
	letter-spacing: 1px;
	padding: 0 8px;
	font-weight: 500;
}

.admin-thumb {
	width: 70px;
	height: 70px;
	object-fit: cover;
}


hr {
	border: none;
	border-top: 1px solid rgba(255,255,255,0.5);
	width: 60%;
	margin: 0 auto 30px auto;
}


form {
	max-width: 700px;
	margin: 0 auto;
	background: rgba(15, 42, 29, 0.75);
	padding: 25px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}


fieldset {
	border: 1px solid rgba(255,255,255,0.35);
	padding: 20px;
	margin: 0 0 20px 0;
	background: transparent;
	color: white;
}

legend {
	color: #E3EED4;
	letter-spacing: 1px;
	padding: 0 8px;
	font-weight: 500;
}


fieldset p {
	margin: 15px 0;
}


label {
	display: block;
	margin-bottom: 6px;
	color: white;
	font-weight: 500;
}


input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="file"],
textarea {
	width: 100%;
	padding: 10px;
	margin: 0 0 10px 0;
	box-sizing: border-box;
	border: 1px solid rgba(255,255,255,0.35);
	background: rgba(255,255,255,0.08);
	color: white;
	font-family: inherit;
	font-size: 14px;
}

textarea {
	resize: vertical;
	min-height: 120px;
}

/* Focus */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="file"]:focus,
textarea:focus {
	outline: none;
	border-color: #E3EED4;
	background: rgba(255,255,255,0.12);
}


input[type="submit"],
.btn {
	display: inline-block;
	background: #6B9071;
	border: none;
	padding: 12px 24px;
	color: white;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.2s ease;
}

input[type="submit"]:hover,
.btn:hover {
	background: #5A7A60;
	transform: translateY(-1px);
}


.btn {
	margin-left: 0;
}

/* Felmeddelande */
.error {
	font-family: Arial, sans-serif;
	font-size: 14px;
	color: #ffe0e0;
	font-weight: bold;
	letter-spacing: 1px;
	text-align: center;
	margin-bottom: 20px;
}


footer {
	text-align: center;
	margin-top: 40px;
	font-size: 11px;
	color: #5A7A60;
}

/* Login-specifikt */
.login-page {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

.login-page form {
	max-width: 400px;
	width: 100%;
}

.login-page fieldset {
	margin-bottom: 0;
}

.login-page .login-wrapper {
	width: 100%;
	max-width: 500px;
	padding: 20px;
}

.login-page h2 {
	margin-bottom: 30px;
	text-align: center;
}

.login-page form {
	max-width: 400px;
}

.login-page fieldset {
	margin-bottom: 0;
}


.form-actions {
	display: flex;
	gap: 15px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.table-title {
	margin-top: 50px;
}

/*TABELL DESGIN*/

table {
	width: 100%;
	max-width: 1000px;
	margin: 30px auto 0 auto;
	border-collapse: collapse;
	background: rgba(15, 42, 29, 0.75);
	color: white;
	font-size: 14px;
}

th {
	background: #5A7A60;
	padding: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 12px;
}

td {
	padding: 10px;
	text-align: center;
	border-top: 1px solid rgba(255,255,255,0.2);
}

tr:hover {
	background: rgba(255,255,255,0.05);
}

table a {
	color: #E3EED4;
	text-decoration: none;
	font-size: 12px;
	letter-spacing: 1px;
	transition: opacity 0.3s ease;
}

table a:hover {
	opacity: 0.6;
}

/*DELETE FORM*/

.delete-form {
	background: none;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

.btn.delete-btn {
	background: #5A7A60;
}

.btn.delete-btn:hover {
	background: rgba(15, 42, 29, 0.75);
}

/* Responsivitet */
@media (max-width: 600px) {
	.admin-page {
		padding: 40px 15px;
	}

	h2 {
		font-size: 26px;
	}

	form {
		padding: 20px;
	}

	.btn {
		margin-left: 0;
		margin-top: 10px;
	}
}