/* ========================================
   VARIABLES
   ======================================== */

:root {
	--color-primary: #242d38;
	--color-secondary: #6b7280;
	--color-sidebar-bg: #1f2937;
	--color-sidebar-text: #f3f4f6;
	--color-sidebar-border: #374151;
	--color-white: #ffffff;
	--color-border: #e5e7eb;
	--color-error: #dc2626;
	--color-success: #059669;
	--color-warning: #d97706;
	--color-info: #3b82f6;

	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

	--transition: 0.2s ease-in-out;
}

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

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	background-color: var(--color-white);
	color: var(--color-primary);
	line-height: 1.6;
}

.hidden {
	display: none !important;
}

.icon {
	width: 1.25rem;
	height: 1.25rem;
	stroke-width: 1.5;
}

/* ========================================
   LOGIN SCREEN
   ======================================== */

.login-screen {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 1rem;
	background-color: var(--color-white);
}

.login-container {
	background: var(--color-white);
	border-radius: 0.75rem;
	border: 1px solid var(--color-border);
	width: 100%;
	max-width: 24rem;
	padding: 3rem 2rem;
	box-shadow: var(--shadow-sm);
}

.login-header {
	text-align: center;
	margin-bottom: 2rem;
}

.login-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	background-color: var(--color-sidebar-bg);
	border-radius: 0.5rem;
	margin-bottom: 1.5rem;
}

.login-logo .icon {
	color: var(--color-sidebar-text);
}

.login-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
	letter-spacing: -0.01em;
}

.login-subtitle {
	font-size: 0.875rem;
	color: var(--color-secondary);
	line-height: 1.5;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-primary);
}

.form-input {
	padding: 0.75rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	font-size: 0.875rem;
	background-color: var(--color-white);
	transition: all var(--transition);
}

.form-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(36, 45, 56, 0.1);
}

.error-message {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: var(--color-error);
	padding: 0.875rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
}

.error-message.hidden {
	display: none;
}

.error-icon {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
}

.btn-primary {
	padding: 0.75rem 1rem;
	background-color: var(--color-primary);
	color: var(--color-white);
	border: none;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--transition);
}

.btn-primary:hover {
	background-color: #1a202c;
}

.btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ========================================
   DASHBOARD SCREEN
   ======================================== */

.dashboard-screen {
	display: flex;
	min-height: 100vh;
}

.dashboard-screen.hidden {
	display: none;
}

.overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.2);
	opacity: 0;
	transition: opacity var(--transition);
	z-index: 20;
}

.overlay.hidden {
	display: none;
}

.overlay:not(.hidden) {
	opacity: 1;
}

/* ========================================
   MOBILE HEADER
   ======================================== */

.mobile-header {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: var(--color-white);
	border-bottom: 1px solid var(--color-border);
	padding: 0.75rem 1rem;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	z-index: 10;
}

.menu-btn {
	padding: 0.5rem;
	background-color: transparent;
	border: none;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background-color var(--transition);
}

.menu-btn:hover {
	background-color: #f3f4f6;
}

.menu-btn .icon {
	color: var(--color-primary);
}

.mobile-header-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-primary);
}

.menu-btn-placeholder {
	width: 2.5rem;
}

/* ========================================
   SIDEBAR
   ======================================== */

.avatar-image {
	width: 20px;
}

.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 16rem;
	height: 100vh;
	background-color: var(--color-sidebar-bg);
	border-right: 1px solid var(--color-sidebar-border);
	display: flex;
	flex-direction: column;
	z-index: 30;
	transition: transform var(--transition);
}

.sidebar.mobile-closed {
	transform: translateX(-100%);
}

.sidebar-header {
	padding: 1.5rem 1rem;
	border-bottom: 1px solid #374151;
	flex-shrink: 0;
}

