:root {
	--bg-color: #0a0e17;
	--bg-secondary: #131b2e;
	--text-color: #e0e0ff;
	--accent-color: #00a8ff;
	--accent-hover: #0084cc;
	--border-color: #2a3854;
	--success-color: #00ff9d;
	--error-color: #ff3860;
	--card-bg: #1a2033;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

textarea {
	max-width: 100%;
}

body {
	font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
	padding: 0;
	margin: 0;
}

.login-container {
	max-width: 1200px;
	margin: auto;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	
	input,
	label {
		margin-top: 10px;
	}
}

form.flex {
	display: flex;
}

.container {
	margin: 0 auto;
	padding: 20px;
}

.grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	
	@media (max-width: 1200px) {
		grid-template-columns: 1fr;
	}
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	background-color: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 30px;
}

h1, h2, h3 {
	color: var(--accent-color);
	font-weight: 300;
	letter-spacing: 1px;
}

h1 {
	font-size: 2rem;
	margin: 0;
}

h2 {
	font-size: 1.5rem;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 10px;
}

h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 2px;
	background-color: var(--accent-color);
}

.section {
	background-color: var(--card-bg);
	border-radius: 8px;
	padding: 25px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	border: 1px solid var(--border-color);
}

input[type="text"],
input[type="password"],
textarea {
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-color);
	padding: 10px 15px;
	width: 100%;
	font-size: 1rem;
	transition: all 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
}

button,
input[type="submit"],
.deletebutton {
	background-color: var(--accent-color);
	color: white;
	border: none;
	border-radius: 4px;
	padding: 8px 15px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.3s;
}

button:hover,
input[type="submit"]:hover,
.deletebutton:hover{
	background-color: var(--accent-hover);
}

.logout-form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.form-group {
	margin-bottom: 15px;
}

.file-message {
	font-size: 1.1rem;
	margin-bottom: 10px;
}

input[type=file] {
	color: var(--text-color);
	padding: 8px;
	background-color: var(--bg-secondary);
	border: 1px solid var(--border-color);
}

input[type=file]:focus {
	outline: 2px dashed var(--border-color);
	outline-offset: 2px;
}

input[type=file]::file-selector-button {
	margin-right: 8px;
	border: none;
	background: var(--border-color);
	padding: 8px 12px;
	color: var(--text-color);
	cursor: pointer;
}

input[type=file]::file-selector-button:hover {
	background: var(--accent-hover);
}

.file-item {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: center;
	padding: 15px;
	border-bottom: 1px solid var(--border-color);
	transition: all 0.3s;
}

.file-item:last-child {
	border-bottom: none;
}

.file-item:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

.file-title {
	font-weight: 500;
	margin-bottom: 5px;
	word-break: break-all;
}

.file-name {
	font-size: 0.9rem;
	opacity: 0.8;
	word-break: break-all;
}

.file-date {
	font-size: 0.8rem;
	color: rgba(224, 224, 255, 0.6);
}

.file-actions {
	display: flex;
	gap: 10px;
	margin-top: 8px;
}

.file-actions a,
.file-actions button {
	padding: 6px 12px;
	font-size: 0.8rem;
}

.file-actions a {
	background-color: transparent;
	color: var(--accent-color);
	border: 1px solid var(--accent-color);
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s;
	display: inline-block;
}

.file-actions a:hover {
	background-color: var(--accent-color);
	color: white;
}

.edit-form {
	display: none;
	margin-top: 10px;
	padding: 10px;
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 4px;
}

.edit-form form {
	display: flex;
	gap: 10px;
}

.char-count {
	font-size: 0.75rem;
	text-align: right;
	color: rgba(224, 224, 255, 0.6);
	margin-top: 3px;
}

.upload-progress-container {
	margin-top: 20px;
}

.upload-item {
	margin-bottom: 15px;
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	padding: 12px;
}

.upload-item-name {
	margin-bottom: 8px;
	font-size: 0.9rem;
}

.progress-bar-container {
	height: 8px;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	width: 0%;
	background-color: var(--accent-color);
	transition: width 0.3s;
}

.upload-status {
	font-size: 0.8rem;
	margin-top: 5px;
}

.upload-complete .progress-bar {
	background-color: var(--success-color);
}

.upload-error .progress-bar {
	background-color: var(--error-color);
}

.note-item {
	padding: 15px;
	border-bottom: 1px solid var(--border-color);
}

.note-item:last-child {
	border-bottom: none;
}

.note-content {
	margin-bottom: 10px;
	line-height: 1.6;
}

.note-content-wrapper {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.note-content a {
	color: var(--accent-color);
	text-decoration: none;
}

.note-content a:hover {
	text-decoration: underline;
}

.note-date {
	font-size: 0.8rem;
	color: rgba(224, 224, 255, 0.6);
}

.tab-container {
	display: flex;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 20px;
}

.tab-content {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.tab {
	padding: 10px 20px;
	cursor: pointer;
	background-color: transparent;
	border: none;
	color: var(--text-color);
	transition: all 0.3s;
}

@media (max-width: 768px) {
	.header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.logout-form {
		margin-left: 0;
		margin-top: 10px;
	}
	
	.file-item {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.file-actions {
		margin-top: 10px;
		width: 100%;
		justify-content: flex-start;
	}
}