
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom right, #0b2e13, #0f3d1e);
    color: #e7f6ec;
    line-height: 1.6;
}


.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

.top-nav a {
    color: #e0e1dd;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.top-nav a:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}


header {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
}

header h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

header h1 img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e0e1dd;
}


main {
    padding: 2rem;
}


.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}


ul, ol {
    padding-left: 1.2rem;
}


.mood-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.mood-list img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #e0e1dd;
}

.mood-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.mood-actions button {
    padding: 0.6rem 1rem;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.2s ease;
}

.mood-actions button:active {
    transform: scale(0.98);
}

.mood-list img.highlight {
    outline: 4px solid #22c55e;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.65);
}


form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 400px;
    margin: 1rem auto;
    padding: 1.2rem;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 10px;
}

form input, form textarea {
    padding: 0.6rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

form button {
    padding: 0.7rem;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #16a34a;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

table th, table td {
    padding: 0.8rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

table th {
    background: #166534;
    color: #e7f6ec;
}

table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}


footer {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    margin-top: 2rem;
}

.error {
    color: #ff6b6b;
    font-size: 0.9rem;
}

#formFeedback {
    margin-top: 1rem;
    font-weight: bold;
}
#formFeedback.success {
    color: #4caf50;
}
#formFeedback.error {
    color: #ff6b6b;
}
