/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #121212;
    border-bottom: 2px solid #333;
}

header .left-part {
    display: flex;
    align-items: center;
    gap: 1rem;
}

header img {
    height: 40px;
    width: auto;
}

header h1 {
    font-size: 1.5rem;
    color: #ffaa06; /* Accent color */
}

nav {
    display: flex;
    align-items: center;
}

nav .login-link {
    color: #ffaa06;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 2px solid #ffaa06;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

nav .login-link:hover {
    background-color: #ffaa06;
    color: #1a1a1a;
}

/* Main Content */
main.startseite {
    padding: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 120px;
    background: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #f0f0f0;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.tile:hover {
    background: #ffaa06;
    color: #1a1a1a;
    transform: translateY(-4px);
}

.tile:active {
    transform: translateY(0);
}

/* Forms */
input, textarea, select, button {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background-color: #333;
    color: #f0f0f0;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #ffaa06;
}

/* Buttons */
button {
    padding: 0.8rem;
    background-color: #ffaa06;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e69905;
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* Zeitübersicht Tabelle */
table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
	background-color: #2a2a2a;
	color: #f0f0f0;
	font-size: 0.95rem;
}

table th, table td {
	padding: 0.75rem 1rem;
	border: 1px solid #444;
	text-align: center;
}

table th {
	background-color: #ffaa06;
	color: #1a1a1a;
	font-weight: bold;
}

table tr:nth-child(even) {
	background-color: #1e1e1e;
}

table tr:hover {
	background-color: #444;
}

table tr.weekend {
	background-color: #646363 !important;
	color: #ccc;
	font-style: italic;
}

table tr.holiday {
	background-color: #88514a !important;
	color: #ccc;
	font-style: italic;
}

/* Monatsnavigation */
.month-nav {
	text-align: center;
	margin-bottom: 1.5rem;
}

.month-nav a {
	color: #ffaa06;
	text-decoration: none;
	font-weight: bold;
	padding: 0.5rem 1rem;
	border: 1px solid #ffaa06;
	border-radius: 6px;
	transition: background-color 0.3s, color 0.3s;
}

.month-nav a:hover {
	background-color: #ffaa06;
	color: #1a1a1a;
}

/* Gesamtsumme */
p.total-month {
	margin-top: 1.5rem;
	font-size: 1rem;
	font-weight: bold;
	text-align: center;
	color: #ffaa06;
}

form:not(.inline-form) {
	max-width: 500px;
	margin-top: 1rem;
	padding: 1rem;
	background-color: #2a2a2a;
	border-radius: 8px;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
}

form input[type="date"] {
    width: 100%;
    padding: 0.5rem;
    background-color: #333;
    color: #f0f0f0;
    border: 1px solid #444;
    border-radius: 6px;
}

form button {
    margin-top: 1rem;
    background-color: #ffaa06;
    color: #1a1a1a;
    border: none;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background-color: #e69905;
}

/* Override the general input width for checkboxes */
input[type="checkbox"] {
    width: auto; /* Reset the width to the intrinsic content width */
    display: inline-block; /* Ensure it's treated as inline-block */
    vertical-align: middle; /* Align vertically with the label */
    margin-right: 5px; /* Add some space to the right */
    margin-bottom: 0;
}

/* Style the label to align with the checkbox */
label[for="rememberEmail"] {
    display: inline-block; /* Make it sit inline with the checkbox */
    vertical-align: middle; /* Align vertically */
    margin-bottom: 0;
}

.tile-section-header {
	width: 100%;
	text-align: center;
	margin: 2rem 0 1rem 0;
	color: #ffaa06;
	font-size: 1.4rem;
	font-weight: bold;
	border-top: 2px solid #333;
	padding-top: 1rem;
}

#password-requirements {
	list-style: none;
	padding-left: 0;
	margin-top: 0.5rem;
	font-size: 0.9rem;
}

#password-requirements li.valid {
	color: green;
}

#password-requirements li.invalid {
	color: red;
}

nav a.welcome-message {
    color: #ffaa06;  /* Akzentfarbe */
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

nav a.welcome-message:hover {
    text-decoration: underline;
}

table.abschluss-tabelle {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

table.abschluss-tabelle th,
table.abschluss-tabelle td {
	width: 33.33%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 0.75em;
	border: 1px solid #333;
}

a.download-link {
	color: #ffaa06;
	text-decoration: none;
}

a.download-link:hover {
	text-decoration: underline;
}

.badge {
    background-color: red;
    color: white;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
  }
  