/* ========================================
   Postclient Portal - Custom Styles
   ======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
}

/* ========================================
   GLOBAL BUTTON STYLES (Corporate Design)
   ======================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: #ffd700;
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    box-shadow: 0 4px 12px rgba(90, 98, 104, 0.3);
}

.btn-download {
    display: inline-block;
    padding: 8px 16px;
    background: #ffd700;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-download:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* ========================================
   HEADER & NAVIGATION STYLES
   ======================================== */

.navbar-sticky {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1a1a1a;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

.logo-header {
    max-height: 25px;
    width: auto;
    flex-shrink: 0;
}

.brand-text {
    color: #ffd700;
    font-weight: bold;
    display: none;
}

/* HEADER RIGHT SIDE (Menu + User Info) */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.user-name {
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

/* NAVBAR MENU (für eingeloggte Nutzer) */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffd700;
    text-decoration: none;
}

.nav-postbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.postbox-icon {
    font-size: 18px;
    display: none;
}

.postbox-badge {
    background-color: #ffd700;
    color: #000;
    font-weight: bold;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.user-greeting {
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

/* DROPDOWN MENU */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.dropdown-trigger:hover {
    background-color: #ffd700;
    color: #000 !important;
    text-decoration: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    border: 1px solid #333;
    border-radius: 4px;
    min-width: 220px;
    margin-top: -4px;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    border: none;
    text-align: left;
}

.dropdown-item:hover {
    background-color: #333;
    color: #ffd700;
    text-decoration: none;
}

.dropdown-item.dropdown-item-disabled {
    color: #888;
    background-color: #1f1f1f;
    cursor: not-allowed;
    pointer-events: none;
}

.dropdown-logout {
    background-color: #ffd700;
    color: #000;
    font-weight: 600;
    border-top: 1px solid #333;
}

.dropdown-logout:hover {
    background-color: #ffed4e;
    color: #000;
}

.btn-login, .btn-logout {
    background-color: #ffd700;
    color: #000 !important;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    display: inline-block;
}

.btn-login:hover, .btn-logout:hover {
    background-color: #ffed4e;
    text-decoration: none;
}

.gold-stripe {
    background-color: #ffd700;
    height: 8px;
    width: 100%;
}

/* INFO BAR (unter Header, wenn eingeloggt) */
.info-bar {
    background-color: #ffd700;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-bar-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    max-width: 1200px;
}

.info-item {
    white-space: nowrap;
}

.info-separator {
    color: #000;
    opacity: 0.5;
}

/* ========================================
   POSTBOX PAGE STYLES
   ======================================== */

.postbox-main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #ffffff;
}

.postbox-content-wrapper {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.postbox-title {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.postbox-status {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.postbox-status.draft {
    color: #ffa500;
    font-weight: 600;
}

.postbox-empty {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.postbox-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.postbox-empty-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 500;
}

.postbox-empty-link {
    display: inline-block;
    padding: 12px 32px;
    background: #ffd700;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
}

.postbox-empty-link:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.3);
}

.postbox-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.postbox-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.postbox-card:hover {
    border-color: #ffd700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.postbox-card-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    font-weight: 600;
}

.postbox-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.postbox-card-value.gold {
    color: #ffd700;
}

.postbox-table-container {
    background: white;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.postbox-table-container:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.postbox-table {
    width: 100%;
    border-collapse: collapse;
}

.postbox-table th {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    color: #333;
    border-bottom: 3px solid #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.postbox-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.postbox-table tbody tr {
    transition: all 0.2s ease;
}

.postbox-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
}

.postbox-price-row {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-top: 2px solid #ffd700 !important;
}

.postbox-price-row td {
    padding: 25px 20px !important;
    border-bottom: none;
}

.postbox-price-breakdown-table {
    margin: 0;
}

.postbox-price-breakdown-table .price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: none;
    font-size: 14px;
    color: #333;
}

.postbox-price-breakdown-table .price-row:last-child {
    border-bottom: none;
    padding-top: 12px;
}

.postbox-price-breakdown-table .price-row.total {
    border-top: 2px solid #ffd700;
    border-bottom: none;
    padding: 12px 0;
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    margin: 0;
}

.postbox-price-breakdown-table .price-row.total span:last-child {
    color: #ffd700;
    font-size: 16px;
}

.postbox-product-name {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
}

.postbox-product-id {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.postbox-price {
    color: #ffd700;
    font-weight: 700;
    font-size: 16px;
}

.postbox-button-remove {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.postbox-button-remove:hover:not(:disabled) {
    background: #ff5252;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.postbox-button-remove:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.postbox-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.postbox-button-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    border: none;
    padding: 16px 48px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.2);
    flex: 1;
    min-width: 250px;
}

.postbox-button-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffed4e 0%, #ffff70 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.4);
}

.postbox-button-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.postbox-button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.postbox-button-secondary {
    background: white;
    color: #000;
    border: 2px solid #ffd700;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.postbox-button-secondary:hover {
    background: #ffd700;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.2);
}

.postbox-price-breakdown {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #333;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.total {
    border-top: 2px solid #ffd700;
    border-bottom: 2px solid #ffd700;
    padding: 15px 0;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    margin-top: 10px;
}

.price-row.total span:last-child {
    color: #ffd700;
    font-size: 18px;
}

.postbox-checkboxes {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.postbox-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.postbox-checkbox:hover {
    padding-left: 10px;
}

.postbox-checkbox input[type="checkbox"] {
    display: none;
}

.postbox-checkbox .checkbox-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: white;
    background: white;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.postbox-checkbox input[type="checkbox"]:checked + .checkbox-icon {
    background: #ffd700;
    border-color: #ffd700;
    color: #1a1a1a;
    font-weight: 700;
}

.postbox-checkbox .checkbox-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    padding-top: 2px;
}

.postbox-checkbox input[type="checkbox"]:checked ~ .checkbox-text {
    color: #1a1a1a;
    font-weight: 500;
}

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    font-weight: 600;
    font-size: 14px;
}

.toast-notification.error {
    background: #ff6b6b;
}

.toast-notification.success {
    background: #ffd700;
    color: #1a1a1a;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.row-removing {
    opacity: 0.5;
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        max-height: 0;
        padding: 0;
    }
}

