:root {
    --kwanzaa-red: #b70d0d;
    --kwanzaa-black: #111111;
    --kwanzaa-green: #006400;
    --kwanzaa-yellow: #ffd700;
    --text-light: #ffffff;
    --bg-light: #f4f4f4;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--kwanzaa-black);
    color: var(--kwanzaa-black);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

#app-container {
    background-color: var(--bg-light);
    width: 100%;
    max-width: 480px; /* Mobile app feel on desktop */
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

header {
    background-color: var(--kwanzaa-red);
    color: var(--text-light);
    padding: 20px;
    text-align: center;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

#days-until {
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

#settings-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

.principles-nav {
    background-color: var(--kwanzaa-red);
    padding: 10px 20px 20px;
    color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 10px;
}

.principles-nav h2 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.nav-controls {
    display: flex;
    gap: 10px;
}

.nav-controls button {
    flex: 1;
    padding: 8px;
    border: 1px solid white;
    background: transparent;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.nav-controls button.active {
    background: white;
    color: var(--kwanzaa-red);
    font-weight: bold;
}

#main-content {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}

.principle-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 5px solid var(--kwanzaa-green);
    cursor: pointer;
    transition: transform 0.1s;
}

.principle-card:active {
    transform: scale(0.98);
}

.principle-card:nth-child(odd) {
    border-left-color: var(--kwanzaa-red);
}

.principle-card h3 {
    margin: 0 0 5px 0;
    color: var(--kwanzaa-black);
}

.principle-card p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: flex-end; /* Slide up from bottom */
}

.modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 480px;
    height: 85vh;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    position: relative;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.close-principle, .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.reflection-question {
    background-color: var(--kwanzaa-yellow);
    padding: 15px;
    border-radius: 8px;
    font-style: italic;
    margin: 15px 0;
    color: #333;
}

.reflection-area textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    margin-bottom: 10px;
}

#post-btn {
    background-color: var(--kwanzaa-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    width: 100%;
    font-size: 1rem;
}

.post-item {
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.post-meta {
    font-size: 0.75rem;
    color: #888;
    display: flex;
    justify-content: space-between;
}

.delete-btn {
    color: red;
    cursor: pointer;
    font-weight: bold;
}

