* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Cover Page Styles */
.cover-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f0f8ff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cover-container {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-container input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
    background: white;
}

.cover-container input[type="password"]:focus {
    outline: none;
    border-color: #d3d3d3;
}

.cover-container .button {
    background: #f0f8ff;
    color: #333;
    border: 1px solid #d3d3d3;
}

.cover-container .button:hover {
    background: #e0f0ff;
}

.main-app-hidden {
    display: none;
}

body.cover-page-active {
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.button:hover {
    background: #357abd;
}

.button.secondary {
    background: #6c757d;
    margin-top: 10px;
}

.button.secondary:hover {
    background: #5a6268;
}

.button.admin-link {
    background: transparent;
    color: #999;
    border: 1px solid #ddd;
    font-size: 14px;
    padding: 8px 16px;
    margin-top: 20px;
}

.button.admin-link:hover {
    background: #f8f9fa;
    color: #666;
    border-color: #ccc;
}

.admin-section {
    display: none;
}

.message-list {
    margin-top: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.message-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #4a90e2;
}

.message-text {
    color: #333;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-time {
    color: #888;
    font-size: 12px;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.delete-btn:hover {
    background: #c82333;
}

.login-form {
    display: none;
}

input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
}

input[type="password"]:focus {
    outline: none;
    border-color: #4a90e2;
}

.success-msg {
    color: #28a745;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.error-msg {
    color: #dc3545;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.admin-footer {
  position: absolute;
  bottom: 0;
  right: 0;
  text-align: right;
  color: grey;
  font-size: 12px;
  padding: 8px;
}

.admin-footer .admin-email {
  margin-top: 4px; /* adds a small gap between lines */
}
