
/* Body-Style */
body {
    font-family: 'Verdana', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f4f7;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

/* Header-Design */
.header {
    display: flex;
    align-items: center;
    height: 150px;
    color: #000;
    padding-left: 20px;
}

.header img {
    width: 175px;
    margin-right: 20px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header .title { 
    font-size: 32px;
    margin: 5px 0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.header .subtitle {
    font-size: 25px;
    margin: 5px 0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.nav {
    background: linear-gradient(135deg, #3d3b6e 0%, #5144e3 100%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(81,68,227,.18);
    margin: 0 0 6px;
}

.nav a {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,.88);
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: .88em;
    letter-spacing: .04em;
    border-radius: 6px;
    transition: background .18s, color .18s;
    white-space: nowrap;
}

.nav a:hover { background-color: rgba(255,255,255,.18); color: #fff; }

.nav .btn-primary {
    background-color: #fff;
    color: #5144e3;
    border-radius: 20px;
    font-weight: 700;
}

.nav .btn-primary:hover {
    background-color: #e8e6ff;
    color: #3d3b6e;
}

.nav .btn-secondary {
    background-color: transparent;
    color: rgba(255,255,255,.9);
    border: 1.5px solid rgba(255,255,255,.5);
    border-radius: 20px;
}

.nav .btn-secondary:hover {
    background-color: #e53935;
    border-color: #e53935;
    color: #fff;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,.7);
    padding: 10px 14px;
    font-size: .82em;
    font-weight: 600;
    letter-spacing: .03em;
    white-space: nowrap;
}

/* Submenu */
.submenu {
    position: relative;
    display: inline-block;
    color: ##a9afeb;
    padding: 18px 22px;
    cursor: pointer;
}

.submenu-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    text-align: center;
}

.submenu:hover .submenu-content { display: block; }

.submenu-content a {
    color: #333;
    padding: 18px 20px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.submenu-content a:hover { background-color: #ddd; }

/* Container */
.container {
    width: 100%;
    max-width: 1800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Buttons */
.btn {
    padding: 9px 18px;
    font-size: .88em;
    font-weight: 700;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    letter-spacing: .03em;
    transition: background .18s, color .18s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: #fff;
    color: #5144e3;
}

.btn-primary:hover { background-color: #e8e6ff; color: #3d3b6e; }

.btn-danger {
    background-color: #e53935;
    color: white;
}

.btn-danger:hover { background-color: #b71c1c; }

.btn-secondary {
    background-color: rgba(255,255,255,.18);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.45);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,.3);
}

/* Table Styling */
table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: center;
}



th, td {
    padding: 12px;
    border: 1px solid #ccc;
}

thead {
    background-color: #2980b9;
    color: white;
}

tbody tr:nth-child(even) { background-color: #f2f2f2; }
tbody tr:hover { background-color: #ddd; }

/* Responsive Design */
@media (max-width: 768px) {
    .header { height: 100px; }
    .header .title { font-size: 24px; }
    .header .subtitle { font-size: 16px; }
    .nav a { padding: 10px; }
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
}

input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 270px;
}

input[type="submit"]:hover { background-color: #0056b3; }

/* Date Input */
input[type="date"] {
    font-family: 'Arial', sans-serif;
    color: #000003;
    background-color: #eaf0f7;
    border: 2px solid #007bff;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 20px;
    margin-top: 5px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

input[type="date"]:focus {
    outline: none;
    border-color: #0056b3;
    background-color: #cfe2ff;
}

/* Footer */
.footer {
    text-align: center;
    padding: 10px;
    background-color: #444;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}
        
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

form label {
    font-weight: bold;
    margin-bottom: 5px;
}

select, input[type="submit"] {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

select:hover, input[type="submit"]:hover {
    border-color: #007bff;
}

input[type="submit"] {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

/* ── Globaler Dark Mode ─────────────────────────────────────── */
body.dark {
    background-color: #0f0f1e !important;
    color: #d0cfff !important;
}
body.dark .header {
    background: transparent !important;
}
body.dark .header .title,
body.dark .header .subtitle {
    color: #fff !important;
    text-shadow: none !important;
}
body.dark .container {
    background-color: #1a1a30 !important;
    color: #d0cfff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.4) !important;
}
body.dark table {
    box-shadow: 0 2px 8px rgba(0,0,0,.4) !important;
}
body.dark th {
    background-color: #3d3b6e !important;
    color: #fff !important;
}
body.dark td {
    border-color: #2a2a48 !important;
    color: #c8c6ff !important;
}
body.dark tbody tr:nth-child(even) {
    background-color: #21213a !important;
}
body.dark tbody tr:hover {
    background-color: #2c2c50 !important;
}
body.dark footer,
body.dark .footer {
    background-color: #1a1a30 !important;
    color: #fff !important;
}
body.dark footer p,
body.dark .footer p {
    color: #fff !important;
}
body.dark input[type="text"],
body.dark input[type="email"],
body.dark input[type="date"],
body.dark input[type="number"],
body.dark textarea,
body.dark select {
    background-color: #1a1a2e !important;
    color: #d0cfff !important;
    border-color: #3a3860 !important;
}
body.dark .page-wrapper {
    background: transparent !important;
}
body.dark h1, body.dark h2, body.dark h3, body.dark h4 {
    color: #c8c6ff;
}
body.dark a {
    color: #9088f0;
}
body.dark .button,
body.dark a.button {
    background: #2a2a4a !important;
    color: #c8c6ff !important;
    border-color: #5144e3 !important;
}
body.dark .button:hover,
body.dark a.button:hover {
    background: #3a3a60 !important;
    color: #fff !important;
}
body.dark .flex-item,
body.dark .card,
body.dark .dropdown {
    background: #1a1a30 !important;
    border-color: #3a3860 !important;
    color: #d0cfff !important;
}
