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

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

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
}

.header-right {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-save {
    background: #10b981;
    color: #fff;
}

.btn-save:hover {
    background: #059669;
}

.btn-view {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

/* STATS */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-card.green {
    border-color: #10b981;
}

.stat-card.orange {
    border-color: #f59e0b;
}

.stat-card.red {
    border-color: #ef4444;
}

.stat-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
}

.stat-card.green .stat-value {
    color: #10b981;
}

.stat-card.orange .stat-value {
    color: #f59e0b;
}

.stat-card.red .stat-value {
    color: #ef4444;
}

/* FILTER */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-bar select,
.filter-bar input {
    padding: 10px 15px;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.filter-bar input {
    flex: 1;
}

.filter-bar select:focus,
.filter-bar input:focus {
    outline: none;
    border-color: #667eea;
}

/* TABELLE */
.table-container {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #2a2a2a;
}

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

thead {
    background: #2a2a2a;
}

th {
    padding: 15px;
    text-align: left;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 2px solid #3a3a3a;
}

tbody tr {
    border-bottom: 1px solid #2a2a2a;
    transition: all 0.2s;
}

tbody tr:hover {
    background: #222;
}

tbody tr.hidden {
    display: none;
}

td {
    padding: 12px 15px;
}

td:first-child {
    font-weight: 700;
    color: #667eea;
}

/* STATUS SELECT */
select.status-select {
    padding: 6px 10px;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

select.status-select.verfügbar {
    border-color: #10b981;
    color: #10b981;
}

select.status-select.belegt {
    border-color: #f59e0b;
    color: #f59e0b;
}

select.status-select.wartung {
    border-color: #ef4444;
    color: #ef4444;
}

/* INPUTS */
input.laptop-input,
select.laptop-select {
    padding: 6px 10px;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    width: 100%;
}

input.laptop-input:focus,
select.laptop-select:focus {
    outline: none;
    border-color: #667eea;
}

input[type="date"].laptop-input {
    color-scheme: dark;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2a2a2a;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px;
    }
}

/* ADD BUTTON */
.btn-add {
    background: #667eea;
    color: #fff;
}

.btn-add:hover {
    background: #5568d3;
}

/* DELETE BUTTON */
.btn-delete {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
    opacity: 0.5;
}

.btn-delete:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* NEW ROW ANIMATION */
@keyframes highlight-new {
    0%, 100% { background: transparent; }
    50% { background: rgba(102, 126, 234, 0.2); }
}

/* BEZEICHNUNG INPUT */
.bezeichnung-input {
    font-weight: 700;
    color: #667eea;
    width: 120px;
}

/* AUTO-FILL ANIMATION */
@keyframes autofill-flash {
    0%, 100% {
        background: transparent;
    }
    25%, 75% {
        background: rgba(16, 185, 129, 0.2);
    }
    50% {
        background: rgba(16, 185, 129, 0.3);
    }
}
