/* Interactive Narrative Engine - Clean Modern Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* App Container */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 1rem;
    min-height: 100vh;
}

/* Header */
.app-header {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #555;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

/* Progress Sidebar */
.progress-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.progress-sidebar h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.progress-section h4 {
    color: #27ae60;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.progress-list li {
    padding: 0.25rem 0;
    color: #555;
    font-size: 0.85rem;
}

/* Home Page Styles */
.home-container {
    max-width: 100%;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
}

.demo-section {
    margin-bottom: 3rem;
}

.demo-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.story-preview {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.placeholder-image {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    color: white;
}

.placeholder-image span {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.interface-preview {
    text-align: center;
    margin-bottom: 3rem;
}

.interface-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.interface-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.interface-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.player-card {
    border-left: 4px solid #667eea;
}

.admin-card {
    border-left: 4px solid #764ba2;
}

.interface-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.player-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.admin-btn {
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
}

.interface-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

/* Footer */
.app-footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Player Interface Styles */
.player-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 100%;
}

.story-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 2rem;
}

.story-header h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.story-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.progress-text {
    color: #666;
    font-size: 0.9rem;
}

.story-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.narrative-section {
    margin-bottom: 2rem;
}

.narrative-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    text-align: justify;
}

.dialogue-section {
    margin-bottom: 2rem;
}

.character-dialogue {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.character-avatar {
    flex-shrink: 0;
}

.character-avatar span {
    font-size: 2rem;
    display: block;
}

.character-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.dialogue-text {
    flex: 1;
    font-style: italic;
    color: #444;
}

/* Fourth Wall Dialogue */
.fourth-wall-dialogue {
    margin-top: 1rem;
}

.fourth-wall {
    background: rgba(118, 75, 162, 0.05);
    border-left-color: #764ba2;
}

.fourth-wall-name {
    color: #764ba2;
}

.fourth-wall-text {
    color: #666;
    font-style: normal;
}

/* Emotional State */
.emotional-state {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.emotional-state h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.emotion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.emotion-tag {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tension-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tension-meter {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.tension-fill {
    height: 100%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transition: width 0.3s ease;
}

/* Choices */
.choices-section {
    margin-bottom: 2rem;
}

.choices-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.choices-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.choice-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.choice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* Story Controls */
.story-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.control-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Story Sidebar */
.story-sidebar {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.story-sidebar h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-item:last-child {
    border-bottom: none;
}

.emotional-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.timeline-emotion {
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    border-radius: 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.timeline-emotion.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.fourth-wall-indicator {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(118, 75, 162, 0.1);
    border-radius: 8px;
    border-left: 4px solid #764ba2;
}

.fourth-wall-indicator h4 {
    color: #764ba2;
    margin-bottom: 0.5rem;
}

.fourth-wall-indicator p {
    color: #666;
    font-size: 0.9rem;
}

/* Admin Interface Styles */
.admin-container {
    max-width: 100%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h2 {
    color: #2c3e50;
}

.admin-nav {
    margin-bottom: 2rem;
}

.admin-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-link {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.admin-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.content-header h3 {
    color: #2c3e50;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h3 {
    color: #2c3e50;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-help {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Character Management Styles */
.character-list {
    display: grid;
    gap: 1rem;
}

.character-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.character-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.character-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.character-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2rem;
}

.character-actions {
    display: flex;
    gap: 0.5rem;
}

.character-details p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.character-details small {
    color: #888;
    font-size: 0.8rem;
}

/* Trait Input Management */
.trait-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trait-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.trait-row input {
    flex: 1;
    margin: 0;
}

.trait-row button {
    padding: 0.5rem;
    min-width: 30px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trait-row button:hover {
    background: #dc3545;
    color: white;
}

/* Button Styles */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #666;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

.error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.notification-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.notification-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.notification-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.notification-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal Enhancements */
.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Plot Arc Management Styles */
.plot-list {
    display: grid;
    gap: 1rem;
}

.plot-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.plot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.plot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.plot-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2rem;
}

.plot-structure {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.plot-details p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.plot-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Emotion Management Styles */
.emotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.emotion-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.emotion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.emotion-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.emotion-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.emotion-intensity {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.emotion-type {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.emotion-type.positive {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.emotion-type.negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.emotion-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.emotion-meta {
    font-size: 0.8rem;
    color: #888;
}

.emotion-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Theme Management Styles */
.theme-list {
    display: grid;
    gap: 1rem;
}

.theme-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.theme-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.theme-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.theme-motifs,
.theme-emotions {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.theme-motifs strong,
.theme-emotions strong {
    color: #2c3e50;
}

.theme-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Recent Activity */
.recent-activity {
    margin-top: 2rem;
}

.recent-activity h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.activity-list {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 1rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    color: #666;
    font-size: 0.85rem;
}

.activity-desc {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
}

.error-message {
    background: #fee;
    color: #c0392b;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    margin-bottom: 1rem;
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
}

.login-form {
    margin-bottom: 2rem;
}

.login-info {
    background: rgba(102, 126, 234, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.login-info h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.login-info ul {
    list-style: none;
    padding: 0;
}

.login-info li {
    padding: 0.25rem 0;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .progress-sidebar {
        order: -1;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .story-preview {
        grid-template-columns: 1fr;
    }

    .interface-cards {
        grid-template-columns: 1fr;
    }

    .player-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .story-sidebar {
        order: -1;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .content-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .form-actions {
        flex-direction: column;
    }
}