.sidebar-user-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.sidebar-avatar {
	width: 2.5rem;
	height: 2.5rem;
	background-color: #374151;
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.sidebar-avatar .icon {
	color: var(--color-sidebar-text);
}

.sidebar-user-text {
	min-width: 0;
	flex: 1;
}

.sidebar-name {
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-sidebar-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sidebar-process {
	font-size: 0.9rem;
	color: #9ca3af;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-top: 0.25rem;
}

/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */

.sidebar-nav {
	flex: 1;
	padding: 1rem 0.5rem;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.nav-button {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	background-color: transparent;
	border: none;
	border-radius: 0.5rem;
	color: #d1d5db;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--transition);
}

.nav-button .icon {
	flex-shrink: 0;
}

.nav-button:hover {
	background-color: #374151;
	color: var(--color-sidebar-text);
}

.nav-button-active {
	background-color: #374151;
	color: var(--color-sidebar-text);
	font-weight: 600;
}

/* ========================================
   SIDEBAR FOOTER
   ======================================== */

.sidebar-footer {
	padding: 1rem 0.5rem;
	border-top: 1px solid #374151;
	flex-shrink: 0;
}

.btn-logout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: transparent;
	border: none;
	border-radius: 0.5rem;
	color: #d1d5db;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--transition);
}

.btn-logout:hover {
	background-color: #374151;
	color: var(--color-sidebar-text);
}

.btn-logout .icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
	flex: 1;
	margin-left: 16rem;
	overflow-y: auto;
	min-height: 100vh;
	background-color: #fafafa;
}

.content-wrapper {
	background-color: var(--color-white);
	padding: 4rem;
	max-width: 1000px;
	margin: auto;
	margin-top: 100px;
}
.content-wrapper-overview {
	max-width: 1400px;
	padding: 5rem;
	justify-self: center;
}
/* ========================================
   TAB CONTENT
   ======================================== */

.tab-content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	width: 100%;
}

.tab-content.hidden {
	display: none;
}

/* ========================================
   SECTION TITLE
   ======================================== */

.section-title {
	font-size: 1.875rem;
	font-weight: 600;
	color: var(--color-primary);
	letter-spacing: -0.01em;
}

/* ========================================
   STATUS CARD
   ======================================== */

.status-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 2rem;
	gap: 1rem;
}

.status-stage {
	font-size: 0.875rem;
	color: var(--color-secondary);
	margin-top: 0.25rem;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

.document-status.status-approved {
	background-color: #d1fae5;
	color: #065f46;
	width: 100px;
}

.document-status.status-submitted {
	background-color: #dbeafe;
	color: #1e40af;
	width: 100px;
	cursor: default;
}

.document-status.status-pending {
	background-color: #fef3c7;
	color: #92400e;
	width: 100px;
}

.document-status.status-rejected {
	background-color: #fee2e2;
	color: #991b1b;
	width: 100px;
}
/* ========================================
   PROGRESS SECTION
   ======================================== */

.progress-section {
	margin-bottom: 2rem;
}

.progress-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.progress-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-primary);
}

.progress-percent {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-primary);
}

.progress-bar-container {
	width: 100%;
	height: 0.5rem;
	background-color: var(--color-border);
	border-radius: 0.25rem;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	background-color: var(--color-primary);
	border-radius: 0.25rem;
	transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	width: 0%;
}

/* ========================================
   PROGRESS CIRCLE ANIMATION
   ======================================== */

/* .progress-circle circle:last-of-type {
	animation: fillProgress 2s ease-out forwards;
}

@keyframes fillProgress {
	from {
		stroke-dasharray: 0 var(--circumference);
	}
	to {
		stroke-dasharray: var(--filled) var(--circumference);
	}
} */

/* Novo teste para o progress-circle */
.progress-circle svg circle:nth-of-type(2) {
	transition: stroke-dashoffset 0.8s ease-out;
}

/* ========================================
   DATES SECTION
   ======================================== */

.dates-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
}

.date-item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.date-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--color-secondary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.date-value {
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-primary);
}

/* ========================================
   INFO CARD
   ======================================== */

.info-card {
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 0.75rem;
	padding: 2rem;
	box-shadow: var(--shadow-sm);
}

.card-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 1.5rem;
	letter-spacing: -0.01em;
}

/* ========================================
   CONTACT GRID
   ======================================== */

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.contact-item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.contact-item-full {
	grid-column: 1 / -1;
}

.contact-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--color-secondary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.contact-value {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--color-primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ========================================
   NEXT STEPS
   ======================================== */

.next-steps-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.next-step-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem;
	background-color: #fafafa;
	border-radius: 0.5rem;
	border-left: 3px solid var(--color-primary);
}

.next-step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	background-color: var(--color-primary);
	color: var(--color-white);
	border-radius: 50%;
	font-size: 0.75rem;
	font-weight: 700;
	flex-shrink: 0;
}

.next-step-text {
	font-size: 0.9375rem;
	color: var(--color-primary);
	font-weight: 500;
	padding-top: 0.125rem;
}

/* ========================================
   HISTORY TIMELINE
   ======================================== */

