/* Lotto System - Global Styles */

:root {
    --dark-charcoal: #2c3e50;
    --soft-grey: #ecf0f1;
    --gold: #f39c12;
    --white: #ffffff;
    --text-dark: #333;
    --text-light: #6c757d;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

body {
    background: #f5f5f5;
}

/* Utility Classes */
.text-muted {
    color: var(--text-light) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.text-gold {
    color: var(--gold) !important;
}

/* Buttons */
.btn, .btn-primary, .btn-secondary, .btn-danger, .btn-logout {
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
}

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

.btn-primary:hover {
    background-color: #e67e22;
    color: var(--white);
}

.btn-secondary {
    background-color: #6c757d;
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: var(--white);
}

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

.btn-danger:hover {
    background-color: #c82333;
    color: var(--white);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Forms */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    outline: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: var(--white);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 20px;
}

.card-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: none;
    margin-bottom: 20px;
    padding: 15px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Tables */
.table {
    margin-bottom: 0;
    font-size: 14px;
}

.table thead th {
    background: var(--soft-grey);
    color: var(--text-dark);
    border: none;
    font-weight: 700;
    padding: 12px;
    text-transform: uppercase;
    font-size: 12px;
}

.table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-color: #f0f0f0;
}

.table tbody tr:hover {
    background: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
    .form-control {
        font-size: 16px; /* iOS zoom prevention */
    }

    .card-body {
        padding: 15px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }

    .card {
        border-radius: 8px;
    }
}
