/* General Styling */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	background-color: #f5f5f5;
	color: #333;
	line-height: 1.6;
}

/* Layout */
main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

/* Headers */
h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.2;
	margin-bottom: 1rem;
}

h1 {
	font-size: 2rem;
}
h2 {
	font-size: 1.75rem;
}
h3 {
	font-size: 1.5rem;
}
h4 {
	font-size: 1.25rem;
}
h5 {
	font-size: 1.1rem;
}
h6 {
	font-size: 1rem;
}

/* Links */
a {
	color: #667eea;
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: #5568d3;
	text-decoration: underline;
}

/* Forms */
form {
	margin: 1.5rem 0;
}

.form-group {
	margin-bottom: 1.5rem;
	display: flex;
	flex-direction: column;
}

label {
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

textarea {
	resize: vertical;
	min-height: 120px;
}

/* Buttons */
button,
.btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

button {
	margin-top: 0.5rem;
}

.btn-primary {
	background: #667eea;
	color: white;
}

.btn-primary:hover {
	background: #5568d3;
	transform: translateY(-2px);
}

.btn-secondary {
	background: #6c757d;
	color: white;
}

.btn-secondary:hover {
	background: #5a6268;
	transform: translateY(-2px);
}

.btn-danger {
	background: #dc3545;
	color: white;
}

.btn-danger:hover {
	background: #c82333;
	transform: translateY(-2px);
}

.btn-success {
	background: #28a745;
	color: white;
}

.btn-success:hover {
	background: #218838;
	transform: translateY(-2px);
}

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

thead {
	background: #f8f9fa;
	border-bottom: 2px solid #ddd;
}

th {
	padding: 1rem;
	text-align: left;
	font-weight: 600;
	color: #333;
	text-transform: uppercase;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
}

td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #eee;
	color: #666;
}

tbody tr:hover {
	background: #f9f9f9;
}

/* Messages */
.error,
.alert-danger {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	border-left: 4px solid #721c24;
	padding: 1rem;
	margin-bottom: 1rem;
	border-radius: 4px;
}

.success,
.alert-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	border-left: 4px solid #155724;
	padding: 1rem;
	margin-bottom: 1rem;
	border-radius: 4px;
}

.info,
.alert-info {
	background-color: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
	border-left: 4px solid #0c5460;
	padding: 1rem;
	margin-bottom: 1rem;
	border-radius: 4px;
}

/* Cards */
.card {
	background: white;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-bottom: 1.5rem;
}

.card h2,
.card h3 {
	margin-top: 0;
}

/* Grid */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
	margin: 1.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
	main {
		padding: 1rem 0.5rem;
	}

	h1 {
		font-size: 1.5rem;
	}
	h2 {
		font-size: 1.3rem;
	}
	h3 {
		font-size: 1.1rem;
	}

	button,
	.btn,
	input,
	select,
	textarea {
		width: 100%;
	}

	.grid {
		grid-template-columns: 1fr;
	}

	table {
		font-size: 0.9rem;
	}

	th,
	td {
		padding: 0.5rem;
	}
}

/* Utilities */
.text-center {
	text-align: center;
}
.text-right {
	text-align: right;
}
.text-left {
	text-align: left;
}

.mt-1 {
	margin-top: 0.5rem;
}
.mt-2 {
	margin-top: 1rem;
}
.mt-3 {
	margin-top: 1.5rem;
}
.mt-4 {
	margin-top: 2rem;
}

.mb-1 {
	margin-bottom: 0.5rem;
}
.mb-2 {
	margin-bottom: 1rem;
}
.mb-3 {
	margin-bottom: 1.5rem;
}
.mb-4 {
	margin-bottom: 2rem;
}

.p-1 {
	padding: 0.5rem;
}
.p-2 {
	padding: 1rem;
}
.p-3 {
	padding: 1.5rem;
}
.p-4 {
	padding: 2rem;
}

.d-none {
	display: none;
}
.d-block {
	display: block;
}
.d-inline {
	display: inline;
}
.d-flex {
	display: flex;
}

.gap-1 {
	gap: 0.5rem;
}
.gap-2 {
	gap: 1rem;
}
.gap-3 {
	gap: 1.5rem;
}

/* Scrollbar */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #555;
}
