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

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: #f1f5f9;
	height: 100vh;
}

.app-layout {
	display: flex;
	height: 100vh;
}

.sidebar {
	width: 250px;
	background: #1e293b;
	color: white;
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.sidebar h3 {
	font-size: 1.1em;
	margin-bottom: 20px;
	color: #94a3b8;
}

#fileList {
	list-style: none;
	flex-grow: 1;
	overflow-y: auto;
}

#fileList li {
	padding: 10px;
	margin-bottom: 5px;
	background: #334155;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

#fileList li:hover {
	background: #475569;
}

#fileList li.ativo {
	background: #3b82f6;
	font-weight: bold;
}

.new-file-box {
	margin-top: 20px;
}

.new-file-box input {
	width: 100%;
	padding: 8px;
	margin-bottom: 10px;
	border-radius: 4px;
	border: none;
}

.editor-area {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	padding: 30px;
}

h2 {
	color: #334155;
	margin-bottom: 20px;
}

#currentFile {
	color: #3b82f6;
}

textarea {
	flex-grow: 1;
	padding: 15px;
	border: 2px solid #cbd5e1;
	border-radius: 8px;
	font-size: 1rem;
	font-family: monospace;
	resize: none;
	margin-bottom: 20px;
	background: #ffffff;
}

textarea:disabled {
	background: #e2e8f0;
	cursor: not-allowed;
}

.actions {
	display: flex;
	gap: 10px;
}

button {
	background: #3b82f6;
	color: white;
	border: none;
	padding: 12px;
	border-radius: 8px;
	font-weight: bold;
	cursor: pointer;
}

button:hover {
	background: #2563eb;
}

button:disabled {
	background: #94a3b8;
	cursor: not-allowed;
}

.btn-danger {
	background: #ef4444;
}

.btn-danger:hover {
	background: #dc2626;
}

.status-oculto {
	display: none;
}

.status-visivel {
	margin-top: 15px;
	padding: 10px;
	border-radius: 6px;
	text-align: center;
	font-weight: bold;
}

.sucesso {
	background: #dcfce7;
	color: #166534;
}

.erro {
	background: #fee2e2;
	color: #991b1b;
}

.login-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.92);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	backdrop-filter: blur(6px);
}

.login-card {
	background: #1e293b;
	padding: 40px;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	text-align: center;
	width: 100%;
	max-width: 360px;
	color: white;
}

.login-card h2 {
	color: white;
	margin-bottom: 6px;
}

.login-subtitle {
	color: #94a3b8;
	margin-bottom: 24px;
	font-size: 0.9em;
}

.login-card input {
	width: 100%;
	padding: 12px;
	margin-bottom: 12px;
	border-radius: 8px;
	border: 1px solid #475569;
	background: #334155;
	color: white;
	font-size: 1em;
}

.login-card input::placeholder {
	color: #94a3b8;
}

.login-card button {
	width: 100%;
	padding: 12px;
	background: #3b82f6;
	color: white;
	border: none;
	border-radius: 8px;
	font-weight: bold;
	font-size: 1em;
	cursor: pointer;
	transition: background 0.2s;
}

.login-card button:hover {
	background: #2563eb;
}

.login-error {
	color: #ef4444;
	margin-top: 12px;
	font-size: 0.9em;
	min-height: 1.2em;
}
