/* Main CSS for D&D Game Manager */

:root {
    --primary-color: #6b46c1;
    --secondary-color: #a0aec0;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --text-color: #2d3748;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 1px;
}

.card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #553c9a;
    border-color: #553c9a;
}

.table th {
    background-color: #edf2f7;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.inventory-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.inventory-item.dropped {
    opacity: 0.7;
    background: #f6e05e;
}

.economy-display {
    background: #edf2f7;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.economy-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.spell-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
}

.spell-slot.used {
    background: #fed7d7;
}

.spell-slot .slot-bar {
    flex: 1;
    height: 20px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.spell-slot .slot-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.xp-bar {
    height: 30px;
    background: #edf2f7;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.message-card {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.message-card.private {
    background: #f6e05e;
    border-left: 4px solid #ecc94b;
}

.message-card.system {
    background: #edf2f7;
    border-left: 4px solid #4299e1;
    font-style: italic;
}

.badge-dm {
    background-color: #e53e3e;
}

.badge-player {
    background-color: #38a169;
}

/* Character sheet specific styles */
.ability-score {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ability-score .score {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.ability-score .modifier {
    font-size: 1rem;
    color: #718096;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .inventory-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.text-success { color: #48bb78 !important; }
.text-danger { color: #e53e3e !important; }