/* Auth Page Styles */
.auth-section {
	padding: 120px 0 80px;
	min-height: calc(100vh - 200px);
}

.auth-container {
	max-width: 500px;
	margin: 0 auto;
	background: #fff;
	padding: 50px;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.auth-tabs {
	display: flex;
	gap: 20px;
	margin-bottom: 40px;
	border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
	flex: 1;
	padding: 15px;
	text-align: center;
	cursor: pointer;
	border: none;
	background: transparent;
	font-size: 18px;
	font-weight: 600;
	color: #999;
	transition: all 0.3s;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
}

.auth-tab.active {
	color: #000;
	border-bottom-color: #000;
}

.auth-form {
	display: none;
}

.auth-form.active {
	display: block;
}

.form-group {
	margin-bottom: 25px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
}

.form-group input {
	width: 100%;
	padding: 15px 20px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	font-size: 16px;
	transition: all 0.3s;
}

.form-group input:focus {
	outline: none;
	border-color: #000;
}

.password-input-wrapper {
	position: relative;
	width: 100%;
}

.password-input-wrapper input {
	width: 100%;
	padding-right: 50px;
}

.password-toggle {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #999;
	font-size: 18px;
	transition: color 0.3s;
}

.password-toggle:hover {
	color: #333;
}

.btn-submit {
	width: 100%;
	padding: 15px;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	margin-top: 10px;
}

.btn-submit:hover {
	background: #333;
	transform: translateY(-2px);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.divider {
	text-align: center;
	margin: 30px 0;
	position: relative;
}

.divider::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 1px;
	background: #e0e0e0;
}

.divider span {
	background: #fff;
	padding: 0 15px;
	position: relative;
	color: #999;
}

.social-login {
	display: flex;
	gap: 15px;
}

.social-btn {
	flex: 1;
	padding: 12px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 600;
}

.social-btn:hover {
	border-color: #000;
}

.forgot-password {
	text-align: right;
	margin-top: -15px;
	margin-bottom: 20px;
}

.forgot-password a {
	color: #666;
	font-size: 14px;
	text-decoration: none;
}

.forgot-password a:hover {
	color: #000;
}

.terms-text {
	font-size: 13px;
	color: #666;
	margin-top: 20px;
	line-height: 1.6;
}

.terms-text a {
	color: #000;
	text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-body {
	background: var(--bg-color);
	margin: 0;
	padding: 0;
}

.dashboard-wrapper {
	display: flex;
	min-height: 100vh;
}

/* Mobile Menu Toggle - Hidden on Desktop */
.mobile-menu-toggle {
	display: none;
}

.mobile-overlay {
	display: none;
}

/* Sidebar Styles */
.dashboard-sidebar {
	width: 280px;
	background: var(--secondary-color);
	color: var(--primary-color);
	display: flex;
	flex-direction: column;
	position: fixed;
	height: 100vh;
	left: 0;
	top: 0;
	z-index: 1000;
	border-right: 1px solid var(--divider-color);
}

.sidebar-header {
	padding: 30px 20px;
	border-bottom: 1px solid var(--divider-color);
}

.logo-container {
	text-align: center;
}

.sidebar-logo {
	max-width: 120px;
	height: auto;
	display: inline-block;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
}

.user-avatar {
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: var(--primary-color);
	overflow: hidden;
}

.user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.user-details h4 {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 5px 0;
	color: var(--primary-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 160px;
}

.user-plan {
	font-size: 11px;
	color: var(--text-color);
	text-transform: uppercase;
	letter-spacing: 1px;
	background: var(--divider-color);
	padding: 4px 12px;
	border-radius: 12px;
	display: inline-block;
}

.sidebar-menu {
	flex: 1;
	padding: 20px 0;
	overflow-y: auto;
}

.sidebar-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-menu li {
	margin-bottom: 5px;
}

.sidebar-menu .menu-link {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 25px;
	color: var(--text-color);
	text-decoration: none;
	transition: all 0.3s ease;
	border-left: 3px solid transparent;
	position: relative;
}

.sidebar-menu .menu-link:hover {
	background: var(--divider-color);
	color: var(--primary-color);
}

.sidebar-menu li.active .menu-link {
	background: var(--divider-color);
	color: var(--primary-color);
	border-left-color: var(--accent-color);
}

.sidebar-menu .menu-link i {
	font-size: 18px;
	width: 20px;
}

.sidebar-menu .menu-link span {
	font-size: 15px;
	font-weight: 500;
}

.sidebar-footer {
	padding: 20px;
	border-top: 1px solid var(--divider-color);
}

.sidebar-bottom-menu {
	margin-bottom: 20px;
}

.sidebar-bottom-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-bottom-menu li {
	margin-bottom: 5px;
}

.sidebar-bottom-menu .menu-link {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 12px 20px;
	color: var(--text-color);
	text-decoration: none;
	transition: all 0.3s ease;
	border-radius: 8px;
	border-left: 3px solid transparent;
}

.sidebar-bottom-menu .menu-link:hover {
	background: var(--divider-color);
	color: var(--primary-color);
}

.sidebar-bottom-menu li.active .menu-link {
	background: var(--divider-color);
	color: var(--primary-color);
	border-left-color: var(--accent-color);
}

.sidebar-bottom-menu .menu-link i {
	font-size: 16px;
	width: 20px;
}

.sidebar-bottom-menu .menu-link span {
	font-size: 14px;
	font-weight: 500;
}

/* User Info Section */
.user-info {
	cursor: pointer;
	padding: 10px;
	border-radius: 8px;
	transition: all 0.3s ease;
	margin-bottom: 15px;
}

.user-info:hover {
	background: var(--divider-color);
}

.logout-btn {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 20px;
	color: var(--text-color);
	text-decoration: none;
	transition: all 0.3s ease;
	border-radius: 8px;
}

.logout-btn:hover {
	background: rgba(230, 87, 87, 0.1);
	color: var(--error-color);
}

.logout-btn i {
	font-size: 18px;
}

/* Main Content Styles */
.dashboard-content {
	margin-left: 280px;
	flex: 1;
	padding: 40px;
	background: var(--bg-color);
}

.page-content {
	display: none;
}

.page-content.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.page-header {
	margin-bottom: 40px;
}

.page-header h1 {
	font-size: 32px;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 10px;
}

.page-header p {
	font-size: 16px;
	color: var(--text-color);
}

/* Stats Grid */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.stat-card {
	background: var(--secondary-color);
	padding: 25px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	gap: 20px;
	border: 1px solid var(--divider-color);
	transition: all 0.3s ease;
}

.stat-card:hover {
	transform: translateY(-3px);
	border-color: var(--dark-divider-color);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: var(--primary-color);
}

/* History Items */
.history-item {
	background: var(--secondary-color);
	border: 1px solid var(--divider-color);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	transition: all 0.3s ease;
}

.history-item:hover {
	border-color: var(--dark-divider-color);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.history-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--divider-color);
}

.history-thumbnail {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	border: 2px solid var(--divider-color);
}

.history-info {
	flex: 1;
}

.history-filename {
	font-size: 18px;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 5px;
}

.history-meta {
	font-size: 14px;
	color: var(--text-color);
	display: flex;
	gap: 15px;
	align-items: center;
}

.history-type {
	background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: white;
}

.history-date {
	color: var(--text-color);
}

.history-content {
	margin-top: 15px;
}

.history-story {
	font-size: 15px;
	line-height: 1.6;
	color: var(--primary-color);
	margin-bottom: 15px;
	padding: 15px;
	background: rgba(169, 62, 23, 0.05);
	border-left: 3px solid var(--accent-color);
	border-radius: 6px;
}

.history-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
}

.history-detail-box {
	background: rgba(0, 0, 0, 0.2);
	padding: 15px;
	border-radius: 8px;
	border: 1px solid var(--divider-color);
}

.history-detail-box h4 {
	font-size: 14px;
	font-weight: 600;
	color: var(--accent-color);
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.history-labels,
.history-emotions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.history-label,
.history-emotion {
	background: var(--divider-color);
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: var(--primary-color);
}

.history-ocr {
	font-size: 13px;
	line-height: 1.6;
	color: var(--text-color);
	max-height: 150px;
	overflow-y: auto;
}


.stat-info h3 {
	font-size: 28px;
	font-weight: 700;
	color: var(--primary-color);
	margin: 0 0 5px 0;
}

.stat-info p {
	font-size: 14px;
	color: var(--text-color);
	margin: 0;
}

.stat-sub-metric {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 6px;
	color: #A7AABB;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.stat-sub-metric:not(:empty)::before {
	content: "•";
	color: var(--text-color);
	font-weight: 700;
}

/* Content Section */
.content-section {
	background: var(--secondary-color);
	padding: 30px;
	border-radius: 12px;
	margin-bottom: 30px;
	border: 1px solid var(--divider-color);
}

.content-section h2 {
	font-size: 22px;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 25px;
}

/* Quick Actions */
.quick-actions {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.action-btn-dash {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 25px;
	background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
	color: var(--primary-color);
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.action-btn-dash:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(169, 62, 23, 0.4);
	opacity: 0.9;
}

.action-btn-dash i {
	font-size: 18px;
}

/* Activity Box */
.activity-box {
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 60px 20px;
}

.empty-state i {
	font-size: 64px;
	color: var(--divider-color);
	margin-bottom: 20px;
}

.empty-state p {
	font-size: 18px;
	color: var(--text-color);
	margin-bottom: 5px;
}

.empty-state small {
	font-size: 14px;
	color: var(--text-color);
	opacity: 0.7;
}

/* Upload Area */
.upload-area {
	text-align: center;
	padding: 80px 40px;
	border: 2px dashed var(--divider-color);
	border-radius: 12px;
	background: var(--divider-color);
	transition: all 0.3s ease;
	cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
	border-color: var(--accent-color);
	background: var(--dark-divider-color);
}

.upload-area i {
	font-size: 64px;
	color: var(--text-color);
	margin-bottom: 20px;
}

.upload-area h3 {
	font-size: 22px;
	color: var(--primary-color);
	margin-bottom: 10px;
}

.upload-area p {
	font-size: 16px;
	color: var(--text-color);
	margin-bottom: 25px;
}

/* Upload Progress */
#upload-progress,
#upload-audio-progress {
	margin-top: 30px;
	text-align: center;
	width: 100%;
}

.progress-bar {
	width: 100%;
	height: 8px;
	background: var(--divider-color);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 15px;
}

#upload-audio-progress .progress-bar {
	margin-left: auto;
	margin-right: auto;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
	transition: width 0.3s ease;
	width: 0%;
}

#progress-text,
#audio-progress-text {
	color: var(--text-color);
	font-size: 14px;
	margin: 0;
	display: block;
	text-align: center;
	width: 100%;
}