.login-page {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.login-form {
    margin-top: 30px;
}

.form-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 0.95rem;
    border-radius: 6px;
    width: 100%;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    outline: none;
}

.demo-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 25px;
    border-left: 4px solid #ffd700;
    font-size: 0.85rem;
}

.demo-info p {
    margin-bottom: 5px;
    color: #555;
}

.demo-info strong {
    color: #1a1a1a;
}

.alert {
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    padding: 12px 15px;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #fee;
    border-color: #fcc;
    color: #c33;
}

.alert-success {
    background-color: #efe;
    border-color: #cfc;
    color: #3c3;
}

/* ========================================
   FOOTER MAIN STYLES
   ======================================== */

.footer-main {
    background-color: #ffd700;
    color: #000;
    padding: 40px 20px 20px 10px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-main h5 {
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-main p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    font-size: 12px;
}

/* Dashboard */
.dashboard-header {
    margin-bottom: 6px;
}

.dashboard-title {
    margin-bottom: 4px;
}

.dashboard-subtitle {
    margin-bottom: 0;
    color: #6c757d;
}

.dashboard-quick-link {
    background-color: #fff;
    color: #1a1a1a;
    border: 1px solid #ddd;
}

.dashboard-quick-link:hover {
    background-color: #ffd700;
    color: #000;
    border-color: #ffd700;
}

/* ========================================
   LOGOUT PAGE STYLES
   ======================================== */

.logout-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.logout-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logout-card h1 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 32px;
}

.logout-card p {
    color: #666;
    margin-bottom: 30px;
}

.logout-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-gold {
    background-color: #ffd700;
    color: #000;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    border: none;
}

.btn-gold:hover {
    background-color: #ffed4e;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: #000;
    border: 2px solid #000;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
}

.btn-outline:hover {
    background-color: #f5f5f5;
    text-decoration: none;
    color: #000;
}

.logout-redirect {
    font-size: 12px;
    color: #999;
}

/* ========================================
   LANDING PAGE STYLES
   ======================================== */

.landing-page {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.hero-section {
    background-color: #fff;
    padding: 80px 20px;
    border-bottom: 8px solid #ffd700;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    opacity: 0.9;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
}

.features-section {
    padding: 60px 20px;
}

.feature-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-box h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.feature-box p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 15px;
}

.btn-feature {
    background-color: #ffd700;
    color: #000;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-feature:hover {
    background-color: #ffed4e;
    text-decoration: none;
}

.info-section {
    background-color: #fff;
    padding: 40px 20px;
    border-top: 1px solid #eee;
}

