/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

/* Migrated to provided dashboard template styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%); color: #e2e8f0; font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; min-height: 100vh; line-height: 1.6; }

.header { background: rgba(15, 15, 35, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #334155; padding: 1.5rem 2rem; position: sticky; top: 0; z-index: 100; }
.header-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: .75rem; }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(45deg, #3b82f6, #06b6d4); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white; font-size: 1.2rem; }
.logo h1 { font-size: 1.5rem; font-weight: 700; color: #f1f5f9; }

.header-stats { display: flex; gap: 2rem; align-items: center; }
.stat-item { text-align: center; }
.stat-value { font-size: 1.25rem; font-weight: 600; color: #10b981; }
.stat-label { font-size: .875rem; color: #94a3b8; }

.container { max-width: 1400px; margin: 0 auto; padding: 2rem; }
.dashboard-header { margin-bottom: 2rem; }
.dashboard-title { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; background: linear-gradient(45deg, #3b82f6, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dashboard-subtitle { color: #94a3b8; font-size: 1rem; }

.filters { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-btn { padding: .5rem 1rem; background: rgba(51, 65, 85, 0.5); border: 1px solid #475569; border-radius: 8px; color: #e2e8f0; cursor: pointer; transition: all .3s ease; font-size: .875rem; }
.filter-btn:hover { background: rgba(59, 130, 246, 0.2); border-color: #3b82f6; }
.filter-btn.active { background: #3b82f6; border-color: #3b82f6; }

.bots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1.5rem; }
.bot-card { background: rgba(30, 41, 59, 0.6); backdrop-filter: blur(10px); border: 1px solid #475569; border-radius: 16px; padding: 1.5rem; transition: all .3s ease; position: relative; overflow: hidden; }
.bot-card:hover { transform: translateY(-5px); border-color: #3b82f6; box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1); }
.bot-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #3b82f6, #06b6d4); }

.bot-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.bot-pair { font-size: 1.25rem; font-weight: 700; color: #f1f5f9; }
.bot-direction { padding: .25rem .75rem; border-radius: 20px; font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.direction-long { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.direction-short { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.bot-paper-badge { margin-left: .5rem; padding: .125rem .5rem; border-radius: 6px; font-size: .625rem; font-weight: 700; letter-spacing: .05em; vertical-align: middle; background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }

.bot-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.info-item { display: flex; flex-direction: column; }
.info-label { font-size: .75rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.info-value { font-size: .875rem; font-weight: 600; color: #e2e8f0; }

.profit-positive { color: #10b981; }
.profit-negative { color: #ef4444; }

.profit-section { background: rgba(15, 23, 42, 0.5); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.profit-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.profit-item { text-align: center; }
.profit-value { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.profit-label { font-size: .75rem; color: #94a3b8; }

.progress-section { margin-bottom: 1.5rem; }
.progress-bar { background: rgba(51, 65, 85, 0.5); border-radius: 4px; height: 6px; overflow: hidden; margin-bottom: .5rem; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #06b6d4); border-radius: 4px; transition: width .3s ease; }
.progress-text { display: flex; justify-content: space-between; font-size: .75rem; color: #94a3b8; }

.action-button { width: 100%; padding: .75rem 1rem; background: linear-gradient(45deg, #3b82f6, #06b6d4); border: none; border-radius: 8px; color: white; font-weight: 600; cursor: pointer; transition: all .3s ease; font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; }
.action-button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }

.status-indicator { position: absolute; top: 1rem; right: 1rem; width: 12px; height: 12px; border-radius: 50%; animation: pulse 2s infinite; }
.status-active { background: #10b981; }
.status-paused { background: #f59e0b; }
.status-error { background: #ef4444; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

.mini-chart { height: 40px; background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.1) 50%, transparent 100%); border-radius: 4px; margin: .5rem 0; position: relative; overflow: hidden; }
.mini-chart::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #3b82f6, #06b6d4); transform: translateY(-1px); }

@media (max-width: 768px) {
  .container { padding: 1rem; }
  .bots-grid { grid-template-columns: 1fr; }
  .header-stats { display: none; }
  .filters { overflow-x: auto; padding-bottom: .5rem; }
  .profit-grid { grid-template-columns: 1fr; gap: .5rem; }
}

/* Simple flashes */
.notice { display: none; }
.alert { display: none; }

/* Toast notifications */
.toast-container {
  position: fixed;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none; /* allow clicks through gaps */
}
.toast-container.top-right { top: 1rem; right: 1rem; }
.toast-container.top-left { top: 1rem; left: 1rem; }
.toast-container.bottom-right { bottom: 1rem; right: 1rem; }
.toast-container.bottom-left { bottom: 1rem; left: 1rem; }
.toast-container.bottom-center { bottom: 1rem; left: 50%; transform: translateX(-50%); }

