/* -----------------------------------------------------------------------------
   FILE: healthloggerprovider.css
   DESCRIPTION: Styles for HealthLoggerProvider plugin (9 events + level selector)
----------------------------------------------------------------------------- */

#healthpredictor-app {
    max-width: 480px;
    margin: 32px auto;
    background: #222;
    color: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 2px 24px rgba(0,0,0,0.18);
    padding: 26px 14px 20px 14px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.hp-app-title {
    text-align: center;
    margin-bottom: 23px;
    font-size: 1.7em;
    color: #fff !important;
}

.hp-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.hp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #393e46;
    border-radius: 1rem;
    padding: 14px 10px 8px 10px;
    width: 120px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    font-size: 1.05em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    min-height: 153px;
    position: relative;
}

.hp-item.active,
.hp-item:hover {
    background: #00adb5;
    color: #111;
    box-shadow: 0 4px 16px rgba(0,173,181,0.18);
}

.hp-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-label {
    margin-bottom: 7px;
    font-size: 1.07em;
    font-weight: 500;
    text-align: center;
}

.hp-prediction {
    margin-top: auto;
    font-size: 0.98em;
    color: #00adb5;
    text-align: center;
    min-height: 28px;
    width: 100%;
    font-weight: 600;
}

.hp-prediction.hp-alert {
    color: #fff !important;
    background: #e53935;
    border-radius: 0.6em;
    font-weight: 700;
    box-shadow: 0 0 8px 3px #e5393580;
}

.hp-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

#hp-tap-btn {
    font-size: 1.18em;
    padding: 16px 29px;
    border-radius: 1.2em;
    border: none;
    background: #00adb5;
    color: #111;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,173,181,0.07);
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
}

#hp-tap-btn:disabled {
    background: #444;
    color: #aaa;
    cursor: not-allowed;
}

#hp-level-select {
    font-size: 1em;
    padding: 8px 10px;
    border-radius: 0.6em;
    border: none;
    background: #393e46;
    color: #fff;
    cursor: pointer;
    display: none;
    margin-bottom: 10px;
}

#hp-note-input {
    width: 100%;
    min-height: 62px;
    padding: 10px 12px;
    border-radius: 0.9em;
    border: none;
    background: #393e46;
    color: #fff;
    resize: vertical;
    margin-top: -2px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-family: inherit;
}

#hp-advanced-btn {
    font-size: 1em;
    padding: 10px 16px;
    border-radius: 0.9em;
    border: none;
    background: #d32f2f;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

#hp-advanced-btn:hover {
    background: #b71c1c;
}

#hp-log-buttons {
    width: 100%;
}

#hp-log-buttons > button {
    font-size: 1em;
    padding: 12px 16px;
    border-radius: 0.9em;
    border: none;
    background: #393e46;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    margin-top: 5px;
    margin-right: 6px;
    transition: background 0.18s;
}

#hp-log-buttons > button:hover {
    background: #00adb5;
    color: #111;
}

.hp-label-editor {
    margin-top: 12px;
    background: #2d323a;
    border-radius: 1rem;
    padding: 12px;
}

.hp-label-editor-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.hp-label-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.hp-label-row label {
    color: #fff;
    font-size: 0.95em;
}

.hp-label-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 0.8em;
    border: none;
    background: #393e46;
    color: #fff;
    box-sizing: border-box;
}

.hp-label-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.hp-label-actions button {
    font-size: 1em;
    padding: 12px 16px;
    border-radius: 0.9em;
    border: none;
    background: #393e46;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s;
}

.hp-label-actions button:hover {
    background: #00adb5;
    color: #111;
}

#hp-status {
    text-align: center;
    margin-bottom: 12px;
    font-size: 1.06em;
    min-height: 24px;
}

#hp-log-table {
    margin-top: 15px;
    max-height: 210px;
    overflow-y: auto;
}

#hp-log-table table {
    width: 100%;
    border-collapse: collapse;
    background: #393e46;
    border-radius: 0.9em;
    overflow: hidden;
}

#hp-log-table th,
#hp-log-table td {
    padding: 7px 9px;
    text-align: center;
    vertical-align: top;
}

#hp-log-table th {
    background: #00adb5;
    color: #111;
}

#hp-log-table tr:nth-child(even) td {
    background: #333;
}
