/* =========================
   Global Styles
========================= */

* {
	box-sizing: border-box;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
	margin: 0;
	background: #f5f7fb;
	color: #222;
	line-height: 1.5;
}

/* =========================
   Top Navigation Bar
========================= */

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 20px;
	background: #3949ab;
	color: #fff;
	flex-wrap: wrap;
}

.logo {
	font-weight: bold;
	font-size: 22px;
}

.nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.nav a {
	color: #fff;
	margin-left: 15px;
	text-decoration: none;
	font-size: 15px;
}

.nav a:hover {
	text-decoration: underline;
}

/* =========================
   Main Container
========================= */

.container {
	max-width: 1000px;
	margin: 20px auto;
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* =========================
   Footer
========================= */

.footer {
	text-align: center;
	padding: 15px 10px;
	font-size: 13px;
	color: #777;
}

/* =========================
   Headings
========================= */

h1, h2, h3 {
	margin-top: 0;
}

/* =========================
   Forms
========================= */

.form-group {
	margin-bottom: 12px;
}

label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 8px;
	border-radius: 4px;
	border: 1px solid #ccc;
	font-size: 14px;
}

textarea {
	min-height: 80px;
	resize: vertical;
}

/* =========================
   Buttons
========================= */

button,
.input-btn {
	display: inline-block;
	padding: 8px 16px;
	background: #3949ab;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease;
}

button:hover,
.input-btn:hover {
	background: #303f9f;
}

/* =========================
   Tables
========================= */

.table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.table th,
.table td {
	border: 1px solid #e0e0e0;
	padding: 8px;
	font-size: 14px;
}

.table th {
	background: #f3f4fb;
	text-align: left;
}

/* =========================
   Flex Layout
========================= */

.flex {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.card {
	flex: 1;
	min-width: 200px;
	background: #f8f9ff;
	border-radius: 6px;
	padding: 12px;
	border: 1px solid #e0e0ff;
}

.card h3 {
	margin-top: 0;
	font-size: 16px;
}

/* =========================
   Alerts
========================= */

.alert {
	padding: 8px 10px;
	margin-bottom: 10px;
	border-radius: 4px;
	font-size: 14px;
}

.alert-success {
	background: #e8f5e9;
	color: #256029;
}

.alert-error {
	background: #ffebee;
	color: #c62828;
}

/* =========================
   Auth Wrapper
========================= */

.auth-wrapper {
	max-width: 400px;
	margin: 40px auto;
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* =========================
   Images
========================= */

img {
	max-width: 100%;
	height: auto;
}

/* =========================
   Responsive Design
========================= */

/* Tablets */
@media (max-width: 992px) {

	.container {
		margin: 15px;
		padding: 15px;
	}

	.card {
		min-width: 100%;
	}
}

/* Mobile */
@media (max-width: 768px) {

	.topbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.nav {
		width: 100%;
		margin-top: 5px;
	}

	.nav a {
		margin-left: 0;
		margin-right: 15px;
	}

	.container {
		margin: 10px;
		padding: 15px;
	}

	.flex {
		flex-direction: column;
	}

	.table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	button,
	.input-btn {
		width: 100%;
		margin-top: 5px;
	}
}

/* Small Phones */
@media (max-width: 480px) {

	.logo {
		font-size: 18px;
	}

	h1 {
		font-size: 20px;
	}

	h2 {
		font-size: 18px;
	}

	input,
	select,
	textarea {
		font-size: 13px;
		padding: 7px;
	}

	button {
		font-size: 13px;
		padding: 7px;
	}
}
