:root {
    --primary: #1a365d;
    --primary-dark: #0f2347;
    --secondary: #2b6cb0;
    --text-dark: #2d3748;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --success: #2f855a;
    --danger: #9b2c2c;
    --gray-light: #edf2f7;
    --gray-border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar styling */
.navbar { background-color: var(--primary); color: var(--white); padding: 15px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand { color: var(--white); font-size: 1.5rem; text-decoration: none; letter-spacing: 0.5px; }
.nav-links a { color: #cbd5e0; text-decoration: none; margin-left: 20px; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-links a.admin-link { border: 1px solid #cbd5e0; padding: 4px 10px; border-radius: 4px; }
.nav-links a.logout-link { color: #fc8181; }

/* Structural Content Wrapper Layout */
.content-wrapper { padding: 40px 20px; min-height: calc(100vh - 140px); }

/* Responsive Grid Engine */
.profile-grid { display: grid; grid-template-columns: 370px 14fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.admin-nav-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* Standard UI Cards styling */
.card { background: var(--white); border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); padding: 25px; margin-bottom: 25px; border: 1px solid var(--gray-border); }
.subcard { background: var(--bg-light); border: 1px solid var(--gray-border); padding: 15px; border-radius: 6px; }

/* Typography styling */
h1, h2, h3, h4 { margin-bottom: 15px; color: var(--primary-dark); font-weight: 700; }
h2 { border-bottom: 2px solid var(--gray-light); padding-bottom: 8px; margin-bottom: 20px; }
p { margin-bottom: 15px; }
.text-center { text-align: center; }
.text-muted { color: #718096; }
.highlight { color: var(--secondary); font-weight: bold; font-size: 1.25rem; }

/* Athlete Profile Elements */
.profile-pic-container { width: 160px; height: 160px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; border: 4px solid var(--gray-light); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.profile-pic { width: 100%; height: 100%; object-fit: cover; }
.stats-list { list-style: none; }
.stats-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-light); }

/* Form Controls styling */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; color: var(--primary-dark); }
.form-control { width: 100%; padding: 10px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 1rem; background: var(--white); outline: none; transition: border-color 0.15s; }
.form-control:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(66,153,225,0.15); }
textarea.form-control { resize: vertical; }

/* Buttons styling */
.btn { display: inline-block; background-color: var(--secondary); color: var(--white); padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; border: none; cursor: pointer; transition: background 0.15s; font-size: 0.95rem; }
.btn:hover { background-color: #2b6cb0; }
.btn-block { display: block; width: 100%; }
.btn-secondary { background-color: #718096; }
.btn-secondary:hover { background-color: #4a5568; }
.btn-danger { background-color: #c53030; }
.btn-danger:hover { background-color: #9b2c2c; }
.btn-sm { padding: 4px 10px; font-size: 0.8rem; border-radius: 4px; }

/* Responsive Tables styling */
.table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 0.95rem; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--gray-border); }
.table th { background-color: var(--gray-light); color: var(--primary-dark); font-weight: 600; }
.table tbody tr:hover { background-color: rgba(0,0,0,0.01); }

/* Embedded Video Wrappers */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Custom Badges & Status Signals */
.badge { display: inline-block; padding: 4px 8px; background: var(--gray-light); color: var(--primary-dark); border-radius: 4px; font-size: 0.85rem; font-weight: 600; margin-right: 5px; margin-bottom: 5px; }
.badge-info { background: #ebf8ff; color: #2b6cb0; }
.badge-success { background: #f0fff4; color: var(--success); }
.badge-warn { background: #fffaf0; color: #dd6b20; }
.badge-danger { background: #fff5f5; color: var(--danger); }
.alert { padding: 15px; border-radius: 6px; margin-bottom: 20px; font-weight: 500; }
.alert.success { background-color: #c6f6d5; color: #22543d; border-left: 4px solid #38a169; }
.alert.error { background-color: #fed7d7; color: #742a2a; border-left: 4px solid #e53e3e; }

.metrics-banner { display: flex; justify-content: space-around; background: var(--primary-dark); color: var(--white); font-size: 1.05rem; padding: 15px; }
.state-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)); gap: 8px; max-height: 150px; overflow-y: auto; border: 1px solid var(--gray-border); padding: 10px; background: #fff; border-radius: 6px; }
.checkbox-container { display: flex; align-items: center; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.checkbox-container input { margin-right: 4px; }

/* Sticky Footer styling */
.main-footer { background-color: var(--primary-dark); color: #a0aec0; padding: 20px 0; text-align: center; font-size: 0.9rem; margin-top: auto; }
hr { border: 0; height: 1px; background: var(--gray-border); margin: 20px 0; }