.history-timeline {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.history-item {
	display: flex;
	gap: 1rem;
}

.history-dot {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
}

.history-dot-circle {
	width: 0.5rem;
	height: 0.5rem;
	background-color: var(--color-primary);
	border-radius: 50%;
	margin-top: 0.375rem;
}

.history-dot-line {
	width: 1px;
	flex: 1;
	background-color: var(--color-border);
	margin: 0.5rem 0;
}

.history-content {
	padding-bottom: 1rem;
	flex: 1;
}

.history-date {
	font-size: 0.75rem;
	color: var(--color-secondary);
	margin-bottom: 0.25rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.history-event {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--color-primary);
}

/* ========================================
   DOCUMENTS - CLEAN STYLE
   ======================================== */

.documents-section {
	margin: 0;
	padding: 0;
}
@media (min-width: 768px) {
	.documents-section > .category-section {
		margin-left: 15px;
	}
}

.category-section {
	margin-bottom: 25px;
}

.category-title {
	font-size: 1.2em;
	font-weight: 600;
	color: #333;
	margin-bottom: 15px;
	padding: 0;
}

.document-item {
	display: flex;
	flex-direction: column;
	/* margin-bottom: 12px; */
	background: transparent;
	border: none;
	box-shadow: none;
	transition: all 0.2s ease;
}

@media (min-width: 768px) {
	.document-item {
		margin-left: 25px;
	}
}

.document-item :hover {
	/* background-color: #f1f5f9; */
	/* cursor: pointer; */
	transform: translateY(-1px);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.document-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 0.5rem 0;
	background: transparent;
	border: none;
	cursor: pointer;
}

.document-header.no-pointer,
.document-header.no-pointer *,
.document-header.no-pointer:hover,
.document-header.no-pointer *:hover {
	cursor: default !important;
}

.document-name-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.document-icon {
	width: 20px;
	height: 20px;
	color: #6b7280;
	flex-shrink: 0;
}

.document-name {
	color: #333;
	font-weight: 500;
	font-size: 0.95em;
	line-height: 1.4;
}

.document-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.document-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 08px;
	border-radius: 4px;
	font-size: 0.8em;
	font-weight: 600;
	border: none;
	box-shadow: none;
}

.status-pendente {
	background: #fef3cd;
	color: #856404;
}

.status-em_analise {
	background: #cfe2ff;
	color: #084298;
}

.status-aprovado {
	background: #d1e7dd;
	color: #0f5132;
}

.status-rejeitado {
	background: #f8d7da;
	color: #842029;
}

.document-status .icon {
	width: 16px;
	height: 16px;
}

.document-chevron {
	width: 20px;
	height: 20px;
	color: #999;
	transition: transform 0.2s ease;
	cursor: pointer;
}

.document-chevron.rotated {
	transform: rotate(180deg);
}

.document-description {
	display: none;
	padding: 12px 0 12px 32px;
	color: #666;
	font-size: 0.9em;
	line-height: 1.6;
	background: transparent;
	border: none;
	box-shadow: none;
}

.document-description.visible {
	display: block;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
	.sidebar {
		position: fixed;
		transform: translateX(-100%);
	}

	.sidebar:not(.mobile-closed) {
		transform: translateX(0);
	}

	.main-content {
		margin-left: 0;
		padding-top: 4rem;
	}

	.mobile-header {
		display: flex;
	}

	.content-wrapper {
		padding: 1rem 0.75rem;
	}

	.section-title {
		font-size: 1.5rem;
	}

	.card-title {
		font-size: 0.9375rem;
	}

	.dates-section,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.contact-item-full {
		grid-column: 1;
	}

	.document-header {
		flex-wrap: wrap;
	}

	.document-meta {
		width: 100%;
		justify-content: flex-end;
	}

	.category-title {
		font-size: 1.1em;
	}
}

.document-item:nth-child(odd) {
	background: #f9fafb;
	padding: 0 15px;
	border-radius: 5px;
	margin-bottom: 7px;
}

.document-item:nth-child(even) {
	background: #f3f4f6;
	padding: 0 15px;
	border-radius: 5px;
	margin-bottom: 7px;
}

@media (max-width: 768px) {
	.document-item {
		margin-bottom: 15px !important;
	}
}

/* OVERVIEW 2 TAB */
.container {
	/* max-width: 1600px; */
	margin: 0 auto;
	padding: 4rem 2rem;
}

.header {
	margin-bottom: 2.5rem;
}

.header h1 {
	font-size: 2rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.5rem;
	letter-spacing: -0.5px;
}

.header p {
	font-size: 1rem;
	color: #64748b;
	font-weight: 400;
}

/* ===== MAIN LAYOUT ===== */
.main-wrapper {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	width: 100%;
}

