/* ===== ADMIN PANEL - ZENTRALE STYLES ===== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* ===== LAYOUT ===== */
.main-content {
    margin-left: 280px;
    padding: 20px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
}

/* ===== SEITEN-HEADER (DASHBOARD STYLE) ===== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header h1 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-header h1 i {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.page-header p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.page-header .dashboard-stats {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    position: relative;
    z-index: 2;
}

.page-header .dashboard-stat {
    background: rgba(255,255,255,0.15);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    min-width: 120px;
}

.page-header .dashboard-stat .stat-number {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.page-header .dashboard-stat .stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .page-header {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .page-header .dashboard-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .page-header .dashboard-stat {
        min-width: 100px;
        padding: 12px 15px;
    }
    
    .page-header .dashboard-stat .stat-number {
        font-size: 1.5rem;
    }
}

/* ===== STATISTIKEN ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #ecf0f1;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-card h3 {
    margin: 0 0 15px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
}

/* ===== AKTIONS-KARTEN ===== */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.action-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ecf0f1;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-card h3 {
    margin: 0 0 18px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-card .icon {
    color: #3498db;
    font-size: 1.4rem;
}

.action-card p {
    margin: 0;
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== LISTEN-HEADER ===== */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.list-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-header .icon {
    color: #3498db;
    font-size: 1.3rem;
}

/* ===== SUCHLEISTE ===== */
.search-container {
    position: relative;
    min-width: 300px;
    max-width: 450px;
}

.search-container input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 35px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-container input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.search-container input::placeholder {
    color: #95a5a6;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    pointer-events: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.search-container input:focus + .search-icon {
    color: #3498db;
}

/* ===== LISTEN-ELEMENTE ===== */
.user-item,
.platform-item,
.credential-item,
.assignment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.user-item:hover,
.platform-item:hover,
.credential-item:hover,
.assignment-item:hover {
    background: rgba(52, 152, 219, 0.02);
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 -15px;
    border-radius: 10px;
}

.user-item:last-child,
.platform-item:last-child,
.credential-item:last-child,
.assignment-item:last-child {
    border-bottom: none;
}

/* ===== BENUTZER-INFO ===== */
.user-info,
.platform-info,
.credential-info,
.assignment-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.username,
.platform-name,
.credential-name,
.assignment-user {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.details,
.platform-details,
.credential-details,
.assignment-details {
    color: #7f8c8d;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== BADGES ===== */
.role-badge,
.platform-type-badge,
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.role-user {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.platform-type-badge {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

/* ===== STATUS-INDICATOREN ===== */
.status-active {
    color: #27ae60;
    font-weight: 600;
}

.status-active::before {
    content: '●';
    color: #27ae60;
    margin-right: 5px;
    font-size: 1.2em;
}

.status-inactive {
    color: #e74c3c;
    font-weight: 600;
}

.status-inactive::before {
    content: '●';
    color: #e74c3c;
    margin-right: 5px;
    font-size: 1.2em;
}

/* ===== AKTIONS-BUTTONS ===== */
.user-actions,
.platform-actions,
.credential-actions,
.assignment-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-edit {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 2px solid rgba(52, 152, 219, 0.2);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.btn-edit:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.btn-delete {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 2px solid rgba(231, 76, 60, 0.2);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.btn-delete:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.4);
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.4s ease;
    border: 1px solid #ecf0f1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

@keyframes modalSlideIn {
    from { 
        transform: translateY(-60px) scale(0.95); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #ecf0f1;
    background: linear-gradient(135deg, #f8f9fa, #ecf0f1);
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header .close {
    color: #95a5a6;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-header .close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: rotate(90deg);
}

/* ===== FORMULARE ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px;
    overflow-y: scroll;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    position: relative;
}

/* Scrollbar-Styling für Formular-Bereich */
.form-grid::-webkit-scrollbar {
    width: 10px;
}

.form-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.form-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.form-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px 18px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 500;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #95a5a6;
    font-weight: 400;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 45px;
}

/* ===== MODAL-AKTIONEN ===== */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    padding: 25px 30px;
    border-top: 2px solid #ecf0f1;
    background: linear-gradient(135deg, #f8f9fa, #ecf0f1);
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}

/* Formular im Modal sollte flex sein */
.modal-content form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    height: 100%;
}

/* ===== ALERTS ===== */
.alert {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1rem;
    border-left: 5px solid;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border-left-color: #e74c3c;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border-left-color: #2ecc71;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: none;
    }
    
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .search-container {
        min-width: 100%;
        max-width: none;
    }
    
    .user-actions,
    .platform-actions,
    .credential-actions,
    .assignment-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        min-width: 100px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }
    
    .page-header {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card .number {
        font-size: 2rem;
    }
    
    .action-card {
        padding: 25px;
    }
    
    .modal-header,
    .modal-actions {
        padding: 20px;
    }
    
    .form-grid {
        padding: 20px;
    }
}

/* ===== ANIMATIONEN ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card,
.action-card,
.user-item,
.platform-item,
.credential-item,
.assignment-item {
    animation: fadeIn 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.action-card:nth-child(1) { animation-delay: 0.5s; }
.action-card:nth-child(2) { animation-delay: 0.6s; }

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== FOCUS STYLES ===== */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.btn:disabled,
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== BENUTZERZUWEISUNGEN ===== */
.user-assignment-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.assignment-hint {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

.user-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.user-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-checkbox:hover {
    background-color: #f8f9fa;
}

.user-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.user-checkbox span {
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
}

/* ===== ZUWEISUNGS-LISTE ===== */
.assignment-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.assignment-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.assignment-name {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.assignment-name strong {
    font-size: 1.1rem;
    color: #2c3e50;
}

.credential-badge {
    background: #17a2b8;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.assignment-notes {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-style: italic;
}

/* ===== RESPONSIVE ANPASSUNGEN FÜR ZUWEISUNGEN ===== */
@media (max-width: 768px) {
    .assignment-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .assignment-actions {
        justify-content: flex-start;
    }
    
    .user-checkboxes {
        max-height: 150px;
    }
}

/* ===== LOGIN STYLES ===== */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-header .subtitle {
    color: #7f8c8d;
    font-size: 1rem;
}

.btn-login {
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-header h2 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    color: #ecf0f1;
}

.sidebar-header .user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sidebar-header .user-info i {
    font-size: 2rem;
    color: #3498db;
}

.sidebar-header .user-info span {
    font-weight: 600;
    color: #ecf0f1;
}

.sidebar-header .user-info small {
    color: #bdc3c7;
    font-size: 0.8rem;
}

.sidebar-nav {
    padding: 20px 0;
}

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

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav li a:hover {
    background: rgba(255,255,255,0.1);
    color: #ecf0f1;
    border-left-color: #3498db;
}

.sidebar-nav li.active a {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-left-color: #3498db;
}

.sidebar-nav li a i {
    width: 20px;
    margin-right: 15px;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.logout-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #e74c3c;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(231, 76, 60, 0.1);
}

.logout-link:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.logout-link i {
    margin-right: 10px;
}

/* Responsive Design für Sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: #2c3e50;
        color: white;
        border: none;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
    }
}

/* ===== LOGS STYLES ===== */
.filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filters h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.logs-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logs-table th,
.logs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.logs-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

/* ===== LISTE STYLES ===== */
.users-list,
.platforms-list,
.credentials-list,
.recent-activity {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.users-list h3,
.platforms-list h3,
.credentials-list h3,
.recent-activity h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== PLATFORM SPECIFIC STYLES ===== */
.platform-description {
    display: block;
    margin-top: 5px;
    font-style: italic;
}

.credential-platform {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.credential-username {
    font-weight: 500;
    color: #34495e;
}

.credential-notes {
    display: block;
    margin-top: 5px;
    font-style: italic;
    color: #7f8c8d;
}

/* ===== SIDEBAR BENACHRICHTIGUNGEN ===== */
/* Sidebar-Benachrichtigungen - Kommunikation blinkt rot */
.has-notifications {
    animation: sidebarBlink 1.5s infinite !important;
    position: relative;
}

.has-notifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    animation: shimmer 2s infinite;
    pointer-events: none;
}

@keyframes sidebarBlink {
    0% { 
        background-color: rgba(255, 107, 107, 0.2);
        border-left: 4px solid #ff6b6b;
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
    }
    50% { 
        background-color: rgba(255, 107, 107, 0.4);
        border-left: 4px solid #ff5252;
        box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
    }
    100% { 
        background-color: rgba(255, 107, 107, 0.2);
        border-left: 4px solid #ff6b6b;
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.notification-badge {
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    color: white;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
    min-width: 18px;
    text-align: center;
    animation: badgePulse 1.2s infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    border: 2px solid white;
}

@keyframes badgePulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.6);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    }
}

/* Zusätzliche Hervorhebung für Kommunikations-Link */
.has-notifications a {
    color: #ff6b6b !important;
    font-weight: bold !important;
}

.has-notifications a i {
    animation: iconBounce 1s infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