/* Upload Results */
#upload-results,
#upload-audio-results {
	margin-top: 30px;
}

#upload-results h3,
#upload-audio-results h3 {
	color: var(--primary-color);
	font-size: 20px;
	margin-bottom: 20px;
}

#results-container,
#audio-results-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.result-item {
	background: var(--bg-color);
	border: 1px solid var(--divider-color);
	border-radius: 8px;
	padding: 20px;
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.result-item.success {
	border-left: 4px solid #4caf50;
}

.result-item.error {
	border-left: 4px solid var(--error-color);
}

.result-image {
	flex-shrink: 0;
	width: 200px;
	height: 200px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--secondary-color);
}

.result-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.result-content {
	flex: 1;
}

.result-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
}

.result-header i {
	font-size: 20px;
}

.result-item.success .result-header i {
	color: #4caf50;
}

.result-item.error .result-header i {
	color: var(--error-color);
}

.result-header strong {
	color: var(--primary-color);
	font-size: 16px;
}

.result-story,
.result-labels,
.result-ocr,
.result-error {
	margin-top: 10px;
}

.result-story p,
.result-labels p,
.result-ocr p,
.result-error p {
	color: var(--text-color);
	font-size: 14px;
	line-height: 1.6;
	margin: 5px 0;
}

.result-story p strong,
.result-labels p strong,
.result-ocr p strong {
	color: var(--primary-color);
}

