@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
	--primary: #6366f1;
	--primary-hover: #4f46e5;
	--bg-main: #f8fafc;
	--bg-card: rgba(255, 255, 255, 0.8);
	--border-color: rgba(226, 232, 240, 0.8);
	--text-main: #1e293b;
	--text-muted: #64748b;
	--shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

html,
body {
	height: 100%;
	font-family: 'Inter', sans-serif;
}

body {
	background-color: var(--bg-main);
	color: var(--text-main);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	letter-spacing: -0.011em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
}

.main-content {
	flex: 1;
}

/* Glassmorphism Styles */
.glass {
	background: var(--bg-card);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--border-color);
}

/* Sticky Footer */
footer {
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(8px);
	border-top: 1px solid var(--border-color);
}

/* Navbar */
.navbar-custom {
	background: rgba(255, 255, 255, 0.7) !important;
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
	padding: 0.5rem 0;
}

.navbar-brand span {
	background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.navbar-custom .text-white {
	color: var(--text-main) !important;
}

.navbar-custom .opacity-75 {
	color: var(--text-muted) !important;
}

/* Cards */
.card {
	border-radius: 12px;
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-soft);
	background: var(--bg-card);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	box-shadow: var(--shadow-lg);
}

/* Drop Zone */
#drop-zone {
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	padding: 40px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	background: rgba(255, 255, 255, 0.5);
}

#drop-zone:hover,
#drop-zone.drop-active {
	border-color: var(--primary);
	background: #f1f5f9;
	transform: translateY(-2px);
}

#drop-zone i {
	transition: transform 0.3s ease;
}

#drop-zone:hover i {
	transform: scale(1.1);
}

/* Terminal Log */
.log-container {
	background: #0f172a;
	color: #94a3b8;
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	font-size: 0.75rem;
	height: 120px;
	overflow-y: auto;
	padding: 12px;
	border-radius: 8px;
	line-height: 1.6;
}

.log-container div {
	padding-left: 8px;
	margin-bottom: 4px;
}

/* Peer ID Badge */
.peer-id-badge {
	background: #f1f5f9;
	color: var(--primary);
	font-weight: 500;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 0.85rem;
}

/* Roles */
.role-badge {
	font-size: 0.65rem;
	padding: 2px 8px;
	border-radius: 100px;
	text-transform: uppercase;
	font-weight: 700;
}

.role-admin {
	background: #fee2e2;
	color: #991b1b;
}

.role-user {
	background: #f1f5f9;
	color: #475569;
}

/* Online Presence */
.online-dot {
	width: 6px;
	height: 6px;
	background: #22c55e;
	border-radius: 50%;
	display: inline-block;
	margin-right: 8px;
	box-shadow: 0 0 8px #22c55e;
}

.user-item-online {
	cursor: pointer;
	transition: all 0.2s ease;
	border-radius: 8px;
	border: 1px solid transparent;
	margin-bottom: 4px;
}

.user-item-online:hover {
	background: white;
	border-color: var(--border-color);
	transform: translateX(4px);
}

/* Buttons */
.btn-primary {
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	border: none;
	font-weight: 500;
	padding: 0.6rem 1.25rem;
	border-radius: 8px;
	transition: all 0.2s;
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Modals */
.modal-content {
	border: none;
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: #e2e8f0;
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: #cbd5e1;
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.container {
	animation: fadeIn 0.4s ease-out;
}