/* Base body styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: black!important;
}

.site-title a{
	color:white;
}

.custom-logo{
	width:65px;
}

.footer-content{
	color:white;
}

/* School Banner */
.school-banner {
    float:left;
    background: linear-gradient(135deg, whitesmoke 0%, gray 100%);
    color: black;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 9998;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.school-banner-content {
    width: 100%;
}

.school-name {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 1px 1px 3px white;
    word-wrap: break-word;
}

/* Responsive design */
@media (max-width: 768px) {
    .school-banner {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 80px;
    }
    
    body {
        margin-left: 0 !important;
    }
    
    .admin-bar .school-banner {
        top: 0;
        height: auto;
    }
    
    .school-name {
        font-size: 1.6em;
    }
}
/* Navigation */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

/* WordPress menu - simplified */
.site-navigation ul.menu {
  display: flex;
  flex-wrap: nowrap!important;
  justify-content: space-between;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  background: #333;
	max-width:none;
}

.site-navigation ul.menu li {
  flex: 1;
  text-align: center;
}

.site-navigation ul.menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 4px;
  white-space: nowrap;
  display: block;
}

.site-navigation ul.menu li a.active,
ul.menu li a:hover {
  background: #555;
}

/* Hide navigation when logged out */
body.logged-out .site-navigation {
  display: none;
}

/* Headings */
h1 {
    text-align: center;
    margin-top: 20px;
	color:white;
}
.entry-title{
	color:white;
}
/* Containers */
.container {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Button Row */
.button-row {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0;
}

button {
    padding: 8px 16px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #555;
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    max-width: 500px;
}

li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
    padding: 8px 15px;
    border-radius: 5px;
    background: white;
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
}

/* House Points Display */
.houses {
    display: flex;
    flex-direction: column; /* stack vertically */
    align-items: center;
    gap: 15px;
    margin: 30px auto;
    max-width: 400px;
}

.house {
    width: 100%;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* House Colors */
.house-color,.red,.green,.yellow,.blue,.pink,.black,.white,.orange,.purple {
    display: inline-block;
    border-radius: 50%;
    margin-right: 10px;
}

.red {
    background: #e74c3c;
}

.green {
    background: #27ae60;
}

.yellow {
    background: #f1c40f;
    color: #333; /* for text contrast in .house */
}

.blue {
    background: #3498db;
}
.pink {
    background: pink;
	color: #333; /* for text contrast in .house */
}
.purple {
    background: purple;
}
.black {
    background: black;
}
.white {
    background: white;
	color:#333; /* for text contrast in .house */
}
.orange {
    background: orange;
}
.house-bullet {
    display:inline-block;
    width:12px;
    height:12px;
    border-radius:50%;
    margin-left:5px;
	box-shadow:0px 0px 2px black;
}
.houses .house {
	padding:15px;
	margin:5px 0;
	border-radius:6px;
	font-weight:bold;
	box-shadow:0px 0px 2px black;
}
.group-list li { margin:6px 0; padding:6px; border-bottom:1px solid #eee; }
.tab-content { margin-top:15px; }
.tab-link { margin-right:8px; padding:6px 12px; cursor:pointer; border-radius:4px; background:#ddd; }
.tab-link.active { background:#333; color:#fff; }
.hps-tabs{
	text-align:center;
}
.hps-student-points{
	border-radius: 5%;
	padding:25px;
	background: linear-gradient(
    to right,
    black 0%,
    whitesmoke 50%,
    black 100%
  );
}

#homerooms-tab, #classes-tab, #grades-tab {
  padding: 25px;
  border-radius: 5%;
  text-align: center; /* centers the ul inside */
	background: linear-gradient(
    to right,
    black 0%,
    whitesmoke 50%,
    black 100%
  );
}

.group-list {
  background-color: whitesmoke;
  display: inline-block; /* allows it to be centered */
  text-align: left; /* keeps li items left-aligned */
  padding: 25px;
  margin: 0 auto;
  list-style: none; /* optional: remove bullet points */
	box-shadow: 0px 0px 2px darkgray;
}

/* Style for the top-ranked element */
.houses .house:first-child {
  position: relative;
  overflow: hidden; /* ensures the sheen stays within the element bounds */
}

/* Add the shimmering overlay */
.houses .house:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%; /* start off-screen */
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: sheen 2.5s ease-in-out infinite;
  pointer-events: none; /* don't block clicks or hover */
}

@keyframes sheen {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

@keyframes starburst {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.6) rotate(360deg);
  }
}
/* The HOUSE-BULLETS in Group <li> */
.house-bullet-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-right: 8px;
}

.house-bullet {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 3px;
}

.house-bullet-points {
    font-size: 10px;
    text-align: center;
    color: #444;
}

