/* Future Hooman: Outbreak at the Clinic - Neumorphic Styles */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'SF Pro Display', sans-serif;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f0f5 50%, #fef6f8 100%);
    color: #4a5568;
    min-height: 100vh;
    line-height: 1.6;
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

.page.active {
    display: block;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container.wide {
    max-width: 1400px;
}

/* Typography */
.title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: #9b6a9e;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -2px -2px 4px rgba(155, 106, 158, 0.1);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: #6b8caf;
    font-weight: 500;
}

.description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #7a8b9a;
    font-weight: 400;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #9b6a9e;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #6b8caf;
    font-weight: 600;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #8eacc3;
    font-weight: 600;
}

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
}

.btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 250px;
    box-shadow: 8px 8px 16px rgba(163, 177, 198, 0.4), 
                -8px -8px 16px rgba(255, 255, 255, 0.9);
}

.btn:hover {
    box-shadow: 6px 6px 12px rgba(163, 177, 198, 0.5), 
                -6px -6px 12px rgba(255, 255, 255, 1);
}

.btn:active {
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.4), 
                inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.btn-primary {
    background: linear-gradient(145deg, #eac4d5, #f5d9e6);
    color: #9b6a9e;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #f5d9e6, #eac4d5);
    color: #8a5a8d;
}

.btn-secondary {
    background: linear-gradient(145deg, #cfe2f3, #dceefb);
    color: #6b8caf;
}

.btn-secondary:hover {
    background: linear-gradient(145deg, #dceefb, #cfe2f3);
    color: #5a7b9e;
}

.btn-info {
    background: linear-gradient(145deg, #d4f1f4, #e0f7fa);
    color: #4a90a4;
}

.btn-info:hover {
    background: linear-gradient(145deg, #e0f7fa, #d4f1f4);
    color: #3a7d91;
}

.btn-warning {
    background: linear-gradient(145deg, #ffe8d6, #fff0e6);
    color: #d97f4b;
}

.btn-danger {
    background: linear-gradient(145deg, #fdd5d7, #ffe2e4);
    color: #c85a5f;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    min-width: auto;
    margin-left: 10px;
    border-radius: 15px;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #6b8caf;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    background: linear-gradient(145deg, #e8f4f8, #f5f5fa);
    color: #4a5568;
    transition: all 0.3s ease;
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.3), 
                inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
    outline: none;
    box-shadow: inset 2px 2px 4px rgba(163, 177, 198, 0.2), 
                inset -2px -2px 4px rgba(255, 255, 255, 1),
                0 0 0 3px rgba(107, 140, 175, 0.1);
}

.form-group input[readonly] {
    background: linear-gradient(145deg, #f0f0f5, #fafafe);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Rules Page */
.rules-content {
    background: linear-gradient(145deg, #f5f5fa, #fefeff);
    padding: 30px;
    border-radius: 25px;
    margin-bottom: 30px;
    box-shadow: 10px 10px 20px rgba(163, 177, 198, 0.3), 
                -10px -10px 20px rgba(255, 255, 255, 0.9);
}

.rules-content ul, .rules-content ol {
    margin-left: 25px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.rules-content li {
    margin-bottom: 8px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.game-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.game-info span {
    background: linear-gradient(145deg, #e8f4f8, #f5f5fa);
    padding: 8px 15px;
    border-radius: 12px;
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.3), 
                -4px -4px 8px rgba(255, 255, 255, 0.9);
    color: #6b8caf;
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Panels */
.panel {
    background: linear-gradient(145deg, #f5f5fa, #fefeff);
    padding: 20px;
    border-radius: 25px;
    box-shadow: 10px 10px 20px rgba(163, 177, 198, 0.3), 
                -10px -10px 20px rgba(255, 255, 255, 0.9);
}

/* Players List */
.players-list {
    max-height: 400px;
    overflow-y: auto;
}

.player-item {
    background: linear-gradient(145deg, #e8f4f8, #f5f5fa);
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.3), 
                -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.player-item.dead {
    opacity: 0.5;
    text-decoration: line-through;
}

.player-name {
    font-weight: 600;
}

.player-role {
    font-size: 0.9rem;
    color: #8eacc3;
}

.player-status {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 10px;
    background: linear-gradient(145deg, #fdd5d7, #ffe2e4);
    color: #c85a5f;
    box-shadow: 2px 2px 4px rgba(163, 177, 198, 0.2), 
                -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.player-status.alive {
    background: linear-gradient(145deg, #d4f1f4, #e0f7fa);
    color: #4a90a4;
}

/* Players Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.player-card {
    background: linear-gradient(145deg, #e8f4f8, #f5f5fa);
    padding: 15px;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 6px 6px 12px rgba(163, 177, 198, 0.3), 
                -6px -6px 12px rgba(255, 255, 255, 0.9);
}

.player-card:hover {
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.4), 
                -4px -4px 8px rgba(255, 255, 255, 1);
}

.player-card.dead {
    opacity: 0.4;
}

.player-card .name {
    font-weight: 600;
    margin-bottom: 5px;
}

.player-card .status {
    font-size: 0.85rem;
    color: #8eacc3;
}

/* Role Card */
.player-role-card {
    background: linear-gradient(145deg, #f5e6f0, #ffe8f5);
    padding: 30px;
    border-radius: 25px;
    margin-bottom: 30px;
    border: none;
    box-shadow: 12px 12px 24px rgba(163, 177, 198, 0.3), 
                -12px -12px 24px rgba(255, 255, 255, 0.9),
                inset 0 0 0 1px rgba(155, 106, 158, 0.1);
}

.role-name {
    font-size: 2rem;
    font-weight: 700;
    color: #9b6a9e;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.role-team {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #6b8caf;
}

.role-team.good {
    color: #4a90a4;
}

.role-team.evil {
    color: #c85a5f;
}

.role-ability {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
    background: linear-gradient(145deg, #e8f4f8, #f5f5fa);
    padding: 15px;
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.2), 
                inset -3px -3px 6px rgba(255, 255, 255, 0.9);
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.controls .btn {
    min-width: auto;
}

.phase-info {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(145deg, #e8f4f8, #f5f5fa);
    border-radius: 15px;
    box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.2), 
                inset -3px -3px 6px rgba(255, 255, 255, 0.9);
}

#phase-actions {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #6b8caf;
}

/* Role Distribution */
#role-distribution {
    font-size: 0.95rem;
}

.role-item {
    padding: 8px;
    margin-bottom: 8px;
    background: linear-gradient(145deg, #e8f4f8, #f5f5fa);
    border-radius: 12px;
    box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.2), 
                -3px -3px 6px rgba(255, 255, 255, 0.8);
}

/* Game Log */
.game-log {
    max-height: 300px;
    overflow-y: auto;
    background: linear-gradient(145deg, #e8f4f8, #f5f5fa);
    padding: 15px;
    border-radius: 15px;
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.2), 
                inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.log-entry {
    padding: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #6b8caf;
    padding-left: 12px;
    font-size: 0.9rem;
    background: linear-gradient(145deg, #f5f5fa, #fefeff);
    border-radius: 8px;
}

.log-entry.important {
    border-left-color: #c85a5f;
    background: linear-gradient(145deg, #fdd5d7, #ffe2e4);
}

.log-timestamp {
    font-size: 0.8rem;
    color: #8eacc3;
    margin-right: 8px;
}

/* Voting */
#voting-area {
    padding: 20px;
    background: linear-gradient(145deg, #e8f4f8, #f5f5fa);
    border-radius: 18px;
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.2), 
                inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.vote-btn {
    margin: 5px;
    padding: 10px 20px;
    background: linear-gradient(145deg, #cfe2f3, #dceefb);
    color: #6b8caf;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.3), 
                -4px -4px 8px rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-weight: 500;
}

.vote-btn:hover {
    box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.4), 
                -3px -3px 6px rgba(255, 255, 255, 1);
}

.vote-btn:active {
    box-shadow: inset 2px 2px 4px rgba(163, 177, 198, 0.3), 
                inset -2px -2px 4px rgba(255, 255, 255, 0.9);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(145deg, #e8f4f8, #f5f5fa);
    border-radius: 10px;
    box-shadow: inset 2px 2px 4px rgba(163, 177, 198, 0.2), 
                inset -2px -2px 4px rgba(255, 255, 255, 0.9);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, #b8cfe0, #c8dce8);
    border-radius: 10px;
    box-shadow: 2px 2px 4px rgba(163, 177, 198, 0.2), 
                -2px -2px 4px rgba(255, 255, 255, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, #a8c1d4, #b8cfe0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        min-width: 200px;
    }
}