.result-emotions {
	margin-top: 10px;
}

.result-emotions p {
	color: var(--text-color);
	font-size: 14px;
	margin: 5px 0;
}

.result-emotions p strong {
	color: var(--primary-color);
}

.result-emotions ul {
	list-style: none;
	padding: 0;
	margin: 10px 0 0 0;
}

.result-emotions li {
	color: var(--text-color);
	font-size: 14px;
	padding: 5px 0;
	border-bottom: 1px solid var(--divider-color);
}

.result-emotions li:last-child {
	border-bottom: none;
}

.empty-results {
	color: var(--text-color);
	text-align: center;
	padding: 20px;
}

.btn-upload {
	padding: 15px 35px;
	background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
	color: var(--primary-color);
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-upload:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(169, 62, 23, 0.4);
	opacity: 0.9;
}

/* Settings */
.settings-group {
	margin-bottom: 30px;
}

.settings-group h3 {
	font-size: 18px;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 20px;
}

.setting-item {
	padding: 15px 0;
	border-bottom: 1px solid var(--divider-color);
}

.setting-item:last-child {
	border-bottom: none;
}

.setting-item label {
	display: block;
	font-size: 13px;
	color: var(--text-color);
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.7;
}

.setting-item p {
	font-size: 16px;
	color: var(--primary-color);
	margin: 0;
}

