/*
==============================================
slideLeft
==============================================
*/
/*
.slideLeft{
	animation-name: slideLeft;
	-webkit-animation-name: slideLeft;	

	animation-duration: 1s;	
	-webkit-animation-duration: 1s;

	animation-timing-function: ease-in-out;	
	-webkit-animation-timing-function: ease-in-out;		

	animation-delay: .3s;
	-webkit-animation-delay: .3s;

	animation-fill-mode: forwards;
	-webkit-animation-fill-mode: forwards;

	visibility: visible !important;	
}

@keyframes slideLeft {
	0% {
		transform: translateX(150%);
		opacity: 0;
	}
	50%{
		transform: translateX(-8%);
		opacity: 1;
	}
	65%{
		transform: translateX(4%);
	}
	80%{
		transform: translateX(-4%);
	}
	95%{
		transform: translateX(2%);
	}			
	100% {
		transform: translateX(0%);
		opacity: 1;
	}
}

@-webkit-keyframes slideLeft {
	0% {
		-webkit-transform: translateX(150%);
		opacity: 0;
	}
	50%{
		-webkit-transform: translateX(-8%);
		opacity: 1;
	}
	65%{
		-webkit-transform: translateX(4%);
	}
	80%{
		-webkit-transform: translateX(-4%);
	}
	95%{
		-webkit-transform: translateX(2%);
	}			
	100% {
		-webkit-transform: translateX(0%);
		opacity: 1;
	}
}
*/
/*
==============================================
Styles
==============================================
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
:focus {
	outline: 0;
}
::-webkit-input-placeholder {
	color: rgba(255,255,255, .8);
}
::-moz-placeholder {
	color: rgba(255,255,255, .8);
}
:-ms-input-placeholder {
	color: rgba(255,255,255, .8);
}
html, body {
	min-height: 100%;
}
body {
	line-height: 1.5em;
	color: #1f2937;
	background: #f6f8fb;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	margin-bottom: 0;
}
div, p, td, label, input, select, button, a, h1, h2, h3, h4 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
header {
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
	border-bottom: 1px solid #e5e9f0;
	padding: 0 32px;
	font-size: 14px;
}
header .container {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	min-height: 80px;
	gap: 0;
}
header .brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #1f2937;
	font-weight: 700;
	font-size: 19px;
	letter-spacing: -0.01em;
}
header .brand-icon {
	color: #1e87f0;
	font-size: 26px;
	line-height: 1;
}
header .navbar-spacer {
    flex: 1;
}
header nav {
	display: flex;
	align-items: stretch;
	gap: 0;
	margin-left: 32px;
	flex: 1;
	height: 80px;
}
header nav > a,
header nav > .nav-dropdown > a {
	color: #1f2937;
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	padding: 0 20px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-bottom: 3px solid transparent;
	transition: color .15s ease, border-color .15s ease;
	height: 100%;
}
header nav i {
	font-size: 18px;
}
header nav > a:hover,
header nav > .nav-dropdown:hover > a {
	color: #1e87f0;
}
header nav > a.active,
header nav > .nav-dropdown.active > a {
	color: #1e87f0;
	border-bottom-color: #1e87f0;
}
header .navbar-end {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 18px;
}
header .navbar-end .user-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #1f2937;
	font-weight: 500;
	font-size: 15px;
	cursor: pointer;
	height: 100%;
	padding: 0 8px;
}
header .navbar-end .user-icon {
	color: #6b7280;
	font-size: 20px;
}
header .navbar-end .icon-link {
	color: #6b7280;
	font-size: 20px;
	text-decoration: none;
	padding: 8px;
}
header .navbar-end .icon-link:hover {
	color: #1e87f0;
}
header .navbar-end .navbar-logo {
	display: flex;
	align-items: center;
	padding: 0;
}
header .navbar-end .navbar-logo img {
	height: 60px;
	width: auto;
	display: block;
}
header .user-dropdown {
	display: inline-flex;
	align-items: center;
}
header .user-dropdown .nav-dropdown-content {
	min-width: 12em;
}
header .user-dropdown .nav-dropdown-content a {
	padding: .7em 1.2em;
	font-size: 14px;
}
/* old header span { opacity: 0 } rule removed — was for a deleted slideLeft slogan, broke the nav dropdown */
ol, ul {
	list-style: none;
}
table {
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
label {
	display: block;
	font-size: 1.5em;
	line-height: 2em;
}
h1 {
	font-size: 2em;
	text-align: center;
	line-height: 1.5em;
	font-weight: bold;
}
p {
	margin-bottom: 1.5em;
}
select, #passwordBtn, #password {
	min-width: 10em;
	font-size: 1.2em;
	font-family: arial, sans-serif;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px;
	border: none;
	line-height: 2em;
	background-color: rgba(255,255,255,.3);
	outline:none;
	-webkit-appearance:none;
	-moz-appearance:none;
	appearance:none;
	cursor:pointer;
	padding: .5em 1.5em;
	margin-bottom: 1.5em;
	width: 100%;
	color: #fff;
	transition: .5s;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	text-align: left;
}
select:hover, #passwordBtn:hover {
	background-color: #fff;
	color: #000;
}
#password {
	background-color: #fff;
	color: #000;
	display: none;
}
#password-download-form #password {
	display: block;
}
#main {
	opacity: 0;
	-webkit-transform: scale(1.04);
	transform: scale(1.04);
	transition: .8s;
}
#main.ready {
	opacity: 1;
	-webkit-transform: none;
	transform: none;
}
#file {
	margin-bottom: 1.5em;
}
#success {
	text-align: center;
}
#download-link {
	padding: 1.5em;
	background-color: rgba(255, 255, 255, .5);
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px;
	word-wrap: break-word;
	margin-bottom: 3em;
}
#download-link a {
	color: #fff;
	text-decoration: none;
}
#expired {
	text-align: center;
}
#share {
	opacity: 0;
}
#share a {
	margin: 0 1.5em;
}
#filefield {
	padding: 1.5em;
	margin-bottom: 1.5em;
}
#expiration {
	max-width: 380px;
	margin: 0 auto;
	text-align: center;
 }
 #passwordBlock {
 	max-width: 380px;
 	margin: 0 auto;
 }
