/* Modernes, responsives Design für Mitglieder-Management-System */

:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 0.5rem 0;
}

.navbar-menu a:hover {
    opacity: 0.8;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1.5rem 0;
}

/* Container padding für Dashboard */
.dashboard-container .container {
    padding: 1rem 20px;
}

/* Page Header */
.page-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.125rem;
    color: var(--text-color);
    flex: 1;
    font-weight: 700;
}

.subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    min-width: 85px;
    flex: 0 1 auto;
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(102, 126, 234, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quick-action-btn .icon {
    font-size: 1.5rem;
    display: block;
}

.quick-action-btn .label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-info:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.4);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-md {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-group .btn {
    margin: 0;
}

.btn-group form {
    display: inline-block;
    margin: 0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

input:disabled,
textarea:disabled,
select:disabled {
    background-color: var(--bg-color);
    cursor: not-allowed;
    opacity: 0.6;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d1fae5;
    border-color: var(--success-color);
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border-color: var(--error-color);
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    border-color: var(--warning-color);
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border-color: var(--info-color);
    color: #1e40af;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-error {
    background: var(--error-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

.badge-secondary {
    background: var(--text-light);
    color: white;
}

/* Badge in buttons (for consistent sizing) */
.btn-sm.badge,
.badge.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-box .subtitle {
    text-align: center;
    margin-bottom: 2rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Dashboard Card Hover Effects */
.dashboard-grid .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.25rem;
}

.dashboard-grid .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Quick Action Cards */
.card h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Statistiken */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-item {
    padding: 0.875rem;
    background: var(--bg-color);
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-item:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(102, 126, 234, 0.05) 100%);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.375rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.125rem;
    line-height: 1.2;
}

.stat-description {
    font-size: 0.7rem;
    color: var(--text-light);
    line-height: 1.3;
}

.fees-history {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.fees-history h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

.fee-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fee-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.375rem;
    background: var(--bg-color);
    border-radius: 6px;
    align-items: center;
    transition: all 0.2s ease;
}

.fee-item:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(2px);
}

.fee-date {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    flex: 0 0 auto;
}

.fee-amount {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.875rem;
    flex: 1;
    text-align: right;
}

.fee-method {
    font-size: 0.7rem;
    color: var(--text-light);
    flex: 0 0 100%;
    margin-top: 0.125rem;
}

.fee-reference {
    font-size: 0.65rem;
    color: var(--text-light);
    flex: 0 0 100%;
    font-style: italic;
    margin-top: 0.125rem;
}

.fee-more {
    text-align: center;
    padding: 0.5rem;
    background: transparent;
}

.fee-more:hover {
    background: transparent;
    transform: none;
}

/* Tabs */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Vote Options */
.vote-options {
    margin: 1.5rem 0;
}

.vote-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.vote-option:hover {
    border-color: var(--primary-color);
    background: #f5f7ff;
}

.vote-option input[type="radio"],
.vote-option input[type="checkbox"] {
    width: auto;
    margin-right: 1rem;
    cursor: pointer;
}

.option-text {
    flex: 1;
    font-weight: 500;
}

/* Results */
.results-list {
    margin: 2rem 0;
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.result-bar {
    height: 30px;
    background: var(--border-color);
    border-radius: 15px;
    overflow: hidden;
}

.result-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.5s;
}

.named-votes-list {
    margin-top: 1.5rem;
}

.named-vote-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vote-for {
    color: var(--text-light);
}

/* Vote List */
.vote-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.vote-list li {
    padding: 0;
    margin-bottom: 0.5rem;
    background: var(--bg-color);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.vote-list li:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateX(2px);
}

.vote-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    width: 100%;
    gap: 0.5rem;
}

.vote-list a:hover {
    color: var(--primary-color);
}

.vote-list .vote-title {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
}

.vote-list .badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.votes-list {
    display: grid;
    gap: 1.5rem;
}

.vote-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.vote-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.vote-description {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    line-height: 1.8;
}

.vote-description-preview {
    color: var(--text-light);
    margin: 0.5rem 0;
}

.vote-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.vote-info p {
    margin: 0.5rem 0;
}

.vote-meta {
    margin-top: 1rem;
}

/* Admin Links */
.admin-links {
    margin-bottom: 2rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    margin: 1rem 0;
    border-radius: 8px;
    position: relative;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.data-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.data-table.sortable th[data-sort] {
    transition: background-color 0.2s;
}

.data-table.sortable th[data-sort]:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.data-table.sortable th[data-sort] .sort-icon {
    display: inline-block;
    transition: opacity 0.2s;
}

.data-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

.data-table tbody tr:hover {
    background: var(--bg-color);
    transform: scale(1.01);
    z-index: 2;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr.empty-row {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.data-table tbody tr.empty-row:hover {
    transform: none;
    background: var(--card-bg);
}

/* Search Bar */
.search-bar {
    margin-bottom: 0;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-label,
.filter-label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--card-bg);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filters-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--card-bg);
    transition: all 0.3s;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.search-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

.search-actions .btn span {
    font-size: 1rem;
}

/* Legacy support for old search-bar */
.search-bar form:not(.search-form) {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-bar input[type="text"]:not(.search-input) {
    flex: 1;
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
}

.pagination-btn:hover:not(.pagination-disabled):not(.pagination-current) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pagination-btn.pagination-current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
    cursor: default;
}

.pagination-btn.pagination-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-color);
}

.pagination-prev,
.pagination-next {
    font-size: 1.25rem;
    font-weight: bold;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.pagination-info {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        min-width: 2rem;
        height: 2rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .pagination-prev,
    .pagination-next {
        font-size: 1rem;
    }
    
    .pagination-ellipsis {
        min-width: 2rem;
        height: 2rem;
        padding: 0.25rem;
        font-size: 0.75rem;
    }
}

/* Text Utilities */
.text-muted {
    color: var(--text-light);
    font-size: 0.875rem;
}

.text-center {
    text-align: center;
}

/* Actions */
.actions {
    margin-top: 2rem;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.dark-mode .footer {
    background: #0f172a;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.dark-mode-toggle .dark-mode-icon,
.dark-mode-toggle .light-mode-icon {
    display: inline-block;
    transition: transform 0.3s;
}

/* Dark Mode Styles */
:root.dark-mode {
    --primary-color: #7c8ef0;
    --primary-dark: #667eea;
    --secondary-color: #8b5fbf;
    --success-color: #34d399;
    --error-color: #f87171;
    --warning-color: #fbbf24;
    --info-color: #60a5fa;
    --text-color: #f3f4f6;
    --text-light: #d1d5db;
    --bg-color: #111827;
    --card-bg: #1f2937;
    --border-color: #374151;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.dark-mode body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.dark-mode .card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-mode input[type="text"],
.dark-mode input[type="email"],
.dark-mode input[type="password"],
.dark-mode input[type="date"],
.dark-mode input[type="datetime-local"],
.dark-mode input[type="time"],
.dark-mode input[type="number"],
.dark-mode textarea,
.dark-mode select {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.dark-mode input:focus,
.dark-mode textarea:focus,
.dark-mode select:focus {
    border-color: var(--primary-color);
    background-color: var(--card-bg);
}

.dark-mode input:disabled,
.dark-mode textarea:disabled,
.dark-mode select:disabled {
    background-color: var(--bg-color);
    opacity: 0.5;
}

.dark-mode .alert-success {
    background: #064e3b;
    border-color: var(--success-color);
    color: #6ee7b7;
}

.dark-mode .alert-error {
    background: #7f1d1d;
    border-color: var(--error-color);
    color: #fca5a5;
}

.dark-mode .alert-warning {
    background: #78350f;
    border-color: var(--warning-color);
    color: #fcd34d;
}

.dark-mode .alert-info {
    background: #1e3a8a;
    border-color: var(--info-color);
    color: #93c5fd;
}

.dark-mode .vote-option:hover {
    background: #374151;
    border-color: var(--primary-color);
}

.dark-mode .vote-description,
.dark-mode .vote-info {
    background: var(--bg-color);
}

.dark-mode .named-vote-item {
    background: var(--card-bg);
}

.dark-mode .vote-list li {
    background: var(--card-bg);
}

.dark-mode .data-table {
    background: var(--card-bg);
}

.dark-mode .data-table tbody tr:hover {
    background: var(--bg-color);
}

.dark-mode .data-table td {
    border-bottom-color: var(--border-color);
}

.dark-mode .tab-btn {
    color: var(--text-light);
}

.dark-mode .tab-btn:hover,
.dark-mode .tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.dark-mode .login-box {
    background: var(--card-bg);
}

.dark-mode .result-bar {
    background: var(--border-color);
}

.dark-mode .profile-tabs {
    border-bottom-color: var(--border-color);
}

.dark-mode .filters-section {
    background: var(--bg-color);
    border-color: var(--border-color);
}

.dark-mode .search-input,
.dark-mode .filter-select {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.dark-mode .search-input:focus,
.dark-mode .filter-select:focus {
    border-color: var(--primary-color);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(124, 142, 240, 0.2);
}

.dark-mode .search-actions {
    border-top-color: var(--border-color);
}

.dark-mode .dark-mode-toggle .dark-mode-icon {
    display: none;
}

.dark-mode .dark-mode-toggle .light-mode-icon {
    display: inline-block !important;
}

.dark-mode .quick-action-btn {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.dark-mode .quick-action-btn:hover {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(124, 142, 240, 0.1) 100%);
    border-color: var(--primary-color);
}

.dark-mode .page-header {
    border-bottom-color: var(--border-color);
}

.dark-mode .stat-item {
    background: var(--card-bg);
    border-color: transparent;
}

.dark-mode .stat-item:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(124, 142, 240, 0.05) 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .login-box {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .quick-actions {
        gap: 0.5rem;
    }
    
    .quick-action-btn {
        min-width: 70px;
        padding: 0.625rem 0.75rem;
    }
    
    .quick-action-btn .icon {
        font-size: 1.25rem;
    }
    
    .quick-action-btn .label {
        font-size: 0.75rem;
    }
    
    .profile-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header h1 {
        width: 100%;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .btn-group .btn,
    .btn-group form {
        width: 100%;
    }
    
    .filters-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-actions {
        flex-direction: column;
    }
    
    .search-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Toast-Benachrichtigungssystem */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--info-color);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--text-color);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.toast-close:hover {
    background: var(--bg-color);
    color: var(--text-color);
}

.toast-success {
    border-left-color: var(--success-color);
}

.toast-success .toast-icon {
    color: var(--success-color);
}

.toast-error {
    border-left-color: var(--error-color);
}

.toast-error .toast-icon {
    color: var(--error-color);
}

.toast-warning {
    border-left-color: var(--warning-color);
}

.toast-warning .toast-icon {
    color: var(--warning-color);
}

.toast-info {
    border-left-color: var(--info-color);
}

.toast-info .toast-icon {
    color: var(--info-color);
}

/* Dark Mode für Toasts */
.dark-mode .toast {
    background: var(--card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .toast-close:hover {
    background: var(--bg-color);
}

/* Responsive Toasts */
@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* Stat Item Warning */
.stat-item-warning {
    border-left: 4px solid var(--warning-color);
    padding-left: 0.75rem;
}

.document-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* PDF-Vorschau Modal */
.pdf-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
}

.pdf-preview-modal.active {
    display: block;
    opacity: 1;
}

.pdf-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.pdf-preview-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 1200px;
    height: 90vh;
    max-height: 900px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.pdf-preview-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-color);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-preview-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pdf-preview-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.pdf-preview-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Dark Mode für PDF-Preview */
.dark-mode .pdf-preview-content {
    background: var(--card-bg);
}

.dark-mode .pdf-preview-header {
    background: var(--bg-color);
    border-bottom-color: var(--border-color);
}

/* Responsive PDF-Preview */
@media (max-width: 768px) {
    .pdf-preview-content {
        width: 95vw;
        height: 95vh;
        max-height: none;
        border-radius: 0;
    }
    
    .pdf-preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .pdf-preview-header h3 {
        font-size: 1rem;
    }
    
    .pdf-preview-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .pdf-preview-actions .btn {
        flex: 1;
    }
}

/* Drag & Drop für Datei-Upload */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: var(--bg-color);
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-area .upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.file-upload-area .upload-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.file-upload-area .upload-hint {
    font-size: 0.875rem;
    color: var(--text-light);
}

.file-upload-progress {
    margin-top: 1rem;
    display: none;
}

.file-upload-progress.active {
    display: block;
}

.file-upload-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
}

.file-upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s;
    border-radius: 4px;
}

.file-upload-progress-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

