/* static/css/app.css */
:root {
    --primary: #28a745; /* Luck Green */
    --primary-dark: #1e7e34;
    --secondary: #007bff; /* Action Blue */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #343a40;
    --text-light: #6c757d;
    --danger: #dc3545;
    --warning: #ffc107;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    padding-bottom: 80px; /* Space for bottom nav */
}

/* App Header */
.app-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.app-header h1 { margin: 0; font-size: 24px; font-weight: 700; }

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    margin: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background-color: var(--primary); color: white; box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3); }
.btn-secondary { background-color: white; color: var(--secondary); border: 2px solid var(--secondary); }

/* Lottery Balls */
.ball-container { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.ball {
    width: 30px; height: 30px;
    background: #fff; border: 1px solid #ddd;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: bold; color: #333;
    box-shadow: inset 0 -2px 2px rgba(0,0,0,0.1);
}
.ball.hit { background-color: var(--primary); color: white; border-color: var(--primary); }

/* Bottom Navigation */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: white;
    display: flex; justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}
.nav-item {
    text-align: center; color: var(--text-light); text-decoration: none; font-size: 10px;
}
.nav-item i { display: block; font-size: 24px; margin-bottom: 4px; }
.nav-item.active { color: var(--primary); }