/* Admin-Bereich Styles */
.hidden {
    display: none !important;
}

/* Login-Formular */
.login-form {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #0a3d62;
}

.login-form .input-group {
    margin-bottom: 15px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.admin-btn {
    width: 100%;
    padding: 12px;
    background-color: #0a3d62;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.admin-btn:hover {
    background-color: #0c4b7d;
}

.login-form p {
    text-align: center;
    margin-top: 20px;
}

.login-form a {
    color: #0a3d62;
    text-decoration: none;
}

.login-form a:hover {
    text-decoration: underline;
}

/* Admin Navigation */
.admin-navbar {
    background-color: #0a3d62;
    margin-bottom: 20px;
    border-radius: 4px;
}

.admin-navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.admin-navbar li {
    flex: 1;
}

.nav-btn {
    width: 100%;
    padding: 12px 15px;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.nav-btn.logout {
    background-color: #c0392b;
}

.nav-btn.logout:hover {
    background-color: #e74c3c;
}

.nav-btn i {
    margin-right: 8px;
}

/* Admin Sections */
.admin-section {
    display: none;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.admin-section.active {
    display: block;
}

.admin-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #0a3d62;
}

/* Formular-Einreichungen */
.submissions-list {
    margin-top: 20px;
}

.submission-item {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.submission-item h3 {
    margin-top: 0;
    color: #0a3d62;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.submission-item p {
    margin: 10px 0;
}

.categories-list ul {
    margin: 10px 0;
    padding-left: 20px;
}

.categories-list li {
    margin-bottom: 5px;
}

/* Kategorie-Manager */
.category-manager {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-input {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
    align-items: center;
}

.csv-import {
    margin-left: auto;
}

#importCsvBtn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

#importCsvBtn:hover {
    background-color: #2980b9;
}

.category-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.category-input button {
    padding: 10px 15px;
    background-color: #0a3d62;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.category-input button:hover {
    background-color: #0c4b7d;
}

.category-list-wrapper {
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-list-header h3 {
    margin: 0;
    color: #0a3d62;
}

.category-search input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.category-types {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.category-type {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.category-type.active {
    background-color: #0a3d62;
    color: white;
}

.category-type-header {
    background-color: #0a3d62;
    color: white;
    padding: 8px 15px;
    margin-top: 15px;
    border-radius: 4px 4px 0 0;
}

.categories-admin-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.category-item-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    margin-bottom: 5px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.category-item-admin:hover {
    background-color: #f9f9f9;
}

.category-actions {
    display: flex;
    gap: 8px;
}

.category-actions button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.edit-btn {
    color: #3498db;
}

.edit-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.delete-btn {
    color: #e74c3c;
}

.delete-btn:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-navbar ul {
        flex-direction: column;
    }
    
    .category-list-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .category-search input {
        width: 100%;
    }
}

/* Status Message */
.status-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: fadeInOut 3s forwards;
}

.status-message.success {
    background-color: #4CAF50;
    color: white;
}

.status-message.error {
    background-color: #f44336;
    color: white;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}
