/* Moved all styles from index.html here */
body {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #1a1a1a;
    color: #fff;
}

.container {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.character-card {
    background: #333;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.character-card.infected {
    border-color: #ff4444;
}

.character-card.healthy {
    border-color: #44ff44;
}

.event-log {
    background: #333;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}

.death-log {
    background: #441111;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #ff0000;
}

.death-log strong {
    color: #ff4444;
}

.natural-events {
    background: #114444;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #00ffff;
}

.relationships {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.relationship-tag {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
}

.stat-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.stat-item {
    background: #3a3a3a;
    padding: 10px;
    border-radius: 5px;
}

.stat-item.immune {
    opacity: 0.5;
    pointer-events: none;
}

.stat-item.immune .stat-fill {
    background-color: #666 !important;
}

button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

button:hover {
    background: #45a049;
}

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

input {
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #444;
    background: #333;
    color: white;
}

.stat-bar {
    background: #444;
    height: 20px;
    border-radius: 10px;
    margin: 5px 0;
    overflow: hidden;
    border: 1px solid #555;
}

.stat-fill {
    height: 100%;
    transition: width 0.3s ease;
    min-width: 1%;
}

.stat-fill.infection-level {
    background: #ff4444;
}

.stat-fill.aggression {
    background: #ff8844;
}

.event-item {
    background: #3a3a3a;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    line-height: 1.5;
}

.event-item strong {
    color: #4CAF50;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.stat-value {
    font-weight: bold;
}

.dialogue {
    color: #88ff88;
    font-style: italic;
}

.last-words {
    color: #ff8888;
    margin-left: 20px;
    font-size: 0.9em;
    margin-top: 5px;
}

.death-details {
    margin-left: 20px;
    color: #ff8888;
    font-size: 0.9em;
    line-height: 1.4;
}

.character-creation {
    background: #333;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.character-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-slider {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-slider input[type="range"] {
    width: 100%;
    background: #444;
}

.custom-characters-list {
    margin-top: 20px;
}

.custom-character-item {
    background: #444;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-btn {
    background: #4488ff;
    padding: 5px 10px;
    font-size: 0.8em;
}

.edit-btn:hover {
    background: #3366cc;
}

.remove-btn {
    background: #ff4444;
    padding: 5px 10px;
    font-size: 0.8em;
}

.remove-btn:hover {
    background: #cc3333;
}

.character-name {
    font-weight: bold;
}

.character-healthy {
    color: #44ff44;
}

.character-infected {
    color: #ff88ff;
}

.character-immune {
    color: #ffdd44;
}

.character-dead {
    color: #4488ff;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.save-cast-form {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.saved-cast-item {
    background: #333;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.cast-info {
    flex-grow: 1;
}

.cast-details {
    font-size: 0.9em;
    color: #aaa;
    display: flex;
    gap: 15px;
    margin: 5px 0;
}

.cast-characters {
    font-size: 0.9em;
    color: #88ff88;
    margin-top: 5px;
}

.cast-actions {
    display: flex;
    gap: 10px;
}

.delete-btn {
    background: #ff4444;
}

.close-btn {
    margin-top: 20px;
    width: 100%;
}

.no-casts {
    text-align: center;
    color: #888;
    padding: 20px;
}