.setting-item code {
	background: #f5f5f5;
	padding: 2px 6px;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
	font-size: 13px;
	color: #e83e8c;
}

/* AI Status */
.ai-status {
	padding: 15px;
	border-radius: 8px;
	background: #f8f9fa;
}

.ai-status i {
	margin-right: 8px;
}

/* Profile Logout Button */
.btn-logout-profile {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 15px 30px;
	background: transparent;
	border: 2px solid var(--error-color);
	color: var(--error-color);
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	width: fit-content;
}

.btn-logout-profile:hover {
	background: var(--error-color);
	color: var(--primary-color);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(230, 87, 87, 0.4);
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet and below */
@media screen and (max-width: 1024px) {
	.dashboard-sidebar {
		width: 240px;
	}
	
	.dashboard-content {
		margin-left: 240px;
	}
	
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile landscape and below */
@media screen and (max-width: 768px) {
	/* Auth Page Mobile */
	.auth-section {
		padding: 60px 20px 40px;
	}
	
	.auth-container {
		padding: 30px 20px;
	}
	
	.auth-tab {
		font-size: 16px;
		padding: 12px;
	}
	
	/* Dashboard Mobile */
	.dashboard-sidebar {
		width: 280px;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
	}
	
	.dashboard-sidebar.mobile-open {
		transform: translateX(0);
	}
	
	.dashboard-content {
		margin-left: 0;
		width: 100%;
		padding: 80px 20px 20px;
	}
	
	/* Mobile Menu Toggle Button */
	.mobile-menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: fixed;
		top: 20px;
		left: 20px;
		width: 50px;
		height: 50px;
		background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
		border: none;
		border-radius: 12px;
		cursor: pointer;
		z-index: 1001;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
		transition: all 0.3s ease;
	}
	
	.mobile-menu-toggle:active {
		transform: scale(0.95);
	}
	
	.mobile-menu-toggle i {
		color: var(--primary-color);
		font-size: 20px;
		transition: transform 0.3s ease;
	}
	
	/* Mobile Overlay */
	.mobile-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.7);
		z-index: 999;
	}
	
	.mobile-overlay.active {
		display: block;
	}
	
	/* Stats Grid - Single Column */
	.stats-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.stat-card {
		padding: 20px;
	}
	
	/* Page Header */
	.page-header {
		margin-bottom: 25px;
	}
	
	.page-header h1 {
		font-size: 24px;
	}
	
	.page-header p {
		font-size: 14px;
	}
	
	/* Content Section */
	.content-section {
		padding: 20px;
	}
	
	/* Upload Area */
	.upload-area {
		padding: 30px 20px;
	}
	
	.upload-area i {
		font-size: 40px;
	}
	
	.upload-area h3 {
		font-size: 16px;
		margin: 15px 0 8px;
	}
	
	.upload-area p {
		font-size: 13px;
	}
	
	/* Results */
	.result-item {
		flex-direction: column;
		padding: 15px;
	}
	
	.result-image {
		width: 100%;
		height: auto;
		max-height: 250px;
	}
	
	.result-image img {
		border-radius: 8px;
	}
	
	.result-content {
		width: 100%;
	}
	
	.result-story p,
	.result-labels p,
	.result-ocr p {
		font-size: 13px;
	}
	
	/* History Items */
	.history-item {
		padding: 15px;
	}
	
	.history-header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.history-thumbnail {
		width: 100%;
		height: auto;
		max-height: 200px;
		object-fit: cover;
	}
	
	.history-filename {
		font-size: 16px;
		word-break: break-word;
	}
	
	.history-meta {
		flex-direction: column;
		gap: 8px;
		align-items: flex-start;
	}
	
	.history-details {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	
	.history-detail-box {
		padding: 12px;
	}
	
	.history-story {
		font-size: 14px;
		padding: 12px;
	}
	
	/* Credits Display */
	.credits-display {
		padding: 15px;
	}
	
	.credit-item {
		padding: 12px 15px;
	}
	
	.credit-amount {
		font-size: 20px;
	}
	
	/* Sidebar adjustments when open on mobile */
	.sidebar-header {
		padding: 20px 15px;
	}
	
	.sidebar-content {
		padding: 0 10px;
	}
	
	.menu-link {
		padding: 12px 15px;
		font-size: 14px;
	}
	
	.user-details h4 {
		max-width: 180px;
	}
}

