/* Generell stil */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    margin: 0;
    min-height: 100vh;
}

.page-title {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    margin: 15px auto 15px auto;
    font-weight: normal;
    max-width: 90%;
}

/* Styling for lenker i hovedoverskriften (f.eks "Les mer") */
.page-title a {
    color: #666;
    text-decoration: underline;
    text-decoration: underline;
    font-size: 0.75em; /* Gjør teksten 25% mindre enn resten av overskriften */
}
.page-title a:visited {
    color: #999; /* Lysere grå når den er klikket på */
}
.page-title a:hover {
    color: #333; /* Litt mørkere når musen holdes over */
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.logo { max-width: 150px; margin-bottom: 1rem; display: block; margin-left: auto; margin-right: auto; }
h1, h2, h3 { color: #333; }
h1.success-title { color: #4CAF50; margin-bottom: 0.5rem; }

/* Skjema og inputs */
.mood-scale { display: flex; justify-content: space-between; margin: 1.5rem 0; }
.mood-option { cursor: pointer; font-size: 2rem; transition: transform 0.2s; }
.mood-option:hover, .mood-option.selected { transform: scale(1.3); }

textarea {
    width: 100%; height: 100px; margin-bottom: 1rem; padding: 0.5rem;
    border: 1px solid #ccc; border-radius: 5px; resize: none; box-sizing: border-box;
}

.input-group {
    display: flex; gap: 10px; margin: 1rem 0;
}
input[type="date"], input[type="time"] {
    padding: 10px; font-size: 1.1rem; width: 100%; box-sizing: border-box;
}

/* Dashbord statistikk */
.badge { max-width: 120px; margin: 1.5rem 0; }
.stats { font-size: 1.2rem; margin-bottom: 0.5rem; }
.time-count { font-size: 2.2rem; font-weight: bold; color: #333; margin: 1rem 0; line-height: 1.2; }
#dashboard, #setup-date { display: none; }

/* Knapper */
.btn {
    display: block; border: none; padding: 12px; font-size: 1.1rem; border-radius: 5px;
    cursor: pointer; width: 100%; margin-top: 10px; margin-bottom: 5px; font-weight: bold;
    box-sizing: border-box; text-decoration: none; text-align: center;
}
.btn-green { background-color: #4CAF50; color: white; }
.btn-green:hover { background-color: #45a049; }
.btn-red { background-color: #f44336; color: white; margin-top: 30px; }
.btn-red:hover { background-color: #d32f2f; }
.btn-gray { background-color: #ddd; color: #333; margin-top: 15px;}
.btn-gray:hover { background-color: #ccc; }

.settings-desc { font-size: 0.85rem; color: #666; margin-top: -3px; margin-bottom: 20px; }

/* Motivasjonsliste */
.tips-list { text-align: left; margin-bottom: 2rem; line-height: 1.6; padding-left: 20px; }
.tips-list li { margin-bottom: 12px; }
.tips-list a { color: #4CAF50; text-decoration: none; font-weight: bold; }
.tips-list a:hover { text-decoration: underline; }

/* Historikk og paginering */
#history-wrapper { margin-top: 30px; }
#history-section {
    margin-top: 15px; text-align: left; background: #f9f9f9;
    padding: 15px; border-radius: 5px; border: 1px solid #ddd;
}
.history-item { border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 10px; }
.history-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.history-date { font-size: 0.8rem; color: #666; margin-bottom: 5px; }
.history-content { font-size: 1rem; }

.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.history-star { font-size: 1.5rem; cursor: pointer; user-select: none; transition: transform 0.2s; }
.history-star:hover { transform: scale(1.2); }
.history-star.active { color: #FFD700; }
.history-star.inactive { color: #ccc; }

#pagination-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
#pagination-controls button { width: 45%; padding: 8px; margin: 0; font-size: 0.9rem; }
#pagination-controls button:disabled { background-color: #eee; color: #aaa; cursor: not-allowed; }

/* Notatfelt på Min side */
.quick-note-container {
    margin: 20px 0; padding: 15px; background: #f9f9f9; border-radius: 5px; border: 1px solid #ddd; text-align: left;
}
.quick-note-container h3 { margin-top: 0; margin-bottom: 10px; font-size: 1.1rem; color: #333; }

/* Spesifikk styling for om-siden og kontaktskjema */
.om-container { max-width: 600px; flex-grow: 1; }
.encouragement { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #eee; text-align: center; font-style: italic; color: #555; }
.contact-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #eee; text-align: left; }
.contact-section h2 { text-align: center; margin-top: 0; }
.contact-section p { text-align: center; margin-bottom: 1.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { font-weight: bold; font-size: 0.9rem; color: #555; }
.contact-form input[type="text"], .contact-form textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; font-family: inherit; box-sizing: border-box; }
.contact-form button { background-color: #4CAF50; color: white; border: none; padding: 12px 20px; font-size: 1.1rem; border-radius: 5px; cursor: pointer; font-weight: bold; transition: background-color 0.2s; }
.contact-form button:hover:not(:disabled) { background-color: #45a049; }
.contact-form button:disabled { background-color: #ccc; cursor: not-allowed; }
.hp { display: none !important; }
#form-status { display: none; padding: 15px; margin-bottom: 1rem; border-radius: 5px; text-align: center; font-weight: bold; }
.status-success { background-color: #e8f5e9; color: #4CAF50; border: 1px solid #4CAF50; }
.status-error { background-color: #ffebee; color: #f44336; border: 1px solid #f44336; }

/* Advarselsboks */
.warning-box { background-color: #fff3f3; border-left: 5px solid #f44336; padding: 15px; margin: 20px 0; color: #333; text-align: left; line-height: 1.5; border-radius: 3px; }

/* Footer */
.footer { margin-top: 2rem; text-align: center; font-size: 0.9rem; width: 100%; }
.footer a { color: #666; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #333; }
