/* ===================================================================
   AUFTRAGSKLÃ„RUNG-PORTAL - MAIN STYLESHEET
   KEINE Umlaut-Konvertierung! (Ã¤, Ã¶, Ã¼, ÃŸ bleiben erhalten!)
   =================================================================== */

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

body {
    font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #eaedf1;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a { color: #4a90e2; text-decoration: none; }
a:hover { color: #2e5f9e; }

/* ===================================================================
   HEADER
   =================================================================== */

.ba-header {
    background: linear-gradient(135deg, #4a90e2 0%, #2e5f9e 100%);
    color: #fff;
    height: 70px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #3a7bc8;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.ba-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ba-sidebar-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ba-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.ba-logo i { font-size: 24px; }

.ba-header-center {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

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

.ba-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}

.ba-search input {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ba-search input::placeholder { color: rgba(255, 255, 255, 0.7); }
.ba-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-color: #fff;
}
.ba-search input:focus::placeholder { color: #6c757d; }

.ba-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Notification Dropdown */
.ba-notification-dropdown { position: relative; }

.ba-notification-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-notification-btn:hover { background: rgba(255, 255, 255, 0.3); }

.ba-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.ba-notification-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 400px;
    max-height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ba-notification-menu.show { display: flex; }

.ba-notification-header {
    padding: 15px 20px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ba-notification-header h4 {
    font-size: 16px;
    color: #2e5f9e;
    font-weight: 700;
    margin: 0;
}

.ba-notification-list { flex: 1; overflow-y: auto; }

.ba-notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.ba-notification-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
    display: block;
}

.ba-notification-item {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.ba-notification-item:hover { background: #f8f9fa; }

.ba-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.ba-notification-content { flex: 1; }
.ba-notification-title { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.ba-notification-text { font-size: 13px; color: #6c757d; margin-bottom: 5px; }
.ba-notification-time { font-size: 12px; color: #adb5bd; }

.ba-notification-footer {
    padding: 12px 20px;
    border-top: 2px solid #e9ecef;
    text-align: center;
}

/* User Dropdown */
.ba-user-dropdown { position: relative; }

.ba-user-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.ba-user-btn:hover { background: rgba(255, 255, 255, 0.3); }

.ba-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #e9ecef 100%);
    color: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.ba-user-info { text-align: left; }
.ba-user-name { font-size: 14px; font-weight: 600; line-height: 1; margin-bottom: 3px; }
.ba-user-role { font-size: 11px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }

.ba-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ba-user-menu.show { display: flex; }

.ba-user-menu-header {
    padding: 20px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    display: flex;
    gap: 15px;
    align-items: center;
}

.ba-user-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.ba-user-menu-name { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.ba-user-menu-email { font-size: 13px; opacity: 0.9; }
.ba-user-menu-divider { height: 1px; background: #e9ecef; margin: 5px 0; }

.ba-user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ba-user-menu-item i { width: 20px; text-align: center; font-size: 16px; }
.ba-user-menu-item:hover { background: #f8f9fa; color: #2e5f9e; }
.ba-user-menu-item.ba-logout { color: #dc3545; }
.ba-user-menu-item.ba-logout:hover { background: #dc3545; color: #fff; }

/* ===================================================================
   SIDEBAR
   =================================================================== */

.ba-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 280px;
    height: calc(100vh - 70px);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 900;
    display: flex;
    flex-direction: column;
}

body.sidebar-collapsed .ba-sidebar { width: 70px; }
body.sidebar-collapsed .ba-sidebar .ba-sidebar-text { display: none; }
body.sidebar-collapsed .ba-sidebar .ba-stat-card { display: none; }

.ba-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.ba-stat-card {
    background: linear-gradient(135deg, #4a90e2 0%, #2e5f9e 100%);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.ba-stat-card h3 { font-size: 28px; margin-bottom: 5px; }
.ba-stat-card p { font-size: 12px; opacity: 0.9; margin: 0; }

.ba-sidebar-nav {
    flex: 1;
    padding: 15px 0;
}

.ba-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ba-sidebar-nav li { margin: 2px 10px; }

.ba-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.ba-sidebar-nav a:hover {
    background: #e9ecef;
    color: #2e5f9e;
}

.ba-sidebar-nav a.active {
    background: linear-gradient(135deg, #4a90e2 0%, #2e5f9e 100%);
    color: #fff;
}

.ba-sidebar-nav a i { width: 20px; text-align: center; font-size: 16px; }

.ba-sidebar-divider {
    height: 1px;
    background: #e9ecef;
    margin: 10px 20px;
}

.ba-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    margin-left: auto;
}

.ba-sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
}

.ba-sidebar-footer .ba-btn {
    width: 100%;
    justify-content: center;
}

.ba-sidebar-version {
    text-align: center;
    padding: 10px;
    font-size: 11px;
    color: #adb5bd;
}

/* ===================================================================
   LAYOUT
   =================================================================== */

.ba-main-wrapper {
    margin-top: 70px;
    margin-left: 280px;
    min-height: calc(100vh - 70px);
    transition: margin-left 0.3s ease;
}

body.sidebar-collapsed .ba-main-wrapper { margin-left: 70px; }

.ba-main-content {
    padding: 30px;
    max-width: 1600px;
}

/* ===================================================================
   BREADCRUMB
   =================================================================== */

.ba-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #6c757d;
}

.ba-breadcrumb a { color: #4a90e2; }
.ba-breadcrumb i { font-size: 10px; color: #adb5bd; }

/* ===================================================================
   PROJEKT HEADER & NAV
   =================================================================== */

.ba-projekt-header {
    background: linear-gradient(135deg, #4a90e2, #2e5f9e);
    color: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ba-projekt-header-content { flex: 1; }
.ba-projekt-nummer { font-size: 12px; opacity: 0.8; margin-bottom: 5px; font-family: monospace; }
.ba-projekt-header h1 { font-size: 22px; margin: 0 0 8px; font-weight: 600; }
.ba-projekt-kunde { margin: 0; font-size: 14px; opacity: 0.9; }
.ba-projekt-kunde i { margin-right: 8px; }

.ba-projekt-nav {
    display: flex;
    gap: 5px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.ba-projekt-nav a {
    padding: 10px 16px;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.ba-projekt-nav a:hover { background: #f1f3f4; }
.ba-projekt-nav a.active { background: #4a90e2; color: #fff; }
.ba-projekt-nav a i { font-size: 14px; }

/* ===================================================================
   CARDS
   =================================================================== */

.ba-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.ba-card-header {
    padding: 18px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ba-card-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ba-card-header h2 i { color: #4a90e2; }

.ba-card-body {
    padding: 25px;
}

/* ===================================================================
   BUTTONS
   =================================================================== */

.ba-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ba-btn-sm { padding: 6px 12px; font-size: 13px; }
.ba-btn-lg { padding: 14px 28px; font-size: 16px; }

.ba-btn-primary {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
}
.ba-btn-primary:hover { background: linear-gradient(135deg, #357abd, #2e5f9e); color: #fff; }

.ba-btn-secondary { background: #6c757d; color: #fff; }
.ba-btn-secondary:hover { background: #5a6268; color: #fff; }

.ba-btn-success { background: #28a745; color: #fff; }
.ba-btn-success:hover { background: #218838; color: #fff; }

.ba-btn-danger { background: #dc3545; color: #fff; }
.ba-btn-danger:hover { background: #c82333; color: #fff; }

.ba-btn-outline {
    background: transparent;
    border: 2px solid #4a90e2;
    color: #4a90e2;
}
.ba-btn-outline:hover { background: #4a90e2; color: #fff; }

/* ===================================================================
   BADGES
   =================================================================== */

.ba-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ba-badge-primary { background: #e3f2fd; color: #1976d2; }
.ba-badge-secondary { background: #f5f5f5; color: #757575; }
.ba-badge-success { background: #e8f5e9; color: #388e3c; }
.ba-badge-warning { background: #fff3e0; color: #f57c00; }
.ba-badge-danger { background: #ffebee; color: #d32f2f; }
.ba-badge-info { background: #e0f7fa; color: #0097a7; }

.ba-badge-entwurf { background: #f5f5f5; color: #757575; }
.ba-badge-in_bearbeitung { background: #e3f2fd; color: #1976d2; }
.ba-badge-in_pruefung { background: #fff3e0; color: #f57c00; }
.ba-badge-freigegeben { background: #e8f5e9; color: #388e3c; }
.ba-badge-abgeschlossen { background: #e8f5e9; color: #388e3c; }
.ba-badge-archiviert { background: #eceff1; color: #546e7a; }

/* ===================================================================
   FORMS
   =================================================================== */

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

.ba-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #495057;
}

.ba-form-group label .required,
.ba-form-group label span.required {
    color: #dc3545;
}

.ba-input,
.ba-form-group input,
.ba-form-group select,
.ba-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.ba-form-group input:focus,
.ba-form-group select:focus,
.ba-form-group textarea:focus,
.ba-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.ba-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.ba-form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
}

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

/* ===================================================================
   GRID LAYOUTS
   =================================================================== */

.ba-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.ba-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ba-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .ba-grid-2 { grid-template-columns: 1fr; }
    .ba-grid-3 { grid-template-columns: 1fr 1fr; }
    .ba-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .ba-grid-3,
    .ba-grid-4 { grid-template-columns: 1fr; }
}

/* ===================================================================
   EMPTY STATE
   =================================================================== */

.ba-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.ba-empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
    display: block;
}

.ba-empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #495057;
}

.ba-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ===================================================================
   FLASH MESSAGES
   =================================================================== */

.ba-flash {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

.ba-flash-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.ba-flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===================================================================
   STATS
   =================================================================== */

.ba-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.ba-stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ba-stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.ba-stat-icon.blue { background: #e3f2fd; color: #1976d2; }
.ba-stat-icon.green { background: #e8f5e9; color: #388e3c; }
.ba-stat-icon.orange { background: #fff3e0; color: #f57c00; }
.ba-stat-icon.purple { background: #f3e5f5; color: #7b1fa2; }
.ba-stat-icon.red { background: #ffebee; color: #d32f2f; }

.ba-stat-info { flex: 1; }
.ba-stat-value { font-size: 28px; font-weight: 700; color: #333; line-height: 1; }
.ba-stat-label { font-size: 13px; color: #6c757d; margin-top: 5px; }

/* ===================================================================
   TABLES
   =================================================================== */

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

.ba-table th,
.ba-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.ba-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ba-table tbody tr:hover {
    background: #f8f9fa;
}

/* ===================================================================
   MODALS
   =================================================================== */

.ba-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ba-modal.show { display: flex; }

.ba-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ba-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ba-modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ba-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
    padding: 0;
}

.ba-modal-close:hover { color: #333; }

.ba-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.ba-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===================================================================
   HINTS / ALERTS
   =================================================================== */

.ba-hint {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ba-hint i { font-size: 18px; margin-top: 2px; }

.ba-hint-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1976d2;
}

.ba-hint-warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #f57c00;
}

.ba-hint-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #43a047;
}

.ba-hint-danger {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #e53935;
}

/* ===================================================================
   TEXT UTILITIES
   =================================================================== */

.ba-text-muted { color: #6c757d; }
.ba-text-primary { color: #4a90e2; }
.ba-text-success { color: #28a745; }
.ba-text-danger { color: #dc3545; }
.ba-text-warning { color: #ffc107; }
.ba-text-center { text-align: center; }
.ba-text-right { text-align: right; }

/* ===================================================================
   HEADER DROPDOWNS (Benachrichtigungen & User-MenÃ¼)
   =================================================================== */

.ba-header-dropdown {
    position: relative;
}

.ba-header-icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ba-header-icon-btn .ba-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.ba-header-user-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.ba-header-user-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ba-header-user-btn .ba-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #e9ecef 100%);
    color: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.ba-header-user-btn .ba-user-info {
    text-align: left;
}

.ba-header-user-btn .ba-user-name {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.ba-header-user-btn .ba-user-role {
    font-size: 11px;
    opacity: 0.8;
    display: block;
}

.ba-header-user-btn i.fa-chevron-down {
    font-size: 12px;
    opacity: 0.8;
}

/* Dropdown Menu */
.ba-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
}

.ba-dropdown-menu-show {
    display: flex !important;
}

.ba-dropdown-menu-right {
    right: 0;
}

.ba-dropdown-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.ba-dropdown-header .ba-user-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.ba-dropdown-header .ba-user-name {
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.ba-dropdown-header .ba-user-email {
    font-size: 13px;
    opacity: 0.9;
    display: block;
}

.ba-dropdown-body {
    max-height: 350px;
    overflow-y: auto;
}

.ba-dropdown-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.ba-dropdown-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
    display: block;
}

.ba-dropdown-empty p {
    margin: 0;
}

.ba-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.ba-dropdown-item:hover {
    background: #f8f9fa;
    color: #2e5f9e;
}

.ba-dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #6c757d;
}

.ba-dropdown-item:hover i {
    color: #2e5f9e;
}

.ba-dropdown-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.ba-dropdown-item-content {
    flex: 1;
    min-width: 0;
}

.ba-dropdown-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
    color: #333;
}

.ba-dropdown-item-text {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ba-dropdown-item-time {
    font-size: 12px;
    color: #adb5bd;
}

.ba-dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 5px 0;
}

.ba-dropdown-item-admin {
    color: #2e5f9e;
}

.ba-dropdown-item-admin i {
    color: #2e5f9e;
}

.ba-dropdown-item-danger {
    color: #dc3545;
}

.ba-dropdown-item-danger i {
    color: #dc3545;
}

.ba-dropdown-item-danger:hover {
    background: #dc3545;
    color: #fff;
}

.ba-dropdown-item-danger:hover i {
    color: #fff;
}

.ba-dropdown-footer {
    padding: 12px 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
    background: #f8f9fa;
}

.ba-dropdown-footer a {
    font-size: 13px;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
}

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

.ba-btn-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

.ba-btn-link:hover {
    color: #fff;
}

/* Header Search */
.ba-header-search {
    position: relative;
    width: 100%;
}

.ba-header-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.ba-header-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ba-header-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.ba-header-search input:focus {
    outline: none;
    background: #fff;
    color: #333;
    border-color: #fff;
}

.ba-header-search input:focus::placeholder {
    color: #6c757d;
}

/* Header Logo */
.ba-header-logo h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

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

@media (max-width: 992px) {
    .ba-sidebar {
        transform: translateX(-100%);
    }
    
    .ba-sidebar.show {
        transform: translateX(0);
    }
    
    .ba-main-wrapper {
        margin-left: 0;
    }
    
    .ba-header-center {
        display: none;
    }
    
    .ba-main-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .ba-header {
        padding: 0 15px;
    }
    
    .ba-logo span {
        display: none;
    }
    
    .ba-user-info {
        display: none;
    }
    
    .ba-projekt-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .ba-projekt-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .ba-form-row {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   TOAST ALERTS (oben rechts)
   =================================================================== */

.ba-toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.ba-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.4s ease-out;
    position: relative;
    min-width: 300px;
}

.ba-alert i:first-child {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ba-alert span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.ba-alert-close {
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    transition: opacity 0.2s;
}

.ba-alert-close:hover {
    opacity: 1;
}

/* Error / Danger */
.ba-alert-error,
.ba-alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    border-left: 5px solid #a71d2a;
}

/* Success */
.ba-alert-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #fff;
    border-left: 5px solid #155724;
}

/* Warning */
.ba-alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    border-left: 5px solid #c69500;
}

/* Info */
.ba-alert-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
    border-left: 5px solid #0c5460;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.ba-alert.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}