/* Mobile portrait */
@media screen and (max-width: 480px) {
	/* Auth Page */
	.auth-container {
		padding: 25px 15px;
		border-radius: 15px;
	}
	
	.auth-tab {
		font-size: 14px;
		padding: 10px;
	}
	
	.form-group input {
		padding: 12px 15px;
		font-size: 14px;
	}
	
	.btn-submit {
		padding: 12px;
		font-size: 14px;
	}
	
	/* Dashboard */
	.mobile-menu-toggle {
		width: 45px;
		height: 45px;
		top: 15px;
		left: 15px;
	}
	
	.dashboard-content {
		padding: 70px 15px 15px;
	}
	
	.page-header h1 {
		font-size: 20px;
	}
	
	.page-header p {
		font-size: 13px;
	}
	
	.content-section {
		padding: 15px;
	}
	
	/* Stats */
	.stat-card {
		padding: 15px;
		gap: 15px;
	}
	
	.stat-icon {
		width: 50px;
		height: 50px;
		font-size: 20px;
	}
	
	.stat-info h3 {
		font-size: 20px;
	}
	
	.stat-info p {
		font-size: 11px;
	}
	
	/* Upload */
	.upload-area {
		padding: 25px 15px;
	}
	
	.upload-area i {
		font-size: 35px;
	}
	
	.upload-area h3 {
		font-size: 15px;
	}
	
	.btn-upload {
		padding: 12px 25px;
		font-size: 14px;
	}
	
	/* Progress */
	.progress-bar {
		height: 6px;
	}
	
	#progress-text {
		font-size: 13px;
	}
	
	/* Results */
	.result-item {
		padding: 12px;
	}
	
	.result-item h4 {
		font-size: 14px;
	}
	
	.result-story,
	.result-labels,
	.result-ocr,
	.result-emotions {
		padding: 10px;
		margin-top: 10px;
	}
	
	.result-story p,
	.result-labels p,
	.result-ocr p,
	.result-emotions p {
		font-size: 12px;
	}
	
	/* History */
	.history-item {
		padding: 12px;
		margin-bottom: 15px;
	}
	
	.history-filename {
		font-size: 14px;
	}
	
	.history-type {
		font-size: 10px;
		padding: 3px 10px;
	}
	
	.history-date {
		font-size: 12px;
	}
	
	.history-story {
		font-size: 13px;
		padding: 10px;
	}
	
	.history-detail-box h4 {
		font-size: 12px;
	}
	
	.history-label,
	.history-emotion {
		font-size: 11px;
		padding: 5px 10px;
	}
	
	.history-ocr {
		font-size: 12px;
		max-height: 100px;
	}
	
	/* Credits */
	.credit-item {
		padding: 10px 12px;
	}
	
	.credit-icon {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}
	
	.credit-label {
		font-size: 11px;
	}
	
	.credit-amount {
		font-size: 18px;
	}
	
	/* Settings */
	.settings-group h3 {
		font-size: 16px;
	}
	
	.setting-item {
		padding: 12px 0;
	}
	
	.setting-item label {
		font-size: 11px;
	}
	
	.setting-item p {
		font-size: 14px;
	}
	
	/* Buttons */
	.btn-logout-profile {
		width: 100%;
		justify-content: center;
		padding: 12px 20px;
		font-size: 14px;
	}
	
	/* Empty States */
	.empty-state i {
		font-size: 40px;
	}
	
	.empty-state p {
		font-size: 14px;
	}
	
	.empty-state small {
		font-size: 12px;
	}
	
	/* Activity Box */
	.activity-box {
		padding: 15px;
	}
}