.clearfix {
	clear: both;
}
.submit {
	padding: 1.5em;
	text-align: center;
}
.submitted {
	display: none;
}
#loader {
	display: none;
	text-align: center;
	margin: 16px 0;
}
#loader.active {
	display: block;
}
#progressBar {
	background-color: #e5e9f0;
	width: 100%;
	height: 8px;
	margin-top: 12px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	overflow: hidden;
}
#progressBarInner {
	background: #1e87f0;
	height: 100%;
	width: 0%;
	transition: width .2s ease;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
}
.btn {
	text-decoration: none;
	border: none;
	background: #1e87f0;
	color: #fff;
	font-size: 14px;
	padding: 10px 20px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: filter .15s ease, transform .05s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.btn:hover {
	cursor: pointer;
	filter: brightness(1.05);
}
.btn:active {
	transform: translateY(1px);
}
.btn-danger {
	background: #f0506e;
}
.notice {
	font-size: 1.5em;
	line-height: 1.5em;
}
#download {
	text-align: center;
	max-width: 600px;
}
.success {
	text-align: center;
}
.error {
	text-align: center;
	font-size: 1.5em;
	line-height: 1.5em;
	color: #fff;
}
.container {
	max-width: 1280px;
	margin: 0 auto;
	overflow: hidden;
	box-sizing: border-box;
	padding: 0 32px;
}
header .container {
    overflow: visible;
}
/*#expiration, #passwordBlock { display: none; }*/

/* --- Login Page (Card-Design, YOURLS-like) --- */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    margin-bottom: 0;
}
body.login-page header {
    display: none;
}
.login-card {
	background: #fff;
    border-radius: 10px;
    padding: 40px 60px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.08);
    max-width: 440px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
}
.login-brand-icon {
    color: #1e87f0;
    font-size: 40px;
    line-height: 1;
}
.login-brand-text {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.01em;
}
.login-instruction {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}
.login-card .error {
    background: rgba(240, 80, 110, 0.1);
    border-left: 4px solid #f0506e;
    color: #7a1a25;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: left;
	font-weight: 600;
}
.login-card label {
    display: block;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}