.info-text {
    font-size: 16px;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .navbar-sticky {
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar-nav {
        gap: 10px;
    }

    .hero-title {
        font-size: 32px;
    }

    .login-card {
        padding: 40px 25px;
    }

    .login-title {
        font-size: 1.6rem;
    }

    .feature-box {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .navbar-sticky {
        padding: 10px 15px;
    }

    .logo-header {
        max-height: 20px;
    }

    .brand-text {
        font-size: 14px;
    }

    .hero-title {
        font-size: 24px;
    }

    .login-card {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 1.4rem;
    }
}

/* ========================================
   ACCOUNT PAGE STYLES
   ======================================== */

.account-page {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.account-header {
    margin-bottom: 30px;
}

.account-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* ACCOUNT TABS */
.account-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-link {
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.tab-link:hover {
    color: #ffd700;
    text-decoration: none;
}

.tab-link.active {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

/* ACCOUNT FORM */
.account-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
    padding: 5px;
}

.form-control:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-control:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.form-control textarea {
    resize: vertical;
    font-family: monospace;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* FORM ACTIONS */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-gold {
    background-color: #ffd700;
    color: #000;
}

.btn-gold:hover {
    background-color: #ffed4e;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: #1a1a1a;
    border: 2px solid #d0d0d0;
}

.btn-outline:hover {
    border-color: #ffd700;
    color: #ffd700;
    text-decoration: none;
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   PRODUCT STATUS STYLES
   ======================================== */

.status-pending {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.status-error {
    display: inline-block;
    background: #f44336;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

/* ========================================
   PRODUCT SELECTION & POSTBOX STYLES
   ======================================== */

.product-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    flex-shrink: 0;
    margin-right: 12px;
    padding-right: 8px;
}

.product-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ffd700;
}

.product-checkbox-disabled {
    cursor: not-allowed;
    opacity: 0.4;
    accent-color: #ccc;
}

.postbox-action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    margin-top: 0;
    border-radius: 0;
}

.btn-save-postbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffd700;
    color: #333;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save-postbox:hover {
    background: #ffed4e;
}

.btn-icon {
    font-size: 16px;
}

/* ========================================
   BRIEFE VERARBEITEN MANUAL PAGE STYLES
   ======================================== */

.brief-verarbeitet-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.pdf-viewer-section {
    background: white;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.pdf-header {
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    font-weight: 600;
}

.pdf-canvas-container {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    cursor: crosshair;
    position: relative;
}

#pdf-canvas {
    max-width: 100%;
    max-height: 100%;
    border: 2px solid transparent;
    transition: border 0.3s;
}

#pdf-canvas:hover {
    border: 2px solid #ffd700;
}

.pdf-controls {
    padding: 12px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.pdf-controls button {
    padding: 6px 12px;
    background: #ffd700;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.pdf-controls button:hover {
    background: #ffed4e;
}

.pdf-controls input[type="range"] {
    width: 150px;
    cursor: pointer;
}

.pdf-hint {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
}

.products-section {
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.products-header {
    padding: 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-bottom: 1px solid #ddd;
}

.products-header h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
}

.products-header p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.products-list {
    flex: 1;
    overflow-y: visible;
    overflow-x: hidden;
    padding: 0;
}

.product-item {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    display: grid;
    grid-template-columns: 40px 1fr 55px 70px 40px;
    gap: 4px;
    align-items: center;
    white-space: nowrap;
}

.product-item:hover {
    background: #f9f9f9;
}

.product-item.active {
    background: #fffacd;
    border-left: 4px solid #ffd700;
    padding-left: 16px;
}

.product-item.product-error {
    background: #ffe8e8;
    border-left: 4px solid #ff4444;
    padding-left: 16px;
}

.product-item.product-error:hover {
    background: #ffd5d5;
}

.product-number {
    font-weight: 700;
    color: #333;
    text-align: center;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-name {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.product-pages {
    font-size: 11px;
    color: #999;
}

.product-price {
    font-weight: 700;
    color: #333;
    font-size: 16px;
    text-align: center;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

/* ========================================
   ACCOUNT DASHBOARD STYLES
   ======================================== */

.account-main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.account-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.account-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

/* Balance Card */
.account-balance-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.account-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.balance-label {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.balance-status {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.balance-status.negative {
    background: rgba(255, 76, 76, 0.15);
    color: #d32f2f;
}

.balance-status.positive {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.balance-status.neutral {
    background: rgba(158, 158, 158, 0.15);
    color: #424242;
}

/* Action Buttons */
.account-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.account-button-primary,
.account-button-secondary {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.account-button-primary {
    background: #ffd700;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.account-button-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
}

.account-button-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.account-button-secondary:hover {
    background: #fff;
    border-color: #ffd700;
}

/* Payment Methods */
.account-payment-methods {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.payment-methods-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.payment-methods-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.payment-method-option {
    position: relative;
    cursor: pointer;
}

.payment-method-option input[type="radio"] {
    display: none;
}

.payment-option-card {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.payment-method-option input[type="radio"]:checked + .payment-option-card {
    border-color: #ffd700;
    background: #fffaf0;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

.payment-option-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f9f9f9;
}

.payment-option-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.payment-option-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
    font-size: 15px;
}

.payment-option-desc {
    font-size: 13px;
    color: #999;
}

/* Transaction History */
.account-transaction-history {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.transactions-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.transactions-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.transactions-table-container {
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.transactions-table thead {
    background: #f9f9f9;
}

.transactions-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.transactions-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.transaction-row:hover {
    background: #fafafa;
}

.txn-date {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

.txn-description {
    color: #333;
    font-weight: 500;
}

.txn-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.txn-type-badge.purchase {
    background: #e3f2fd;
    color: #1976d2;
}

.txn-type-badge.payment {
    background: #e8f5e9;
    color: #388e3c;
}

.txn-type-badge.refund {
    background: #fff3e0;
    color: #f57c00;
}

.txn-type-badge.admin_adjustment {
    background: #fce4ec;
    color: #c2185b;
}

.txn-type-badge.direct_debit_batch {
    background: #f3e5f5;
    color: #7b1fa2;
}

.txn-amount {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.txn-amount.positive {
    color: #4caf50;
}

.txn-amount.negative {
    color: #f44336;
}



.modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-form-group {
    margin-bottom: 16px;
}

.modal-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.modal-form-group input,
.modal-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.modal-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-primary {
    background: #ffd700;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #ffed4e;
}

.btn-secondary {
    background: #ddd;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #ccc;
}

@media (max-width: 1200px) {
    .brief-verarbeitet-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    .pdf-viewer-section {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
}

/* ========================================
   Modal Styles - Bestätigung zum Löschen
   ======================================== */

.confirm-remove-all-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.confirm-remove-all-modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header-icon {
    font-size: 24px;
}

.modal-header-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
}

.modal-body {
    padding: 24px;
    color: #666;
    line-height: 1.6;
}

.modal-body p {
    margin: 0;
}

.modal-body p:last-child {
    color: #999;
    font-size: 13px;
    margin-top: 12px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px 24px;
    border-top: 1px solid #eee;
    justify-content: flex-end;
}

.modal-button-cancel {
    background: #f0f0f0;
    color: #1a1a1a;
    flex: 0;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.modal-button-cancel:hover {
    background: #e0e0e0;
}

.modal-button-delete {
    background: #dc3545;
    color: white;
    flex: 0;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.modal-button-delete:hover {
    background: #c82333;
}

/* ========================================
   GUTHABEN AUSZAHLEN WITHDRAWAL SYSTEM STYLES
   ======================================== */

.balance-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

.balance-card.card-available {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.balance-card.card-locked {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.balance-card.card-total {
    border-left-color: #0066cc;
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
}

.balance-card-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.balance-card-amount {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.balance-card-status {
    font-size: 13px;
    color: #666;
}

.info-box {
    background: #f9f9f9;
    border-left: 4px solid #0066cc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-box.info-box-warning {
    background: #fffaf0;
    border-left-color: #ffc107;
}

.info-box.info-box-default {
    background: #f0f0f0;
    border-left-color: #999;
}

.info-box h3 {
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-size: 16px;
}

.info-box p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.breakdown-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

.breakdown-item.highlight {
    background: #e8f1ff;
    border: 2px solid #0066cc;
    font-weight: 600;
}

.breakdown-label {
    color: #666;
    font-size: 14px;
}

.breakdown-value {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
}

.breakdown-note {
    margin-top: 15px;
    padding: 12px;
    background: #fffbf0;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.withdrawal-form-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.withdrawal-form-card h2 {
    margin: 0 0 25px 0;
    color: #1a1a1a;
    font-size: 20px;
}

.withdrawal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-helper-text {
    color: #666;
}

.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    flex: 1;
    padding: 12px 40px 12px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.form-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.currency-symbol {
    position: absolute;
    right: 12px;
    color: #999;
    font-weight: 600;
}

.btn-withdrawal {
    padding: 14px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-withdrawal:hover {
    background: #218838;
}

.btn-withdrawal:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.withdrawal-history-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.withdrawal-history-card h2 {
    margin: 0 0 25px 0;
    color: #1a1a1a;
    font-size: 20px;
}

.withdrawals-table {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.history-table thead {
    background: #f9f9f9;
    border-bottom: 2px solid #ddd;
}

.history-table thead th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
}

.history-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.history-table tbody tr:hover {
    background: #f9f9f9;
}

.history-table td {
    padding: 12px;
    color: #666;
}

.withdrawal-date {
    font-weight: 600;
    color: #1a1a1a;
}

.withdrawal-amount {
    font-weight: 600;
    color: #28a745;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.account-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.account-button-secondary {
    padding: 12px 24px;
    background: #f0f0f0;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}

.account-button-secondary:hover {
    background: #e0e0e0;
    border-color: #999;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ADMIN AUSZAHLUNGEN STYLES */

.admin-main {
    background: #f9f9f9;
    min-height: 100vh;
    padding: 20px;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-container h1 {
    color: #1a1a1a;
    margin-bottom: 30px;
    font-size: 28px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #0066cc;
}

.card-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-amount {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.card-count {
    font-size: 13px;
    color: #999;
}

.admin-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-section h2 {
    color: #1a1a1a;
    margin: 0 0 25px 0;
    font-size: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.withdrawals-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.withdrawal-item {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.withdrawal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.withdrawal-header div:first-child {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.withdrawal-status-badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.withdrawal-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.withdrawal-complete-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
}

.form-textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.completed-list {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background: #f9f9f9;
    border-bottom: 2px solid #ddd;
}

.admin-table thead th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
}

.admin-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.admin-table tbody tr:hover {
    background: #f9f9f9;
}

.admin-table td {
    padding: 12px;
    color: #666;
}

.amount-cell {
    font-weight: 600;
    color: #28a745;
}

@media (max-width: 768px) {
    .balance-cards-container {
        grid-template-columns: 1fr;
    }
    
    .history-table {
        font-size: 12px;
    }
    
    .history-table thead th,
    .history-table td {
        padding: 8px;
    }

    .withdrawal-header {
        flex-direction: column;
        gap: 15px;
    }

    .admin-table {
        font-size: 12px;
    }

    .admin-table thead th,
    .admin-table td {
        padding: 8px;
    }
}

/* ========================================
   MOBILE RESPONSIVE NAVBAR
   ======================================== */

/* Hamburger Button - nur auf Mobil sichtbar */
.hamburger-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Desktop: Hamburger versteckt */
@media (min-width: 769px) {
    .hamburger-btn {
        display: none !important;
    }
    
    .navbar-menu {
        display: flex !important;
        gap: 30px;
    }
}

/* Mobile: Hamburger sichtbar, Menu versteckt */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 120px;
        right: 0;
        left: 0;
        background: #1a1a1a;
        flex-direction: column;
        gap: 0;
        padding: 15px;
        border-top: 2px solid #ffd700;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }
    
    .navbar-menu.mobile-menu-open {
        display: flex;
    }
    
    .navbar-menu .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid #333;
        display: block;
        color: #fff;
    }
    
    .navbar-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-menu .nav-dropdown {
        border-bottom: 1px solid #333;
    }
    
    .navbar-menu .dropdown-menu {
        position: static;
        background: #0d0d0d;
        box-shadow: none;
        border: none;
        padding: 10px 0 10px 20px;
        margin-top: 0;
        display: none;
    }
    
    .navbar-menu .nav-dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .navbar-menu .nav-dropdown.open .dropdown-menu {
        display: block;
    }
    
    .navbar-menu .dropdown-item {
        padding: 8px 0;
        border-bottom: none;
        font-size: 13px;
        color: #ccc;
    }
    
    .navbar-menu .dropdown-item:hover {
        color: #ffd700;
    }
    
    /* Mobile Dropdown - Toggle per Click */
    .navbar-menu .nav-dropdown .dropdown-menu {
        display: none;
    }
    
    .navbar-menu .nav-dropdown.open .dropdown-menu {
        display: block;
    }
}

/* ========================================
   BRIEFE-VERARBEITET ACTION ROW STYLES
   ======================================== */

.postbox-action-row {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-save-postbox {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.btn-save-postbox:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffff70 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.3);
}

.btn-save-postbox:active {
    transform: translateY(0);
}

.btn-save-postbox .btn-icon {
    font-size: 18px;
}

.btn-cancel {
    background: #e8e8e8;
    color: #333;
    border: 1px solid #ccc;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cancel:hover {
    background: #d8d8d8;
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-cancel:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: #e8e8e8;
    color: #333;
    border: 1px solid #ccc;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: #d8d8d8;
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
}