/* ===== LEFT COLUMN ===== */
.left-column {
	flex: 1.9;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* ===== STATS ROW ===== */
.stats-row {
	display: flex;
	gap: 1.5rem;
}

.card {
	background: white;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
	border: 1px solid rgba(148, 163, 184, 0.1);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.card:hover {
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
	border-color: rgba(148, 163, 184, 0.2);
	transform: translateY(-2px);
}

/* ===== STAT CARDS (Small) ===== */
.stat-card {
	flex: 1;
	padding: 1.5rem 1.25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	justify-content: flex-start;
}

.stat-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.stat-number {
	font-size: 20px;
	font-weight: 700;
	color: #333;
}

.stat-label {
	font-size: 1rem;
	color: #64748b;
	font-weight: 600;
	letter-spacing: 0.3px;
	/* padding-bottom: 1.5rem; */
	text-align: center;
}
.application-stage-description {
	max-width: 80%;
	font-size: 20px;
	font-weight: 600;
	color: #64748b;
}
.application-stage-document {
	font-size: 35px;
	margin-bottom: 10px;
}
/* Different colors for each stat */
.stat-card.days .stat-number {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.stat-card.docs .stat-number {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.stat-card.progress .stat-number {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ===== ANALYSIS CARD (Big, Left) ===== */
.analysis-card {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	min-height: 300px;
	position: relative;
}

.analysis-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 200px;
	height: 200px;
	background: radial-gradient(
		circle,
		rgba(59, 130, 246, 0.05) 0%,
		transparent 70%
	);
	border-radius: 50%;
}

.analysis-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	width: 100%;
	position: relative;
	z-index: 1;
}

.analysis-text {
	text-align: center;
}
.analysis-text p {
	max-width: 50%;
	justify-self: center;
}

.analysis-text h3 {
	font-size: 0.8rem;
	color: #94a3b8;
	margin: 0 0 0.5rem 0;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.analysis-text h2 {
	font-size: 1.75rem;
	color: #0f172a;
	margin: 0 0 0.75rem 0;
	font-weight: 800;
}

.analysis-text p {
	font-size: 0.9rem;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

.progress-circle {
	position: relative;
	width: 190px;
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.progress-circle svg {
	transform: rotate(-90deg);
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.1));
}

.progress-center {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.progress-text {
	font-size: 2rem;
	font-weight: 900;
	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.progress-label {
	font-size: 0.8rem;
	color: #94a3b8;
	font-weight: 600;
}

.btn-progress {
	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
	color: white;
	border: none;
	padding: 0.875rem 1.75rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
	letter-spacing: 0.3px;
}

.btn-progress:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-progress:active {
	transform: translateY(-1px);
}

/* ===== RIGHT COLUMN ===== */
.right-column {
	flex: 1.2;
	display: flex;
	flex-direction: row;
	gap: 1.5rem;
}

/* ===== DATES CARD (Big, Right) ===== */
.dates-card {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	min-height: 300px;
	gap: 1, 5rem;
}

.dates-card h3 {
	font-size: 0.8rem;
	color: #94a3b8;
	margin: 0 0 2rem 0;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.dates-grid {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	flex: 1;
}

.date-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(148, 163, 184, 0.1);
	transition: all 0.3s ease;
}

.date-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.date-item:hover {
	opacity: 0.8;
}

.date-label {
	font-size: 0.8rem;
	color: #94a3b8;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.date-value {
	font-size: 1rem;
	color: #0f172a;
	font-weight: 700;
	text-align: right;
}

.date-item.highlight .date-value {
	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
	.main-wrapper {
		flex-direction: column;
	}

	.left-column,
	.right-column {
		flex: 1;
	}

	.stats-row {
		flex-wrap: wrap;
	}

	.stat-card {
		flex: 1 1 calc(50% - 0.75rem);
	}
}

@media (max-width: 768px) {
	body {
		padding: 2rem 1rem;
	}

	.header h1 {
		font-size: 1.5rem;
	}

	.stats-row {
		flex-wrap: wrap;
	}

	.stat-card {
		flex: 1 1 calc(50% - 0.75rem);
	}

	.analysis-card,
	.dates-card {
		min-height: auto;
	}

	.date-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.date-value {
		text-align: left;
	}
}

/* OVERVIEW STAGES */

.stages-card {
	background: var(--color-white);
	border-radius: 14px;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	height: 450px;
	width: 100%;
	height: 100%;
}

.stages-card > .stat-label,
progress {
	padding-bottom: 05px;
}

.stages-title {
	font-size: 0.8rem;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0;
}

.stages-list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1;
	overflow-y: auto;
}

/* ========================================
   STAGE ITEMS
   ======================================== */

.stage-item {
	background: linear-gradient(
		135deg,
		rgba(203, 213, 225, 0.05) 0%,
		rgba(203, 213, 225, 0.02) 100%
	);
	border: 1px solid rgba(203, 213, 225, 0.2);
	border-radius: 10px;
	padding: 0.6rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	transition: all var(--transition);
	justify-content: space-between;
	opacity: 0.65;
}

.stage-item:hover {
	opacity: 0.85;
}

.stage-item.completed {
	background: linear-gradient(
		135deg,
		rgba(16, 185, 129, 0.05) 0%,
		rgba(16, 185, 129, 0.02) 100%
	);
	border: 1px solid rgba(16, 185, 129, 0.2);
	opacity: 1;
}

.stage-item.completed:hover {
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.stage-item.active {
	background: linear-gradient(
		135deg,
		rgba(37, 99, 235, 0.08) 0%,
		rgba(37, 99, 235, 0.02) 100%
	);
	border: 1.5px solid rgba(37, 99, 235, 0.3);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
	opacity: 1;
}

.stage-item.active:hover {
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.stage-item.upcoming {
	opacity: 0.65;
}

.stage-item.upcoming:hover {
	opacity: 0.85;
}

/* Stage Item Content */
.stage-item > div:first-child {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex: 1;
}

.stage-icon {
	width: 25px;
	height: 25px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 700;
	font-size: 0.95rem;
	flex-shrink: 0;
	max-width: 25px;
}

.stage-item.completed .stage-icon {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stage-item.active .stage-icon {
	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
	animation: pulse 2s infinite;
}

.stage-item.upcoming .stage-icon {
	background: #cbd5e1;
	color: #94a3b8;
}

.stage-name {
	font-size: 0.95rem;
	font-weight: 700;
	flex: 1;
}

.stage-item.completed .stage-name {
	color: #059669;
}

.stage-item.active .stage-name {
	color: #1e40af;
}

.stage-item.upcoming .stage-name {
	color: #94a3b8;
}

.stage-duration {
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.35rem 0.75rem;
	border-radius: 6px;
	white-space: nowrap;
}

.stage-item.completed .stage-duration {
	color: #059669;
	background: rgba(16, 185, 129, 0.1);
}

.stage-item.active .stage-duration {
	color: #2563eb;
	background: rgba(37, 99, 235, 0.15);
}

.stage-item.upcoming .stage-duration {
	color: #cbd5e1;
	background: rgba(203, 213, 225, 0.1);
}

/* Coming soon */
.badge-soon {
	/* background: #e5e7eb; */
	background: rgba(229, 231, 235, 0.2);
	color: rgba(256, 256, 256, 0.5);
	font-size: 0.65rem;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	font-weight: 700;
	margin-left: auto;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	/* opacity: 0.6; */
}

/* Documents Upgrade */

/* ========================================
   EXPANDING UPLOAD BUTTON (novo)
   ======================================== */
.btn-upload-expand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	height: 36px;
	padding: 0 0.5rem;
	border-radius: 18px;
	background: rgba(37, 99, 235, 0.85);
	border: none;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	white-space: nowrap;
	max-width: 36px; /* Start as circle */
}

.btn-upload-expand:hover {
	max-width: 200px; /* Expand on hover */
	padding: 0 1rem 0 0.75rem;
	background: #2563eb;
}

/* Button already expanded (for new documents) */
.btn-upload-expand.expanded {
	max-width: 200px;
	padding: 0 1rem 0 0.75rem;
}

.btn-upload-expand.expanded:hover {
	background: #2563eb;
}

.btn-upload-expand .icon {
	width: 1.25rem;
	height: 1.25rem;
	color: white;
	flex-shrink: 0;
}

.btn-upload-expand .button-text {
	color: white;
	font-size: 0.875rem;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-upload-expand:hover .button-text {
	opacity: 1;
}

/* Text visible on expanded button */
.btn-upload-expand.expanded .button-text {
	opacity: 1;
}

/* Hide file input */
.file-input-hidden {
	display: none;
}

/* ========================================
   DOCUMENT HEADER - UPDATE (modificar existente)
   ======================================== */
.document-header.no-expand {
	cursor: default;
}

/* ========================================
   RESPONSIVE - EXPANDING BUTTON (novo)
   ======================================== */
@media (max-width: 768px) {
	/* On mobile, show text by default (no hover state) */
	.btn-upload-expand {
		max-width: 200px;
		padding: 0 1rem 0 0.75rem;
	}

	.btn-upload-expand .button-text {
		opacity: 1;
	}
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
.animate-spin {
	animation: spin 1s linear infinite;
}