.login-card input[type="text"],
.login-card input[type="password"] {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus {
    outline: none;
    border-color: #1e87f0;
    box-shadow: 0 0 0 3px rgba(30, 135, 240, 0.12);
}
.login-btn {
    background: #1e87f0;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
    transition: filter .15s ease, transform .05s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.login-btn:hover {
    filter: brightness(1.05);
}
.login-btn:active {
    transform: translateY(1px);
}

/* --- Nav-Dropdown (allgemein) --- */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}
.nav-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 10em;
    border-radius: 0 0 8px 8px;
    padding: .5em 0;
    margin-top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e9f0;
}
/* Unsichtbare Brücke zwischen Button und Dropdown,
   damit der Hover nicht abreißt */
.nav-dropdown-content::before {
    content: "";
    position: absolute;
    top: -1em;
    left: 0;
    right: 0;
    height: 1em;
}
.nav-dropdown-content a {
    display: block;
    color: #1f2937;
    padding: .6em 1.2em;
    margin-left: 0;
    font-size: 14px;
    white-space: nowrap;
	text-decoration: none;
}
.nav-dropdown-content a:hover {
    background-color: #f9fafb;
    color: #1e87f0;
}
.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown-content:hover {
    display: block;
}

/* --- Generelle Input-Styles (für Login, Settings) ---
   Überschrieben von #login-card und #settings-form
   (siehe unten). Hier nur Basis. */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select {
    font-family: inherit;
    box-sizing: border-box;
}
/* --- Card-System (für Upload, Downloads, Admin) --- */
.card,
.sb-section-card {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
    padding: 24px;
    box-sizing: border-box;
    margin-top: 24px;
}
.card-title,
.sb-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title::before {
    content: "↗";
    color: #1e87f0;
    font-weight: 400;
    font-size: 20px;
}

/* --- Page Body Inhalte --- */
main,
#main {
    padding: 32px;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- Notices (Cards-internal) --- */
.notice {
    background: #f9fafb;
    border-left: 4px solid #1e87f0;
    color: #1f2937;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-style: normal;
    margin-bottom: 16px;
}

/* --- Empty-State --- */
.empty {
    background: #f9fafb;
    border: 1px dashed #e5e9f0;
    color: #6b7280;
    text-align: center;
    padding: 3em 1.5em;
    border-radius: 10px;
    font-size: 14px;
    font-style: italic;
}

/* --- Form-Styles (Settings, Edit) --- */
.form-section {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
    padding: 24px;
    margin: 24px auto 0;
    max-width: 600px;
}
.upload-card {
    max-width: 600px;
    margin: 24px auto 0;
    text-align: center;
}
.form-section h1 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #1f2937;
    text-align: left;
}
.form-section label {
    display: block;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
    margin-top: 8px;
}
.form-section input[type="text"],
.form-section input[type="password"],
.form-section input[type="email"],
.form-section input[type="number"],
.form-section select {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1f2937;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-section input:focus,
.form-section select:focus {
    outline: none;
    border-color: #1e87f0;
    box-shadow: 0 0 0 3px rgba(30, 135, 240, 0.12);
}
.form-section hr {
    border: none;
    border-top: 1px solid #e5e9f0;
    margin: 24px 0;
}
.form-section code {
    display: block;
    padding: .75em 1em;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 12px;
    word-wrap: break-word;
    margin-top: .5em;
    color: #1f2937;
}
.form-section .back-link {
    display: inline-block;
    margin-top: 12px;
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
}
.form-section .back-link:hover {
    color: #1e87f0;
}

/* --- Upload-Form (Frontend) --- */
#main {
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
}
#upload-block {
    background: #f9fafb;
    border: 2px dashed #e5e9f0;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s cubic-bezier(.2,.8,.2,1);
    position: relative;
    background-image: none;
    -webkit-transform: scale(.92);
    transform: scale(.92);
}
#upload-block .upload-cloud-icon {
    font-size: 80px;
    color: #6b7280;
    transition: color .3s ease, transform .3s ease, opacity .3s ease;
    line-height: 1;
}
#upload-block .upload-check-icon {
    font-size: 80px;
    color: #32d296;
    line-height: 1;
    position: absolute;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .3s ease, transform .3s cubic-bezier(.2,1.5,.4,1);
}
#upload-block.changed .upload-cloud-icon {
    opacity: 0;
    transform: scale(.5);
}
#upload-block.changed .upload-check-icon {
    opacity: 1;
    transform: scale(1);
}
#upload-block:hover {
    border-color: #1e87f0;
    background: #fff;
    -webkit-transform: scale(1);
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(30, 135, 240, 0.15);
}
#upload-block:hover .upload-cloud-icon {
    color: #1e87f0;
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}
#upload-block.changed {
    border-style: solid;
    border-color: #32d296;
    background: rgba(50, 210, 150, 0.08);
    -webkit-transform: scale(1);
    transform: scale(1);
    animation: upload-success .6s cubic-bezier(.2,.8,.2,1);
}
#upload-block.changed .upload-cloud-icon {
    color: #32d296;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}
