/**
 * SIMTEM - Sistem Informasi Manajemen Tempe Bima
 * Admin Panel CSS - Green Theme
 */

:root {
	--primary-green: #2c5530;
	--secondary-green: #4a7c59;
	--light-green: #e8f5e8;
	--dark-green: #1a3d1f;
	--accent-green: #6b8e23;
	--success-green: #28a745;
	--warning-orange: #ffc107;
	--danger-red: #dc3545;
	--info-blue: #17a2b8;
	--light-gray: #f8f9fa;
	--medium-gray: #6c757d;
	--dark-gray: #343a40;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	background-color: #f4f6f9;
	color: #333;
}

/* ==================== LOGIN PAGE ==================== */
.login-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--light-green), var(--primary-green));
}

.login-box {
	background: white;
	padding: 2.5rem;
	border-radius: 15px;
	box-shadow: 0 15px 35px rgba(44, 85, 48, 0.1);
	width: 100%;
	max-width: 400px;
	text-align: center;
}

.login-logo {
	width: 80px;
	height: 80px;
	background: var(--primary-green);
	border-radius: 50%;
	margin: 0 auto 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 2rem;
	font-weight: bold;
}

.login-title {
	color: var(--primary-green);
	margin-bottom: 0.5rem;
	font-size: 1.8rem;
	font-weight: 600;
}

.login-subtitle {
	color: var(--medium-gray);
	margin-bottom: 2rem;
	font-size: 0.9rem;
}

/* ==================== FORM STYLES ==================== */
.form-group {
	margin-bottom: 1.5rem;
	text-align: left;
}

.form-label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--dark-gray);
	font-weight: 500;
}

.form-control {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.3s ease;
}

.form-control:focus {
	outline: none;
	border-color: var(--secondary-green);
	box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

/* ==================== BUTTONS ==================== */
.btn {
	display: inline-block;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.btn-primary {
	background: linear-gradient(
		135deg,
		var(--primary-green),
		var(--secondary-green)
	);
	color: white;
}

.btn-primary:hover {
	background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
}

.btn-success {
	background: var(--success-green);
	color: white;
}

.btn-warning {
	background: var(--warning-orange);
	color: #333;
}

.btn-danger {
	background: var(--danger-red);
	color: white;
}

.btn-outline {
	background: transparent;
	border: 2px solid var(--secondary-green);
	color: var(--secondary-green);
}

.btn-outline:hover {
	background: var(--secondary-green);
	color: white;
}

.btn-full {
	width: 100%;
}

/* ==================== ADMIN LAYOUT ==================== */
.admin-container {
	display: flex;
	min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
	width: 260px;
	background: var(--primary-green);
	color: white;
	position: fixed;
	height: 100vh;
	overflow-y: auto;
	z-index: 1000;
}

.sidebar-header {
	padding: 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}

.sidebar-logo {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 0.5rem;
}

.sidebar-subtitle {
	font-size: 0.8rem;
	opacity: 0.8;
}

.sidebar-menu {
	padding: 1rem 0;
}

.menu-item {
	display: block;
	padding: 12px 1.5rem;
	color: white;
	text-decoration: none;
	transition: all 0.3s ease;
	border-left: 3px solid transparent;
}

.menu-item:hover,
.menu-item.active {
	background: rgba(255, 255, 255, 0.1);
	border-left-color: var(--accent-green);
	color: white;
}

.menu-item i {
	margin-right: 10px;
	width: 20px;
}

/* MAIN CONTENT */
.main-content {
	flex: 1;
	margin-left: 260px;
	background: #f4f6f9;
}

.main-header {
	background: white;
	padding: 1rem 2rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: between;
	align-items: center;
}

.header-title {
	color: var(--primary-green);
	font-size: 1.5rem;
	font-weight: 600;
}

.header-user {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.user-info {
	text-align: right;
}

.user-name {
	font-weight: 500;
	color: var(--primary-green);
}

.user-role {
	font-size: 0.8rem;
	color: var(--medium-gray);
}

.content-wrapper {
	padding: 2rem;
}

/* ==================== CARDS ==================== */
.card {
	background: white;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	margin-bottom: 2rem;
	overflow: hidden;
}

.card-header {
	padding: 1.5rem;
	background: var(--light-green);
	border-bottom: 1px solid #e9ecef;
	color: var(--primary-green);
	font-weight: 600;
}

.card-body {
	padding: 1.5rem;
}

.card-footer {
	padding: 1rem 1.5rem;
	background: #f8f9fa;
	border-top: 1px solid #e9ecef;
}

/* ==================== DASHBOARD WIDGETS ==================== */
.dashboard-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.widget {
	background: white;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	text-align: center;
	transition: transform 0.3s ease;
	cursor: pointer;
	border: 2px solid transparent;
}

.widget:hover {
	transform: translateY(-5px);
	border-color: var(--secondary-green);
}

.widget-icon {
	width: 70px;
	height: 70px;
	background: var(--light-green);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	font-size: 2rem;
	color: var(--primary-green);
}

.widget-title {
	color: var(--primary-green);
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.widget-desc {
	color: var(--medium-gray);
	font-size: 0.9rem;
}

/* ==================== TABLES ==================== */
.table-responsive {
	overflow-x: auto;
}

.table {
	width: 100%;
	margin-bottom: 0;
	background: transparent;
	border-collapse: collapse;
}

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

.table th {
	background: var(--light-green);
	color: var(--primary-green);
	font-weight: 600;
}

.table tbody tr:hover {
	background: #f8f9fa;
}

/* ==================== ALERTS ==================== */
.alert {
	padding: 1rem 1.5rem;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.alert-success {
	background: rgba(40, 167, 69, 0.1);
	border: 1px solid var(--success-green);
	color: var(--success-green);
}

.alert-warning {
	background: rgba(255, 193, 7, 0.1);
	border: 1px solid var(--warning-orange);
	color: #856404;
}

.alert-danger {
	background: rgba(220, 53, 69, 0.1);
	border: 1px solid var(--danger-red);
	color: var(--danger-red);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
	.sidebar {
		width: 100%;
		height: auto;
		position: relative;
	}

	.main-content {
		margin-left: 0;
	}

	.dashboard-widgets {
		grid-template-columns: 1fr;
	}

	.main-header {
		padding: 1rem;
	}

	.content-wrapper {
		padding: 1rem;
	}
}

/* ==================== UTILITIES ==================== */
.text-center {
	text-align: center;
}
.text-right {
	text-align: right;
}
.text-success {
	color: var(--success-green);
}
.text-warning {
	color: var(--warning-orange);
}
.text-danger {
	color: var(--danger-red);
}
.text-primary {
	color: var(--primary-green);
}

.mb-0 {
	margin-bottom: 0;
}
.mb-1 {
	margin-bottom: 0.5rem;
}
.mb-2 {
	margin-bottom: 1rem;
}
.mb-3 {
	margin-bottom: 1.5rem;
}
.mb-4 {
	margin-bottom: 2rem;
}

.mt-0 {
	margin-top: 0;
}
.mt-1 {
	margin-top: 0.5rem;
}
.mt-2 {
	margin-top: 1rem;
}
.mt-3 {
	margin-top: 1.5rem;
}
.mt-4 {
	margin-top: 2rem;
}

.d-flex {
	display: flex;
}
.justify-content-between {
	justify-content: space-between;
}
.align-items-center {
	align-items: center;
}
.gap-1 {
	gap: 0.5rem;
}
.gap-2 {
	gap: 1rem;
}
.gap-3 {
	gap: 1.5rem;
}
