/* assets/css/styles.css — Player Section */

:root {
--primary-color: #0077cc;
--secondary-color: #f5f5f5;
--text-color: #333;
--border-radius: 10px;
}

body {
margin: 0;
padding: 0;
background-color: #fafafa;
color: var(--text-color);
display: flex;
min-height: 100vh;
font-family: 'Open Sans', sans-serif;
}

.header {
display: flex;
width: 80%;
justify-content: space-between;
align-items: center;
padding: 1rem 1.5rem;
background-color: white;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

h1 {
margin: 0;
font-size: 1.5rem;
}

.primary-btn {
background-color: var(--primary-color);
color: white;
border: none;
border-radius: var(--border-radius);
padding: 0.6rem 1.2rem;
cursor: pointer;
transition: background 0.2s ease;
}

.primary-btn:hover {
background-color: #005fa3;
}

.secondary-btn {
background-color: #ddd;
color: #333;
border: none;
border-radius: var(--border-radius);
padding: 0.6rem 1.2rem;
cursor: pointer;
transition: background 0.2s ease;
}

.secondary-btn:hover {
background-color: #ccc;
}

main {
padding: 1.5rem;
}

h2 {
margin-bottom: 1rem;
}

.sessions-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1rem;
}

.session-card {
background-color: white;
border-radius: var(--border-radius);
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
padding: 1rem;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.session-card a {
color: var(--primary-color);
text-decoration: none;
margin-right: 0.5rem;
}

.session-card a:hover {
text-decoration: underline;
}

.session-date {
font-weight: 600;
margin-bottom: 0.5rem;
}

.session-images {
margin-bottom: 0.5rem;
}

.session-balance {
font-weight: 500;
color: #222;
}

/* Modal */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.4);
display: flex;
justify-content: center;
align-items: center;
z-index: 10;
}

.modal.hidden {
display: none;
}

.modal-content {
background-color: white;
border-radius: var(--border-radius);
width: 90%;
max-width: 400px;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.modal-content h3 {
margin-top: 0;
margin-bottom: 1rem;
}

.modal-content label {
display: block;
margin-top: 0.5rem;
font-weight: 500;
}

.modal-content input[type="text"],
.modal-content input[type="url"],
.modal-content input[type="date"],
.modal-content input[type="number"] {
width: 100%;
padding: 0.5rem;
border-radius: var(--border-radius);
border: 1px solid #ccc;
margin-top: 0.2rem;
}

.modal-actions {
display: flex;
justify-content: flex-end;
margin-top: 1rem;
gap: 0.5rem;
}

@media (max-width: 600px) {
.session-card {
font-size: 0.9rem;
}
.primary-btn, .secondary-btn {
padding: 0.5rem 0.9rem;
}
}

.content {
  flex: 1;
  padding: 20px;
  background: #f8fafc;
  overflow: hidden;
}


.sidebar {
  width: 220px;
  background: #1e293b;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.sidebar-header {
  padding: 0 20px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar ul { list-style: none; padding: 0; margin: 0; flex: 1; }
.sidebar li { margin: 10px 0; }
.sidebar a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  border-left: 3px solid transparent;
}
.sidebar a.active {
  background: #334155;
  border-left: 3px solid #3b82f6;
  color: #fff;
}

.sidebar a:hover {
    background: #475569;
    border-left: 3px solid #f6703b;
    color: #fff;
}

.table-container {
  overflow-x: auto;
  background: #fff;
  border-radius: 10px;
  width: 80%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 20px;
}

.sessions-table {
  width: 100%;
  border-collapse: collapse;
}

.sessions-table th, .sessions-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

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

.sessions-table tr:hover {
  background-color: #f9f9f9;
}

.sessions-table .positive {
  color: #27ae60;
  font-weight: 600;
}

.sessions-table .negative {
  color: #c0392b;
  font-weight: 600;
}

select { padding: 6px 10px; border-radius: 6px; border: 1px solid #ccc; font-size: 0.95em; margin-left: 15px; }

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: none;
  color: var(--primary-color);
}