:root {
    --primary-color: #14725f;
    --bg-color: #f4f7f6;
    --error-color: #dc3545;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding-bottom: env(safe-area-inset-bottom);
}

.container {
    background: white;
    width: 100%;
    min-height: 100vh;
}

@media (min-width: 600px) {
    body {
        padding: 40px 20px;
    }
    .container {
        width: 100%;
        max-width: 550px;
        min-height: auto;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        overflow: hidden;
        margin: auto;
    }
}

.header-img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 5px solid var(--primary-color);
    background-color: white;
    padding: 10px 0;
}

.content-padding {
    padding: 25px 20px;
}

h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.intro-text {
    background-color: #f1f8f6;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.intro-text strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 3px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f9fdfc;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e0eeeb;
}

@media (min-width: 400px) {
    .row {
        flex-direction: row;
        align-items: center;
    }
    .row input {
        flex: 1;
    }
}

button {
    cursor: pointer;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    transition: opacity 0.2s;
}

#addBtn {
    background: white;
    color: var(--primary-color);
    border: 2px dashed var(--primary-color);
    padding: 12px;
    width: 100%;
    margin-bottom: 15px;
}

#submitBtn {
    background: var(--primary-color);
    color: white;
    padding: 14px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(20, 114, 95, 0.2);
}

.row button {
    width: 100%;
    height: auto;
    padding: 10px;
}

@media (min-width: 480px) {
    .row button {
        width: auto;
        height: 44px;
    }
}

#loginModal, #statusModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    text-align: center;
}

@media (max-width: 360px) {
    .modal-content {
        padding: 16px;
    }
}

@media (max-width: 360px) {
    h2 {
        font-size: 1.3rem;
    }

    .intro-text {
        font-size: 0.85rem;
        padding: 12px;
    }

    input {
        padding: 11px;
        font-size: 15px;
    }

    button {
        font-size: 15px;
    }
}