/* Student lists page */
.group-filter {
    display: inline-block;        /* shrink to fit the label + select */
    float: right;                 /* align to the right of the tab */
    margin-bottom: 10px;          /* space below the filter */
	margin-right:100px;
	padding:5px;
	background-color:darkgray;
	box-shadow:0px 0px 4px darkgray;
	 text-align: left;
}

.group-filter label {
    margin-right: 5px;            /* spacing between label and dropdown */
    font-weight: bold;
}

.group-filter select {
    width: auto;                   /* only as wide as needed */
    min-width: 120px;              /* optional: avoid being too tiny */
    padding: 4px 8px;              /* internal padding */
    font-size: 0.95rem;
}

/* Style the group title */
.group h2 {
    text-align:center;
}
.group-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.house-title-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* CSV Export Styles */
.export-options {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f9f9f9;
}

.export-buttons {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.export-buttons form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.export-buttons small {
    color: #666;
    font-style: italic;
}

.headers-display {
    margin: 1rem 0;
    padding: 1rem;
    background: #f0f0f1;
    border-left: 4px solid #2271b1;
}

.headers-display code {
    background: white;
    padding: 0.5rem;
    display: inline-block;
    margin: 0.5rem 0;
    font-family: monospace;
}

.notice.notice-warning {
    border-left: 4px solid #ffb900;
    background: #fff8e5;
    padding: 1rem;
    margin: 1rem 0;
}
/* CSV Management Section */
.hps-csv-management {
    width: 100%;
    max-width: none;
    margin: 40px 0;
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

.hps-csv-management .headers-display {
    overflow-x: auto;
}

.hps-csv-management table {
    min-width: 800px; /* Ensures table doesn't get too narrow */
}

/* ACHIEVEMENT LOG STUFF */
/* Student Achievement Log */
.hps-student-achievement-log .achievement-header {
    display: flex;
	justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
    padding: 2rem;
    color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hps-student-achievement-log .avatar-container {
    margin-right: 2rem;
    position: relative;
}

.hps-student-achievement-log .avatar-placeholder {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    width: 120px;
    height: 120px;
}

.hps-student-achievement-log .avatar-accessories {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hps-student-achievement-log .student-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
	text-align:left;
}

.hps-student-achievement-log .total-points {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hps-student-achievement-log .house-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.9rem;
}

.hps-student-achievement-log .achievement-log {
	background-color: whitesmoke;
	display: flex;
	flex-direction: column; /* Stack children vertically */
	align-items: center;    /* Center horizontally */
	padding: 2rem;
}


.hps-student-achievement-log h2{
	display:block;
}

.hps-student-achievement-log .log-entry {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
}

.hps-student-achievement-log .log-date {
    min-width: 150px;
    color: #666;
    font-size: 0.9rem;
}

.hps-student-achievement-log .points-positive {
    font-weight: bold;
}

.hps-student-achievement-log .points-negative {
    font-weight: bold;
}

.hps-student-achievement-log .log-reason {
    font-style: italic;
    color: #666;
    margin-top: 0.25rem;
}

/* Teacher Achievement View */
.hps-teacher-achievement-view .student-search {
    margin-bottom: 2rem;
    position: relative;
}

.hps-teacher-achievement-view #student-search-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.hps-teacher-achievement-view .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.hps-teacher-achievement-view .search-result-item {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.hps-teacher-achievement-view .search-result-item:hover {
    background: #f5f5f5;
}

.hps-teacher-achievement-view .students-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* force 4 equal columns */
    gap: 2rem;
}

.hps-teacher-achievement-view .house-header {
    padding: 1rem;
    color: white;
    margin: 0;
    border-radius: 5px 5px 0 0;
}

.hps-teacher-achievement-view .student-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
	background-color:whitesmoke;
}

.hps-teacher-achievement-view .card-avatar {
    margin-right: 1rem;
}

.hps-teacher-achievement-view .card-avatar .avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.hps-teacher-achievement-view .card-info {
    flex-grow: 1;
}

.hps-teacher-achievement-view .card-info h3 {
    margin: 0 0 0.25rem 0;
}

.hps-teacher-achievement-view .card-points {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2196F3;
}

.hps-teacher-achievement-view .card-meta {
    font-size: 0.8rem;
    color: #666;
}

.hps-teacher-achievement-view .view-log-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
}

.hps-teacher-achievement-view .view-log-btn:hover {
    background: #1976D2;
}

/* Modal */
.hps-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.hps-modal .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.hps-modal .close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
}
.student-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.student-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Image upload styles */
.image-upload-wrapper,
.house-logo-upload-wrapper {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.image-preview {
    margin: 10px 0;
}

.image-preview img {
    border: 2px solid #ccc;
    border-radius: 4px;
}

/* SCHOOL BANNER */
.school-banner {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-bottom: 3px solid #0073aa;
}

.school-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.school-logo-container img {
    max-height: 80px;
    width: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .school-banner-content {
        flex-direction: column;
        text-align: center;
    }
}