@keyframes upload-success {
    0%   { -webkit-transform: scale(.92); transform: scale(.92); }
    50%  { -webkit-transform: scale(1.08); transform: scale(1.08); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}
#upload-block input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    left: -9999px;
}
select, #passwordBtn, #password {
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e9f0;
    font-size: 14px;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
}
select:hover, #passwordBtn:hover {
    background: #f9fafb;
    color: #1f2937;
}
#password {
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e9f0;
    display: none;
}
#password-download-form #password {
    display: block;
}

/* --- Download-Section Card --- */
#download,
#success,
#expired,
#login-page-legacy {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
    padding: 24px;
    margin: 24px auto;
    text-align: center;
    max-width: 600px;
}
#download .notice,
#success .notice,
#expired .notice {
    text-align: center;
}

#download .notice {
	margin-bottom: 26px;
}

#download-link {
    background: #f9fafb;
    border-radius: 6px;
    padding: 1em;
    word-wrap: break-word;
    margin-bottom: 1em;
}
#download-link a {
    color: #1e87f0;
    text-decoration: none;
    font-weight: 600;
}
#download-link a:hover {
    text-decoration: underline;
}

/* --- Tabellen (Uploads-Liste) --- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
    font-size: 14px;
    margin-top: 16px;
    table-layout: fixed;
}
thead td {
    background: #f9fafb;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e9f0;
    text-align: left;
}
table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e9f0;
    background: #fff;
    color: #1f2937;
}
tr:last-child td {
    border-bottom: none;
}
tr:hover td {
    background: #f9fafb;
}
tr:nth-child(odd) {
    background: transparent;
}
tr:nth-child(odd) td {
    background: #fff;
}
tr:nth-child(even) td {
    background: #fafbfc;
}
tr:hover:nth-child(odd) td,
tr:hover:nth-child(even) td {
    background: #f9fafb;
}
td.filename a {
    color: #1e87f0;
    font-weight: 600;
    text-decoration: none;
}
td.filename a:hover {
    text-decoration: underline;
}
td.icon a {
    color: #6b7280;
    text-decoration: none;
    font-size: 18px;
}
td.icon a:hover {
    color: #1e87f0;
}
td p {
    color: #6b7280;
    font-style: normal;
    font-size: 12px;
    margin-bottom: 0;
}
td.downloads {
    color: #1e87f0;
    font-weight: 600;
}

/* --- Paginator --- */
#paginator {
    margin-top: 24px;
    display: flex;
    gap: 8px;
}
#paginator a {
    background: #fff;
    border: 1px solid #e5e9f0;
    color: #1f2937;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all .15s ease;
}
#paginator a:hover {
    border-color: #1e87f0;
    color: #1e87f0;
}

/* --- Footer --- */
#footer {
    text-align: center;
    padding: 24px 32px;
    color: #6b7280;
    font-size: 12px;
    margin-top: 48px;
}