/* Extra small devices */
@media screen and (max-width: 360px) {
	.auth-container {
		padding: 20px 12px;
	}
	
	.mobile-menu-toggle {
		width: 40px;
		height: 40px;
		top: 12px;
		left: 12px;
	}
	
	.mobile-menu-toggle i {
		font-size: 18px;
	}
	
	.dashboard-content {
		padding: 65px 12px 12px;
	}
	
	.page-header h1 {
		font-size: 18px;
	}
	
	.content-section {
		padding: 12px;
	}
	
	.stat-card {
		flex-direction: column;
		text-align: center;
	}
	
	.upload-area h3 {
		font-size: 14px;
	}
	
	.btn-upload {
		padding: 10px 20px;
		font-size: 13px;
	}
}

/* Profile Image Styles */
.profile-image-preview {
	width: 120px;
	height: 120px;
	background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	color: var(--primary-color);
	overflow: hidden;
	flex-shrink: 0;
}

.profile-image-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.btn-upload-profile {
	background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
	color: var(--primary-color);
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.btn-upload-profile:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(169, 62, 23, 0.3);
}

.btn-upload-profile i {
	font-size: 16px;
}
/* Timeline Page Styles */
.timeline-info-box {
	background: var(--divider-color);
	padding: 25px;
	border-radius: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.timeline-cost-info {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	flex: 1;
}

.timeline-cost-info i {
	font-size: 32px;
	color: var(--accent-color);
	margin-top: 5px;
}

.timeline-cost-info strong {
	font-size: 18px;
	color: var(--primary-color);
	display: block;
	margin-bottom: 8px;
}

.timeline-cost-info p {
	margin: 0;
	color: var(--text-color);
	font-size: 14px;
}

.timeline-cost-info span {
	color: var(--primary-color);
	font-weight: 600;
}

.btn-generate-timeline {
	background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
	color: var(--primary-color);
	border: none;
	padding: 15px 30px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.btn-generate-timeline:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(169, 62, 23, 0.4);
}

.btn-generate-timeline:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.timeline-loading {
	text-align: center;
	padding: 60px 20px;
}

.timeline-loading i {
	font-size: 48px;
	color: var(--accent-color);
	margin-bottom: 20px;
}

.timeline-loading p {
	font-size: 18px;
	color: var(--primary-color);
	margin: 10px 0;
}

.timeline-loading small {
	color: var(--text-color);
	font-size: 14px;
}

.timeline-story {
	background: var(--divider-color);
	padding: 30px;
	border-radius: 12px;
	font-size: 16px;
	line-height: 1.8;
	color: var(--text-color);
	border-left: 4px solid var(--accent-color);
	width: 100%;
	max-width: 980px;
	box-sizing: border-box;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	overflow-x: hidden;
}

.timeline-story p {
	margin: 0 0 22px;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.timeline-story p:last-child {
	margin-bottom: 0;
}

/* Timeline Visual */
.timeline-visual {
	position: relative;
	padding: 60px 0;
	margin: 40px 0;
}

.timeline-line {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 4px;
	background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
	border-radius: 2px;
	transform: translateY(-50%);
}

.timeline-points {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 2;
}

.timeline-point {
	position: relative;
	width: 24px;
	height: 24px;
	background: var(--primary-color);
	border: 4px solid var(--accent-color);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s;
	z-index: 3;
}

.timeline-point:hover {
	transform: scale(1.5);
	border-width: 5px;
	box-shadow: 0 0 20px rgba(169, 62, 23, 0.6);
}

.timeline-point.high-importance {
	width: 32px;
	height: 32px;
	border-width: 5px;
}

.timeline-preview {
	position: absolute;
	bottom: calc(100% + 20px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--bg-color);
	border: 2px solid var(--accent-color);
	border-radius: 12px;
	padding: 15px;
	min-width: 280px;
	max-width: 350px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
	z-index: 1000;
	white-space: normal;
}

.timeline-point:hover .timeline-preview,
.timeline-point.active .timeline-preview {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(-10px);
}

.timeline-preview::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 10px solid transparent;
	border-top-color: var(--accent-color);
}

.timeline-preview img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 10px;
}

