/* static/css/styles.css */

:root {
    /* --- Color Palette --- */
    --primary-color: #6f42c1;       /* Purple (Brand) */
    --primary-hover: #5a32a3;
    --secondary-color: #007bff;     /* Blue (Info) */
    --success-color: #28a745;       /* Green (Money) */
    --danger-color: #dc3545;        /* Red (Logout/Delete) */
    --dark-bg: #2c3e50;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;

    /* --- Spacing & Radius --- */
    --radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

/* --- Global Reset & Typography --- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; }

/* --- Layout Containers --- */
/* UPDATED: Wider container for Dashboards/Pools/Tickets */
.container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 15px;
}

/* Kept narrow for Login, Register, Profile, Wallet */
.container-small {
    max-width: 600px; 
    margin: 40px auto;
    padding: 0 15px;
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px; /* Slightly tighter padding for better grouping */
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background-color: var(--primary-color); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-hover); }

.btn-secondary { background-color: #6c757d; color: var(--white); } /* Grey for 'Back' */
.btn-secondary:hover { background-color: #5a6268; }

.btn-success { background-color: var(--success-color); color: var(--white); }
.btn-success:hover { background-color: #218838; }

.btn-danger { background-color: var(--danger-color); color: var(--white); }
.btn-danger:hover { background-color: #c82333; }

.btn-outline { 
    background: transparent; 
    border: 2px solid var(--border-color); 
    color: var(--text-dark); 
}
.btn-outline:hover { background-color: #f8f9fa; }

.btn-block { width: 100%; display: block; }

/* --- Forms --- */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0 20px 0;
    display: inline-block;
    border: 1px solid #ced4da;
    border-radius: var(--radius);
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s;
}
input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1); }
label { font-weight: 600; color: var(--text-dark); margin-bottom: 5px; display: block; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger-color); }
.text-success { color: var(--success-color); }

.flex-between { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* --- Common Nav Header (Used in Home/Pools) --- */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.nav-brand { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); display: flex; align-items: center;}
.nav-controls { display: flex; gap: 10px; align-items: center; }

/* Mobile */
@media (max-width: 600px) {
    .nav-header { flex-direction: column; text-align: center; }
    .nav-controls { flex-wrap: wrap; justify-content: center; }
    .btn { width: 100%; margin-bottom: 5px; }
    .flex-between { flex-direction: column; align-items: flex-start; gap: 10px; }
}