/* Main Styles for Gomi Calendar */

/* Global Styles */
body {
	padding-top: 56px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.container {
	width: 100%;
	padding-right: 15px;
	padding-left: 15px;
	margin-right: auto;
	margin-left: auto;
}

.footer {
	margin-top: auto;
	font-size: 0.9rem;
}

/* Sidebar Styles */
.sidebar {
	position: fixed;
	top: 56px;
	bottom: 0;
	left: 0;
	z-index: 100;
	padding: 0;
	box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
	overflow-y: auto;
	background-color: #f8f9fa;
}

.sidebar-sticky {
	position: relative;
	top: 0;
	height: calc(100vh - 56px);
	padding-top: 1rem;
	overflow-x: hidden;
	overflow-y: auto;
}

.sidebar .nav-link {
	font-weight: 500;
	color: #333;
	padding: 0.5rem 1rem;
}

.sidebar .nav-link.active {
	color: #007bff;
}

.sidebar-heading {
	font-size: 0.85rem;
	text-transform: uppercase;
	padding: 0.5rem 1rem;
	margin-bottom: 0.5rem;
	color: #6c757d;
}

.city-list, .district-list {
	max-height: 300px;
	overflow-y: auto;
	margin-bottom: 0.5rem;
}

/* Main Content */
main {
	margin-left: 16.666667%;
}

@media (max-width: 767.98px) {
	.sidebar {
		position: static;
		height: auto;
		padding-right: 0;
	}
	
	.sidebar-sticky {
		height: auto;
	}
	
	main {
		margin-left: 0;
	}
}

/* Alerts */
.alert {
	margin-bottom: 1rem;
}

/* Pagination */
.pagination {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

/* Forms */
.form-group {
	margin-bottom: 1rem;
}

.form-control-color {
	width: 3rem;
	height: calc(1.5em + 0.75rem + 2px);
	padding: 0.375rem;
}

/* Cards */
.card {
	margin-bottom: 1rem;
}

.card-header {
	padding: 0.75rem 1.25rem;
	background-color: rgba(0, 0, 0, 0.03);
	border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-body {
	padding: 1.25rem;
}

/* Tables */
.table-responsive {
	margin-bottom: 1rem;
}

/* Buttons */
.btn-action {
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	line-height: 1.5;
	border-radius: 0.2rem;
}

/* Utilities */
.bg-light-gray {
	background-color: #f8f9fa;
}

.text-truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cursor-pointer {
	cursor: pointer;
}

.border-dashed {
	border-style: dashed !important;
}

/* Custom ScrollBar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #555;
}