@charset "utf-8";

:root {
	--bg-app: #eef1f5;
	--card-bg: #f8fafc;
	--text-main: #0f172a;
	--text-muted: #64748b;
	--border-card: #1e3a5f;
	--accent-orange: #e06c1b;
	--positive-green: #059669;
	--negative-red: #dc2626;
	--btn-bg: #cbd5e1;
	--btn-hover: #94a3b8;
	--btn-active: #64748b;
	--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--bg-app);
	font-family: var(--font-family);
	color: var(--text-main);
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 16px;
}

.app-viewport {
	width: 100%;
	max-width: 375px;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

/* Outer Card Container */
.stroid-card {
	width: 100%;
	background-color: #f3f4f6;
	border: 2px solid var(--border-card);
	border-radius: 16px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 12px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	position: relative;
	box-sizing: border-box;
}



/* Header Area */
.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.input-wrapper {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ticker-input {
	width: 150px;
	height: 38px;
	padding: 4px 6px 4px 12px;
	font-family: var(--font-family);
	font-size: 16px;
	font-weight: 500;
	color: #1e293b;
	background-color: #ffffff;
	border: 2px solid var(--accent-orange);
	border-radius: 4px;
	outline: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: box-shadow 0.2s ease;
}

.btn-icon-clear {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	font-size: 15px;
	padding: 0;
}


.ticker-input:focus {
	box-shadow: 0 0 0 3px rgba(224, 108, 27, 0.25);
}

.clock-wrapper {
	font-size: 22px;
	font-weight: 400;
	color: #1e293b;
	letter-spacing: 0.5px;
	font-variant-numeric: tabular-nums;
}

/* Main Display Area (Stock Quote Card) */
.quote-display-area {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	min-height: 280px;
	height: 280px;
	box-sizing: border-box;
}



.title-row .quote-title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: break-word;
}

.price-section {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.price-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 32px;
}

.main-price, .post-price {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.5px;
}

.price-change {
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
}

.market-volume-notice {
	font-size: 13px;
	color: var(--text-muted);
	font-weight: 500;
	min-height: 18px;
}


.market-time-notice {
	font-size: 13px;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 18px;
}




.secondary-section {
	border-top: 1px dashed #e2e8f0;
	padding-top: 10px;
	min-height: 58px;
}

.secondary-section.hidden {
	visibility: hidden !important;
	opacity: 0 !important;
	display: flex !important;
}






/* Spinner Overlay */
.spinner-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(1px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10;
}

.spinner {
	width: 32px;
	height: 32px;
	border: 3px solid #cbd5e1;
	border-top-color: var(--accent-orange);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.hidden {
	display: none !important;
}

/* Controls Area */
.controls-area {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.action-grid {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 4px;
	width: 100%;
}

.btn {
	font-family: var(--font-family);
	font-size: 13px;
	font-weight: 500;
	color: #0f172a;
	background: linear-gradient(180deg, #ffffff 0%, #e1e3e8 100%);
	border: 1px solid #b0b7c3;
	border-radius: 4px;
	cursor: pointer;
	user-select: none;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	height: 32px;
	transition: all 0.15s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn:hover {
	background: linear-gradient(180deg, #f8fafc 0%, #d4d8e2 100%);
	border-color: #94a3b8;
}

.btn:active {
	background: linear-gradient(180deg, #cbd5e1 0%, #e2e8f0 100%);
	color: #0f172a;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
	transform: translateY(1px);
}

.btn-action {
	flex: 1;
	padding: 0 2px;
}

.btn-main {
	flex: 1.2;
}

.btn-square {
	flex: 0.6;
	padding: 0 1px;
}


/* Toast Notification */
.toast {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: #ffffff;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 100;
	transition: opacity 0.3s ease, transform 0.3s ease;
}


.toast.hidden {
	opacity: 0;
	transform: translate(-50%, -50%) translateY(10px);
	pointer-events: none;
}