body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5vh;
}

#app {
    width: 95%;
    max-width: 800px;
    background-color: #1e1e1e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

h1 {
    color: #4CAF50; /* Primary accent color */
    margin: 0;
    font-size: 2.5em;
}

p {
    color: #aaaaaa;
}

/* Phase containers */
.phase {
    transition: opacity 0.5s ease;
}

.hidden {
    display: none;
    opacity: 0;
}

.active {
    display: block;
    opacity: 1;
}

/* Forms and Inputs */
input[type="text"], textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #333;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    font-size: 1em;
    box-sizing: border-box;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    min-height: 44px; /* Touch friendly */
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* Character Profile Display */
.character-card {
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    background-color: #242424;
    margin-bottom: 20px;
}

.character-card h3 {
    color: #FFC107; /* Secondary accent color */
    margin-top: 0;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}

.mission-details {
    background-color: #3a1e1e;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #E91E63;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 8px solid #333;
    border-top: 8px solid #4CAF50;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-text {
    font-size: 1.2em;
    color: white;
}