/* ================================
   Fonts & Reset
================================ */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: #f1f5f9;
    color: #334155;
}

/* ================================
   Header
================================ */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    background-color: #0ea5e9;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 40px;
    margin-right: 20px;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 500;
    transition: 0.3s;
}
.header-nav a:hover { text-decoration: underline; }

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.greeting { font-size: 14px; }
.logout-btn {
    padding: 6px 12px;
    background-color: #ef4444;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}
.logout-btn:hover { background-color: #b91c1c; }

/* ================================
   Login & Registrierung
================================ */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
}

.login-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo { height: 60px; margin-bottom: 20px; }
.login-card h1 { font-size: 22px; margin-bottom: 10px; }
.login-card .subtitle { color: #64748b; margin-bottom: 20px; }

/* Input Group */
.input-group {
    position: relative;
    margin-bottom: 20px;
}
.input-group input, .input-group select {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
}
.input-group input:focus, .input-group select:focus {
    border-color: #0ea5e9;
}
.input-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: 0.3s;
}
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #0ea5e9;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.3s;
}

/* + Produkt Button */
.addBtn {
    margin: 18px;
    padding: 10px 25px;
    font-size: 18px;
    background-color: #007bff;
    color: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.addBtn:hover { background-color: #0056b3; }

/* Bearbeiten / Löschen Buttons nur Icon */
.editBtn, .deleteBtn {
    width: 35px;
    height: 35px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    margin-right: 5px;
    cursor: pointer;
}

/* Edit Button */
.editBtn {
    background-color: #ffc107;
    color: #fff;
}
.editBtn:hover { background-color: #e0a800; }

/* Delete Button */
.deleteBtn {
    background-color: #dc3545;
    color: #fff;
}
.deleteBtn:hover { background-color: #bd2130; }

/* ================================
   Tabellen (Admin & Produkte)
================================ */
table {
    width: calc(100% - 40px);
    margin: 20px auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

table th, table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
table th {
    background-color: #0ea5e9;
    color: #fff;
    font-weight: 500;
}

/* ================================
   Modal / Popup
================================ */
.modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background-color: rgba(0,0,0,0.5); z-index: 2000; }
.modal-content { background:#fff; margin: 100px auto; padding: 30px; border-radius: 12px; width: 90%; max-width: 500px; }
.modal-header h5 { margin-bottom: 20px; }
.modal-body input, .modal-body select { width: 100%; margin-bottom: 15px; padding: 10px; border-radius: 8px; border:1px solid #cbd5e1; }
.modal-footer { text-align: right; }
.modal-footer button { padding: 10px 15px; border:none; border-radius:8px; cursor:pointer; margin-left:5px; }
.modal-footer button:first-child { background-color:#0ea5e9; color:#fff; }
.modal-footer button:first-child:hover { background-color:#0284c7; }
.modal-footer button:last-child { background-color:#94a3b8; color:#fff; }
.modal-footer button:last-child:hover { background-color:#64748b; }

/* ================================
   Action Buttons (Drucken / PDF / Excel)
================================ */
.actionBtn {
    padding: 8px 16px;
    margin-left: 10px;
    font-size: 14px;
    background-color: #0ea5e9;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}
.actionBtn:hover { background-color: #0284c7; }

/* ================================
   Suchfeld
================================ */
#searchInput {
    padding: 8px 12px;
    border-radius: 6px;
    border:1px solid #cbd5e1;
    width: 250px;
}

/* Container für Suchfeld + Buttons */
.search-export-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 20px 20px 20px;
}

/* ================================
   Responsive
================================ */
@media (max-width: 768px){
    table { width: calc(100% - 20px); }
    .search-export-container { flex-direction: column; align-items: flex-start; gap: 10px; }
}