/* public/style.css (Version 2) */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}
#app { width: 100%; max-width: 800px; }
h1 { text-align: center; }
.hidden { display: none !important; }

/* Vorlesungsauswahl */
#lecture-list { list-style: none; padding: 0; margin-bottom: 20px; }
#lecture-list li {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
}
#lecture-list li:hover { background-color: #e9ecef; }

/* Zähler-Ansicht */
#counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.counter-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.word { font-size: 1.2em; font-weight: bold; word-break: break-word; margin-bottom: 10px; }
.count-controls {
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.count { font-size: 2em; color: #007bff; font-weight: 500; }
.count-btn {
    font-size: 2em;
    font-weight: bold;
    color: #007bff;
    background: #e9ecef;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-bottom: 4px; /* Optische Korrektur */
}
.count-btn.minus { color: #dc3545; }
.count-btn:active { transform: scale(0.9); }

/* Input-Gruppen und Buttons */
.input-group { display: flex; gap: 10px; margin-bottom: 20px; }
input[type="text"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}
button {
    padding: 12px 20px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
#add-lecture-btn, #add-word-btn { background-color: #28a745; }
#back-btn { background-color: #6c757d; width: 100%; }

#statistics-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}
#statistics-container h2 {
    text-align: center;
    margin-bottom: 10px;
}
#statistics-container p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 20px;
}
/* Wrapper für das Diagramm, um die Größe zu beschränken */
#chart-wrapper {
    position: relative;
    max-width: 400px; /* Maximale Breite für das Diagramm */
    margin: 0 auto; /* Zentrieren */
}

/* Wrapper für das Diagramm, um die Größe zu beschränken */
#chart-wrapper {
    position: relative;
    max-width: 400px; /* Maximale Breite für das Diagramm */
    margin: 0 auto; /* Zentrieren */
}

/* NEU: Stile für das Zeitverlauf-Diagramm */
#temporal-chart-wrapper {
    position: relative;
    margin: 40px auto 0 auto; /* Etwas Abstand nach oben */
    max-width: 100%; /* Liniendiagramme dürfen breiter sein */
}

#statistics-container h3 {
    text-align: center;
    color: #555;
    font-weight: 500;
    margin-bottom: 15px;
}
