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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ecf0f1;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: #34495e;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    color: #ecf0f1;
}

.app-header {
    background: #34495e;
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    color: #ecf0f1;
}

.app-header h1 {
    color: #ecf0f1;
    font-size: 1.8rem;
    margin: 0;
}

nav {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #bdc3c7;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: #2c3e50;
    color: #ecf0f1;
}

.nav-link.active {
    background: #667eea;
    color: white;
}

h1 {
    color: #ecf0f1;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

h2 {
    color: #ecf0f1;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #bdc3c7;
    margin-bottom: 30px;
    font-style: italic;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ecf0f1;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 16px;
    background: #2c3e50;
    border: 2px solid #4a5f7a;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    font-family: inherit;
    color: #ecf0f1;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.help-text {
    display: block;
    margin-top: 5px;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-bottom: 0;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.login-form,
.entry-form {
    max-width: 400px;
    margin: 0 auto;
}

.entry-form {
    margin-top: 0;
}

.entries-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.entry {
    background: #34495e;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #ecf0f1;
}

.entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.entry.remembered {
    opacity: 0.7;
    border-left-color: #95a5a6;
    background: #2c3e50;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-date {
    font-weight: 700;
    color: #ecf0f1;
    font-size: 0.8rem;
}

.remembered-badge {
    background: #95a5a6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.entry-content {
    color: #bdc3c7;
    line-height: 1.75;
}

.empty-state {
    text-align: center;
    padding: 60px 30px;
    background: rgba(52, 73, 94, 0.95);
    border-radius: 12px;
    color: #bdc3c7;
}

.empty-state a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.empty-state a:hover {
    text-decoration: underline;
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.success-message {
    background: #27ae60;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .card {
        padding: 20px;
    }

    .app-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .app-header h1 {
        font-size: 1.5rem;
    }

    nav {
        justify-content: center;
    }

    h1 {
        font-size: 1.8rem;
    }

    .entry {
        padding: 20px;
    }

    .card {
        padding: 20px;
    }

    .entry-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* PWA specific styles */
@media (display-mode: standalone) {
    body {
        padding-top: 10px;
    }
}

