/*
 * 
 *  @file              : main-nav.css
 *  @author            : Scott Grimes
 *  @organization      : Cortez Labs LLC
 *  @copyright         : Copyright (c) 2021-2030 by Cortez Labs LLC. All Rights Reserved.
 *  @last modified on  : 01-21-2026
 *  @last modified by  : Scott Grimes
 * 
 */

@import url('global-root-styles.css');

/* Body */
.mainbody { 
	font-family: 'Mona Sans', sans-serif;
	font-weight: 300;
}

/* Side Navigation Styles */
.sidenav {
	height: 100vh;
	width: 60px; /* Collapsed width */
	position: fixed;
	top: 0;
	left: 0;
	background-color: var(--standard-white);
	color: var(--standard-black);
	overflow-x: hidden;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	transition: width 0.3s ease;
}

.sidenav:hover {
	/* background-color: var(--orca-light-grey-color);
	color: var(--orca-primary-color); */
	width: 275px; /* Expanded width */
}

.sidenav:hover a {
	margin-left: 0.5rem !important;
	margin-right: 0.5rem !important;
	transition: margin 0.2s ease; /* Optional: smooth transition */
}

.sidenav-header {
	flex-shrink: 0;
	padding: 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	justify-content: center;
}

.sidenav:hover .sidenav-header {
	justify-content: center;
}

.sidenav-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	font-weight: 300;
}

.sidenav-footer {
	margin-top: auto;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidenav .logo {
	max-height: 40px;
	width: auto;
}

.nav-item {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: all 0.2s;
	gap: 0.75rem;
	overflow: hidden;
	white-space: nowrap;
}

.nav-item:hover {
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
	text-decoration: none;
}

.nav-item.active {
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
}

.nav-item .icon-container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 24px;
	min-width: 24px;
}

.user-info {
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: rgba(255, 255, 255, 0.75);
	overflow: hidden;
	white-space: nowrap;
}

.user-info .icon-container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 24px;
	min-width: 24px;
}

.logout-link {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: all 0.2s;
	gap: 0.75rem;
	overflow: hidden;
	white-space: nowrap;
}

.logout-link .icon-container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 24px;
	min-width: 24px;
}

.logout-link:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
	text-decoration: none;
}

/* Content Wrapper Styles */
.content-wrapper {
	min-height: 100vh;
	background-color: #f8f9fa;
}

.content-wrapper.with-nav {
	margin-left: 60px; /* Match collapsed sidenav width */
	transition: margin-left 0.3s ease;
}

/* Profile */
.profile-card { 
	max-width: 70%;
	margin: 0 auto;
	padding: .5rem;
}

/* Auth Container */
.auth-container {
	max-width: 70%;
	margin: 0 auto;
	padding: .5rem;
}

.status-card {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	padding: 2rem;
	margin-bottom: 1.5rem;
	transition: transform 0.2s;
}

.status-card:hover {
	transform: translateY(-2px);
}

.welcome-title {
	color: #2d3748;
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.status-text {
	color: #4a5568;
	font-size: 1rem;
	margin-bottom: 1.5rem;
}

.btn-custom {
	padding: 0.75rem 2rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all 0.2s;
}

.btn-custom:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.integration-status {
	padding: 0.5rem 1rem;
	border-radius: 6px;
	font-weight: 500;
	display: inline-block;
	margin-bottom: 1rem;
}

.status-connected {
	background-color: #c6f6d5;
	color: #2f855a;
}

.status-disconnected {
	background-color: #fed7d7;
	color: #c53030;
}

.orca-logo-main { 
	height: 40px;
	width: auto;
	max-height: 30px;
}

.orca-logo-icon {
	width: auto;
	max-width: 30px;
}

.collapsed-logo {
	display: flex;
	justify-content: center;
	align-items: center;
}

.expanded-logo {
	display: none;
}

.sidenav:hover .collapsed-logo {
	display: none;
}

.sidenav:hover .expanded-logo {
	display: block;
}

.orca-logo-inverted-main { 
	filter: brightness(0) invert(1);
}

.logo-container-main {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	max-height: 20px;
}

.sidenav:hover .logo-container-main {
	justify-content: center;
}

/* Updated Dropdown Styles */
.dropdown {
	position: relative;
	width: 100%;
}

.dropdown-menu {
	position: static !important;
	float: none;
	width: 100%;
	padding: 0;
	margin: 0;
	border: none;
	transform: none !important;
	inset: auto !important;
	background-color: #0f7aa8;
	border: 1px solid rgba(255, 255, 255, 0.1);
	display: block !important;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	opacity: 0;
	border-radius: unset !important;
}

.dropdown-menu.show {
	max-height: fit-content;
	opacity: 1;
	transition: max-height 0.3s ease-in, opacity 0.2s ease-in;
}

.dropdown-item {
	color: rgba(255, 255, 255, 0.75);
	padding: 0.75rem 1rem;
	padding-left: 3.5rem !important;
	white-space: nowrap;
	overflow: hidden;
}

.dropdown-item:hover { 
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
}

.nav-item .chevron {
	transition: transform 0.3s;
	margin-left: auto;
}

/* Add a head section to load Font Awesome properly */
.head-section {
	display: none;
}

.dropdown.show .chevron {
	transform: rotate(180deg);
}

.dropdown-logo { 
	max-height: 17px;
	width: auto;
}

/* Ensure text only appears on hover */
.menu-text {
	opacity: 0;
	transition: opacity 0.2s ease;
	font-weight: 400;
	font-family: 'Mona Sans', sans-serif;
}
.orca-logo-restrict-width { 
	max-width: 14px;
}
.sidenav:hover .menu-text {
	opacity: 1;
}