.toast {
  pointer-events: auto; /* enable interactions */
  min-width: 280px;
  max-width: 420px;
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid #475569;
  border-left: 4px solid #3b82f6;
  color: #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  transform: translateX(16px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.hide { animation: toastExit .25s ease forwards; }

@keyframes toastExit {
  to { opacity: 0; transform: translateX(16px) translateY(-4px); }
}

.toast-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1rem;
}
.toast-icon { font-size: 1.1rem; opacity: .9; }
.toast-message { font-size: .95rem; line-height: 1.35; }
.toast-close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
}
.toast-close:hover { color: #e2e8f0; }

.toast-progress {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.toast.toast--success { border-left-color: #10b981; }
.toast.toast--error { border-left-color: #ef4444; }
.toast.toast--warning { border-left-color: #f59e0b; }
.toast.toast--info { border-left-color: #3b82f6; }

/* Navbar user dropdown */
.user-menu { position: relative; }
.avatar-button { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9999px; border: 1px solid #334155; background: rgba(30,41,59,.6); color: #e2e8f0; cursor: pointer; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9999px; background: linear-gradient(135deg, #3b82f6, #06b6d4); color: white; font-weight: 700; }
.avatar.sm { width: 32px; height: 32px; font-size: .9rem; }
.dropdown-menu { position: absolute; right: 0; top: 52px; min-width: 220px; background: rgba(15, 23, 42, 0.98); border: 1px solid #334155; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); padding: .5rem; display: none; z-index: 1000; }
.dropdown-menu.show { display: block; animation: dropdownFade .12s ease-out; }
@keyframes dropdownFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-header { display: flex; align-items: center; gap: .75rem; padding: .5rem .5rem .25rem; }
.dropdown-user { display: flex; flex-direction: column; }
.dropdown-name { font-weight: 600; color: #e2e8f0; font-size: .95rem; }
.dropdown-divider { height: 1px; background: #334155; margin: .5rem 0; }
.dropdown-item { display: block; color: #cbd5e1; text-decoration: none; padding: .5rem .625rem; border-radius: 8px; }
.dropdown-item:hover { background: rgba(59, 130, 246, 0.15); color: #e2e8f0; }
.dropdown-item.danger:hover { background: rgba(239, 68, 68, 0.15); color: #fecaca; }

/* Double slider auth (namespaced to avoid conflicts) */
.double-auth { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 80px); padding: 2rem; }
.double-auth__form { background: #fff; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 0 50px; height: 100%; text-align: center; }

@media (max-width: 920px) {
  .auth-container { width: 100%; min-height: 620px; }
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');

.auth-container h1 {
	font-weight: bold;
	margin: 0;
}

.auth-container h2 {
	text-align: center;
}

.auth-container p {
	font-size: 14px;
	font-weight: 100;
	line-height: 20px;
	letter-spacing: 0.5px;
	margin: 20px 0 30px;
}

.auth-container span {
	font-size: 12px;
}

.auth-container a {
	color: #333;
	font-size: 14px;
	text-decoration: none;
	margin: 15px 0;
}

.auth-container button {
	border-radius: 20px;
	border: 1px solid #3b82f6;
	background-color: #3b82f6;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: bold;
	padding: 12px 45px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: transform 80ms ease-in;
}

.auth-container button:active {
	transform: scale(0.95);
}

.auth-container button:focus {
	outline: none;
}

.auth-container button.ghost {
	background-color: transparent;
	border-color: #FFFFFF;
}

.auth-form {
	background-color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 50px;
	height: 100%;
	text-align: center;
}

.auth-container input {
	background-color: #eee;
	border: none;
	padding: 12px 15px;
	margin: 8px 0;
	width: 100%;
}

.auth-container {
	background-color: #fff;
  font-family: 'Montserrat', sans-serif;
  color: #111827;
	border-radius: 10px;
  	box-shadow: 0 14px 28px rgba(0,0,0,0.25), 
			0 10px 10px rgba(0,0,0,0.22);
	position: relative;
	overflow: hidden;
	width: 768px;
	max-width: 100%;
	min-height: 480px;
}

.form-container {
	position: absolute;
	top: 0;
	height: 100%;
	transition: all 0.6s ease-in-out;
}

.sign-in-container {
	left: 0;
	width: 50%;
	z-index: 2;
}

.auth-container.right-panel-active .sign-in-container {
	transform: translateX(100%);
}

.sign-up-container {
	left: 0;
	width: 50%;
	opacity: 0;
	z-index: 1;
}

.auth-container.right-panel-active .sign-up-container {
	transform: translateX(100%);
	opacity: 1;
	z-index: 5;
	animation: show 0.6s;
}

@keyframes show {
	0%, 49.99% {
		opacity: 0;
		z-index: 1;
	}
	
	50%, 100% {
		opacity: 1;
		z-index: 5;
	}
}

.overlay-container {
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
	overflow: hidden;
	transition: transform 0.6s ease-in-out;
	z-index: 100;
}

.auth-container.right-panel-active .overlay-container{
	transform: translateX(-100%);
}

.overlay {
	background: #3b82f6;
	background: -webkit-linear-gradient(to right, #2b5dff, #b341ff);
	background: linear-gradient(to right, #2b5dff, #b341ff);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 0 0;
	color: #FFFFFF;
	position: relative;
	left: -100%;
	height: 100%;
	width: 200%;
  	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}

.auth-container.right-panel-active .overlay {
  	transform: translateX(50%);
}

.overlay-panel {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 40px;
	text-align: center;
	top: 0;
	height: 100%;
	width: 50%;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}

.overlay-left {
	transform: translateX(-20%);
}

.auth-container.right-panel-active .overlay-left {
	transform: translateX(0);
}

.overlay-right {
	right: 0;
	transform: translateX(0);
}

.auth-container.right-panel-active .overlay-right {
	transform: translateX(20%);
}

.social-container {
	margin: 20px 0;
}

.social-container a {
	border: 1px solid #DDDDDD;
	border-radius: 50%;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	margin: 0 5px;
	height: 40px;
	width: 40px;
}
