body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.app-container {
    width: 375px;
    height: 812px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Login Screen */
#login-screen {
    text-align: center;
    padding-top: 150px;
}
#login-screen h1 {
    font-size: 48px;
    color: #007bff;
}

/* Main App */
#main-app.hidden, #login-screen.hidden {
    display: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

header h2 {
    margin: 0;
    font-size: 24px;
}

.feature-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.feature-card h3 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* SOS Button */
.sos-card {
    text-align: center;
}
#sos-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    font-size: 32px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    transition: transform 0.2s, background-color 0.2s;
}
#sos-btn:active {
    transform: scale(0.95);
    background-color: #c82333;
}
.sos-card p {
    color: #666;
    font-size: 12px;
    margin-top: 10px;
}

/* General UI Elements */
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}
button:hover {
    background-color: #0056b3;
}
#logout-btn {
    background-color: #6c757d;
}

input[type="text"], textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
}
textarea {
    resize: vertical;
    min-height: 60px;
}

.input-group {
    display: flex;
}
.input-group input {
    flex-grow: 1;
    margin-right: 10px;
    margin-bottom: 0;
}

#contact-list {
    list-style-type: none;
    padding: 0;
}
#contact-list li {
    background-color: #e9ecef;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
}

#status-log {
    height: 100px;
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
    color: #495057;
}
#status-log p {
    margin: 0 0 5px 0;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
}

.hidden {
  display: none;
}