.timeline-preview-audio {
	text-align: center;
	padding: 20px;
}

.timeline-preview-audio i {
	font-size: 32px;
	color: var(--accent-color);
	margin-bottom: 10px;
	display: block;
}

.btn-play-audio {
	background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
	color: var(--primary-color);
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	transition: all 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.btn-play-audio i {
	font-size: 12px;
}

.btn-play-audio:hover {
	transform: scale(1.05);
}

.timeline-preview-content h4 {
	color: var(--primary-color);
	font-size: 14px;
	margin: 0 0 8px 0;
	font-weight: 600;
}

.timeline-preview-content p {
	color: var(--text-color);
	font-size: 13px;
	margin: 5px 0;
	line-height: 1.4;
}

.timeline-preview-date {
	font-size: 12px;
	color: var(--accent-color);
	margin-top: 8px;
}

/* Mobile Timeline */
@media screen and (max-width: 768px) {
	.timeline-info-box {
		flex-direction: column;
		align-items: stretch;
	}
	
	.btn-generate-timeline {
		width: 100%;
		justify-content: center;
	}
	
	.timeline-point {
		width: 20px;
		height: 20px;
	}
	
	.timeline-point.high-importance {
		width: 26px;
		height: 26px;
	}
	
	.timeline-preview {
		position: fixed;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		max-width: 90%;
		z-index: 10000;
	}
	
	.timeline-point.active .timeline-preview {
		transform: translate(-50%, -50%);
	}
}
