/**
 * Navigation Sidebar Styles
 * Chrome-like tabs with full height utilization
 */

/* App Container Layout */
.app-container {
	display: flex;
	width: 100%;
	height: 100vh;
	position: relative;
	z-index: 10;
	overflow: hidden;
	padding-left: 80px;
	/* Account for fixed sidebar */
}

/* Navigation Sidebar - Chrome-like Vertical Tabs */
.nav-sidebar {
	position: fixed;
	left: 0;
	top: 0;
	width: 80px;
	min-width: 80px;
	height: 100vh;
	background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.95) 100%);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	display: flex;
	flex-direction: column;
	padding: 0;
	box-shadow: 4px 0 30px rgba(0, 0, 0, 0.25);
	border-right: 1px solid rgba(255, 255, 255, 0.1);
	z-index: 9999;
	/* Always on top of everything */
}

/* Brand/Logo */
.nav-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 16px 8px;
	background: rgba(255, 255, 255, 0.05);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand-icon {
	font-size: 24px;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.nav-brand-text {
	display: none;
	font-size: 10px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 4px;
	text-align: center;
}

/* Navigation Items - Use Full Height */
.nav-items {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 8px 0;
}

/* Chrome-like Tab Style */
.nav-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 14px 8px;
	border: none;
	background: transparent;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	flex: 1;
	max-height: 90px;
	min-height: 65px;
	margin: 2px 6px;
	border-radius: 10px;
}

/* Inactive tab hover */
.nav-item:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* Active Chrome Tab Effect */
.nav-item.active {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(78, 205, 196, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Active indicator bar */
.nav-item.active::after {
	content: "";
	position: absolute;
	right: 0;
	top: 15%;
	height: 70%;
	width: 3px;
	background: linear-gradient(180deg, #4ecdc4, #a78bfa);
	border-radius: 3px 0 0 3px;
}

.nav-item.touching {
	transform: scale(0.97);
}

/* Nav Item Icon */
.nav-item-icon {
	font-size: 22px;
	transition: all 0.3s ease;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
	opacity: 0.7;
}

.nav-item:hover .nav-item-icon,
.nav-item.active .nav-item-icon {
	transform: scale(1.1);
	opacity: 1;
	filter: drop-shadow(0 2px 10px rgba(78, 205, 196, 0.4));
}

/* Nav Item Label - Always visible */
.nav-item-label {
	display: block;
	font-size: 9px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.5);
	margin-top: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}

.nav-item:hover .nav-item-label {
	color: rgba(255, 255, 255, 0.75);
}

.nav-item.active .nav-item-label {
	color: rgba(255, 255, 255, 0.95);
}

/* Navigation Footer */
.nav-footer {
	padding: 8px 4px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin-top: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.nav-clock {
	font-size: 11px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.admin-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 20px;
	text-decoration: none;
	transition: all 0.2s;
	opacity: 0.5;
}

.admin-link:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	opacity: 1;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Touch Ripple Effect */
.touch-ripple {
	position: absolute;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transform: scale(0);
	animation: ripple 0.6s ease-out;
	pointer-events: none;
	width: 100px;
	height: 100px;
	margin-left: -50px;
	margin-top: -50px;
}

@keyframes ripple {
	to {
		transform: scale(3);
		opacity: 0;
	}
}

/* Views Container */
.views-container {
	flex: 1;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.view-container {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateX(20px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

.view-container.active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.view-container.entering {
	opacity: 0;
	transform: translateX(20px);
}

.view-container.exiting {
	opacity: 0;
	transform: translateX(-20px);
}

/* View Header */
.view-header {
	padding: 24px 32px;
	background: linear-gradient(180deg, rgb(255 255 255 / 70%) 0%, rgba(255, 255, 255, 0.05) 100%);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid rgb(0 0 0 / 30%);
}

.view-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 28px;
	font-weight: 700;
	color: var(--text-dark);
	margin: 0;
}

.view-title-icon {
	font-size: 32px;
}

/* Calendar View Layout - uses existing sidebar */
.calendar-view-layout {
	display: flex;
	flex-direction: row;
	height: 100%;
	padding: 20px 24px 50px;
	gap: 20px;
	overflow: hidden;
}

/* Override container for new layout */
#view-calendar .left-sidebar {
	width: 340px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

#view-calendar .calendar-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}

/* Calendar Navigation Buttons */
.calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.calendar-nav-btn {
	width: 44px;
	height: 44px;
	border: none;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
	border-radius: 12px;
	font-size: 24px;
	color: var(--text-dark);
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.calendar-nav-btn:hover {
	background: linear-gradient(135deg, rgba(78, 205, 196, 0.3) 0%, rgba(167, 139, 250, 0.3) 100%);
	transform: scale(1.05);
}

.calendar-nav-btn:active {
	transform: scale(0.95);
}

/* Calendar slide animations */
.calendar-days.slide-left {
	animation: slideLeft 0.3s ease;
}

.calendar-days.slide-right {
	animation: slideRight 0.3s ease;
}

@keyframes slideLeft {
	0% {
		transform: translateX(0);
		opacity: 1;
	}

	50% {
		transform: translateX(-30px);
		opacity: 0;
	}

	51% {
		transform: translateX(30px);
		opacity: 0;
	}

	100% {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes slideRight {
	0% {
		transform: translateX(0);
		opacity: 1;
	}

	50% {
		transform: translateX(30px);
		opacity: 0;
	}

	51% {
		transform: translateX(-30px);
		opacity: 0;
	}

	100% {
		transform: translateX(0);
		opacity: 1;
	}
}
