:root {
	--main-color-light: whitesmoke;
	--main-color-dark: rgb(20, 20, 20);

	--accent-color: rgb(190, 36, 57);

	--font-color-light-100: rgba(255, 255, 255, 1);
	--font-color-light-75: rgba(255, 255, 255, 0.75);
	--font-color-light-50: rgba(255, 255, 255, 0.5);
	--font-color-light-25: rgba(255, 255, 255, 0.25);

	--font-color-dark-100: rgba(0, 0, 0, 1);
	--font-color-dark-75: rgba(0, 0, 0, 0.75);
	--font-color-dark-50: rgba(0, 0, 0, 0.5);
	--font-color-dark-25: rgba(0, 0, 0, 0.25);

	--font-size-small: 18px;
	--font-size-medium: 24px;
	--font-size-large: 48px;
}

@keyframes rotate {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(180deg);
	}
}

.container {
	max-width: 800px !important;
	height: calc(100vh - 125px - 100px - 100px) !important;
	width: 100% !important;
	overflow-y: auto;
}

.files-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.files-header .toggle {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: 0.25s ease;
	background-color: rgba(0, 255, 145, 0.25);
	color: rgb(0, 156, 88);
}

.files-header .toggle:hover {
	background-color: rgb(0, 156, 88);
	color: white;
}

.files-header .toggle .icon {
	animation: rotate 0.25s ease;
}

#shared-to-you {
	display: none;
}

.user-files {
	border-collapse: collapse;
	width: 100%;
	table-layout: fixed;
}

.user-files tbody td {
	padding: 5px 10px;
	text-align: left;
}

.tbody-header tr {
	border-bottom: 1px solid var(--font-color-dark-25);
}

.tbody-header tr th {
	padding: 5px 10px;
	text-align: left;
}

.filename {
	width: 50%;
}

.filesize {
	width: 15%;
}

.expires {
	width: 20%;
}

.operations {
	width: 20%;
}

.tbody-wrapper {
	max-height: calc(100vh - 125px - 100px - 100px - 50px - 60px);
	overflow-y: auto;

	scrollbar-width: none;
	-ms-overflow-style: none;
}

.tbody-wrapper::-webkit-scrollbar {
	display: none;
}

.user-files tbody {
	display: table-row-group;
	width: 100%;
}

.file-cell {
	display: flex;
	align-items: center;
	gap: 10px;
}

.file-icon {
	width: 35px;
	height: 35px;
	border-radius: 10px;
}

.actions {
	display: flex;
	gap: 5px;
}

.action-button {
	width: 35px;
	height: 35px;
	border-radius: 10px;
	border: none;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: 0.25s ease;
	aspect-ratio: 1 / 1;
}

.action-button.copy-btn {
	background-color: rgba(54, 191, 255, 0.25);
	color: rgb(10, 115, 163);
}

.action-button.copy-btn:hover {
	background-color: rgb(10, 115, 163);
	color: white;
}

.action-button.download-btn {
	background-color: rgba(0, 255, 145, 0.25);
	color: rgb(0, 156, 88);
}

.action-button.download-btn:hover {
	background-color: rgb(0, 156, 88);
	color: white;
}

.action-button.delete-btn {
	background-color: rgba(255, 0, 0, 0.25);
	color: rgb(177, 0, 0);
}

.action-button.delete-btn:hover {
	background-color: rgb(177, 0, 0);
	color: white;
}

.not-logged {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.top, .bottom {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.top hr {
	margin: 15px 0;
	border: none;
	border-top: 1px solid var(--font-color-dark-25);
}

.check-url {
	display: flex;
	gap: 10px;
}

.check-url label {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.url {
	width: calc(100% - 35px - 10px);
	height: 35px;
	border-radius: 5px;
	padding: 5px 10px;
	border: 1px solid var(--font-color-dark-25);
	outline: none;
	transition: 0.25s ease;
}

.url:hover {
	border: 1px solid var(--font-color-dark-50);
}

.url:focus {
	border: 1px solid var(--accent-color);
}

.correct-file {
	border: 1px solid green;
}

.incorrect-file {
	border: 1px solid darkred;
}

.correct-file:focus {
	border: 1px solid green;
	outline: 4px solid rgba(0, 128, 0, 0.15);
}

.incorrect-file:focus {
	border: 1px solid darkred;
	outline: 4px solid rgba(139, 0, 0, 0.15);
}

.to-download-button {
	width: 35px;
	height: 35px;
	border-radius: 5px;
	border: none;
	outline: none;
	background-color: rgba(0, 255, 0, 0.25);
	color: rgb(0, 184, 0);
	transition: 0.25s ease;
	cursor: pointer;
}

.to-download-button:hover {
	background-color: rgb(0, 184, 0);
	color: white;
}

.to-download-button.wrong-url {
	background-color: rgba(255, 0, 0, 0.25);
	color: rgb(173, 0, 0);
	cursor: default;
}

.to-download-button.wrong-url:hover {
	background-color: rgb(173, 0, 0);
	color: white;
}