﻿/* Grundlegendes Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eaf2f8;
    color: #2c3e50;
    line-height: 1.5;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
    padding: 2rem;
}

.title {
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.8rem;
    text-align: center;
    color: #1a2944;
}

.water-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
    color: #34495e;
}

.form-select,
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1.8px solid #bdc3c7;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    .form-select:focus,
    .form-input:focus {
        border-color: #2980b9;
        outline: none;
        box-shadow: 0 0 6px rgba(41, 128, 185, 0.4);
    }

.form-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unit {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-left: auto;
    white-space: nowrap;
}

.btn-submit {
    background-color: #2980b9;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.btn-History {
    background-color: #bfbfbf;
    color: white;
    font-weight: 600;
    padding: 0.50rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

    .btn-submit:hover {
        background-color: #1a5e7a;
    }

.actions-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1.5px solid #ecf0f1;
}

.actions-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: #22313f;
    margin-bottom: 0.75rem;
    text-align: center;
}

.actions-content {
    font-size: 1rem;
    line-height: 1.4;
    color: #34495e;
    min-height: 2.5rem;
    padding: 0 1rem;
}

.history-container {
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
    padding: 2rem;
}

/* Responsive Anpassungen für kleinere Geräte */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    .form-group {
        align-items: stretch;
        margin-bottom: 10px;
    }

    .unit {
        margin-left: 0;
        margin-top: 0.3rem;
        text-align: right;
    }
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.1);
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

    .styled-table thead tr {
        background-color: #2980b9;
        color: #ffffff;
        text-align: left;
        font-weight: 700;
        font-size: 1rem;
    }

    .styled-table th,
    .styled-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #dcdcdc;
    }

    .styled-table tbody tr {
        background-color: #f9f9f9;
        transition: background-color 0.3s ease;
    }

        .styled-table tbody tr:nth-of-type(even) {
            background-color: #eaeff5;
        }

        .styled-table tbody tr:hover {
            background-color: #d0e1ff;
            cursor: default;
        }

.status-icon {
    font-weight: bold;
    margin-left: 0.3rem;
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

.burger-menu {
    position: relative;
    user-select: none;
}

.burger-icon {
    font-size: 1.8rem;
    cursor: pointer;
    color: #34495e;
    padding: 0.2rem 0.5rem;
    border: 1.8px solid #bdc3c7;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

    .burger-icon:hover {
        background-color: #2980b9;
        color: white;
    }

.burger-dropdown {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 0.3rem;
    background-color: white;
    border: 1.8px solid #bdc3c7;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.1);
    min-width: 140px;
    z-index: 1000;
}

.burger-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #34495e;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

    .burger-item:last-child {
        border-bottom: none;
    }

    .burger-item:hover {
        background-color: #2980b9;
        color: white;
    }

.burger-logout-form {
    margin: 0;
}

.logout-button {
    all: unset;
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    color: #34495e;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

    .logout-button:hover {
        background-color: #c0392b;
        color: white;
        border-bottom: none;
    }



