/*
* Custom Styles for Skeleton and Normalize CSS Modifications
* Consolidates all custom CSS modifications
*/

/* From Skeleton CSS modifications */

/* Fonts and Colors */
html {
    font-size: 18px; /* Slightly larger than the typical 16px default */
}
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 0.8em;
  	font-weight: 400;
}

.colored {
  color: #1e3a8a;
}

.green {
  color: #07b32d;
}

.red {
  color: #db4a30;
}

/* Links */

h1 {
  border-style: solid;
  border-width: 1px;
  border-color: #B5B5B5;
  padding: 10px;
  font-size: 1.4em;
  color: #1e3a8a;
  margin-top: 10px;
  padding-right: 10px;
  display: block;
  width: 90%;
  text-decoration: bold;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  letter-spacing: 0rem; 
  font-weight: 600;
}
h2{
  color: #1e3a8a;
  font-size: 1.2em;
  letter-spacing: 0rem;   
  font-weight: 600;  
}
a {
  color: #1e3a8a;
}

a:hover {
  text-decoration: underline;
  color: #1e3a8a;
}

a.entry {
  color: rgb(59, 64, 69);
  text-decoration: underline;
}

/* Layout and Elements */
.collapsible {
  outline: none;
  height: 25px;
}

.content {
  display: none;
}

.narrative {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #70797a;
}

.entry {
  border-style: solid;
  border-width: 1px;
  border-color: #B5B5B5;
  padding: 6px;
  border-radius: 10px;
  font-size: 0.95em;
  margin-top: 3px;
  width: 87%;
}

.entry-large {
  border-style: solid;
  border-width: 1px;
  border-color: #B5B5B5;
  padding: 6px;
  border-radius: 10px;
  font-size: 0.95em;
  margin-top: 3px;
  width: 91%;
}

.entry-closed {
  border-style: solid;
  border-width: 1px;
  border-color: #B5B5B5;
  padding: 6px;
  border-radius: 10px;
  font-size: 0.95em;
  margin-top: 3px;
  background-color: #1e3a8a;
}

.day {
  border-style: solid;
  border-width: 1px;
  border-color: #B5B5B5;
  padding: 10px;
  font-size: 1em;
  color: #1e3a8a;
  margin-top: 10px;
  padding-right: 10px;
  display: block;
  width: 90%;
  text-decoration: none;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.day:hover {
  border-color: #888;
  text-decoration: none;
}

.week {
  border-style: solid;
  border-width: 1px;
  border-color: #d60e0e;
  border-radius: 10px;
  padding: 10px;
  font-size: 1.2em;
  color: #d60e0e;
  margin-top: 10px;
  display: block;
  width: 100%;
  text-decoration: none;
}

.toright {
  padding: 10px;
  margin-top: 10px;
  width: 100%;
}

/* Tables */
.table {
  margin-bottom: 15px;
  width: 100%;
  border-radius: 10px;
  border-collapse: collapse;
}

th a {
    color: white;
}
th a:hover {
    color: white;
}
th {
  background-color: #1e3a8a;
  color: white;
  border: 1px solid white;
  padding-left: 10px;
}

.row1 td, .row2 td, .row_hover td, .paging_row td {
  color: #666;
  border: 1px solid #CBD6DE;
  padding: 5px 10px;
  font-size: 0.9em;
}

.row1 td {
  background: #fff;
}

.row2 td {
  background: #F7F7F7;
}

.row_hover td {
  background: #FBFACE;
  color: #000;
}

/* Buttons */
.button-menu, .button-list, .button-date {
  display: inline-block;
  height: 20px;
  padding: 0 20px;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  background-color: #1e3a8a;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
}

.button-menu {
  width: 200px;
}

.button-list {
  width: 100%;
  text-align: left;
}

.button-date {
  color: white;
  background-color: #1e3a8a;
  white-space: normal;
}

.button-form {
  display: inline;
  border-radius: 0;  /* Reset the border-radius to ensure no rounded corners */
}
.button-date,
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"],
.button:hover,.button-date:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus,
.button.button-primary,
button.button-primary,
input[type="submit"].button-primary,
input[type="reset"].button-primary,
input[type="button"].button-primary,
.button.button-primary:hover,
button.button-primary:hover,
input[type="submit"].button-primary:hover,
input[type="reset"].button-primary:hover,
input[type="button"].button-primary:hover,
.button.button-primary:focus,
button.button-primary:focus,
input[type="submit"].button-primary:focus,
input[type="reset"].button-primary:focus,
input[type="button"].button-primary:focus {
  color: white;
  background-color: #1e3a8a;
  border-color: #1e3a8a; }
/* Forms */
input[type="email"], input[type="number"], input[type="search"], input[type="text"], input[type="tel"], input[type="url"], input[type="password"], select {
  min-height: 38px;
}

input[type="email"], input[type="number"], input[type="search"], input[type="text"], input[type="tel"], input[type="url"], input[type="password"], textarea {
  display: inline-block;
}
textarea{
  height: 60px;
}
  
/* Code */
code {
  display: block;
}



 
/* Custom Components */
.select-style {
  padding: 0;
  margin: 0;
  border: 1px solid #ccc;
  width: 120px;
  border-radius: 3px;
  overflow: hidden;
  background-color: #fff;
  position: relative;
}

.select-style:after {
  top: 50%;
  left: 85%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(0, 0, 0, 0);
  border-top-color: #000000;
  border-width: 5px;
  margin-top: -2px;
  z-index: 100;
}

.select-style select {
  padding: 5px 8px;
  width: 130%;
  border: none;
  box-shadow: none;
  background-color: transparent;
  background-image: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.select-style select:focus {
  outline: none;
}

/* Additional Custom Styles */
.little {
  font-size: 0.8em;
}

.error {
  background: #FEDCDA;
  border: 1px solid #CE090E;
  padding: 8px;
  margin-bottom: 15px;
  font-size: 0.8em;
  color: #333333;
}
.valid {
  background: #abebc6;
  border: 1px solid #1d8348;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 15px;
  font-size: 0.8em;
}
.invalid {
  background: #F08080;
  border: 1px solid #DC143C;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 15px;
  font-size: 0.8em;
}
hr {
  height: 1px;
  background-color: #ccc; 
  border: none; 
  margin-top: 2px ;
  margin-bottom: 2px ;
}

.pagination {
  font: 12px Arial, Helvetica, sans-serif;
  margin: 40px 0;
  text-align: center
}
.pagination a {
  background: #fff;
  border: 1px solid #585858;
  color: #585858;
  margin: 2px;
  padding: .2em .4em;
  text-decoration: none
}
.pagination a:hover {
  background: #fff;
  border: 1px solid #58ACFA;
  color: #585858
}
.pagination span.inactive {
  background: #fff;
  border: 1px solid #585858;
  color: #f0f0ff;
  margin: 2px;
  padding: .2em .4em
}
.pagination span.active {
  background: #fff;
  border: 1px solid #58ACFA;
  color: #58ACFA;
  font-weight: 700;
  margin: 2px;
  padding: .2em .4em
}
.timer-block { margin: 10px 0; padding: 5px; border: 1px solid #ccc; }
.timer {  margin: 5px 0; font-size:2em; color: #1e3a8a; }

/* Porgress bar */
.progress-container {
    width: 100%;
    max-width: 600px;
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    background-color: #f0f0f0;
    height: 30px;
    margin: 10px 0;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.target-fill {
    background-color: #1e3a8a; /* Blue for target */
}

.actual-fill-green {
    background-color: #4CAF50; /* Green when above or equal to target */
}

.actual-fill-orange {
    background-color: #FF9800; /* Orange when below target */
}

.progress-label {

    margin-bottom: 5px;
}

.percentage {
    margin-top: 10px;
    font-weight: bold;
}



/* Simple responsive header */
.simple-header {
    background-color: #1e3a8a;
    padding: 15px 0;
    margin: 0;
}

.simple-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simple-header .header-left {
    flex-shrink: 0;
}

.simple-header .header-left img {
    height: 40px;
}

.simple-header .header-right {
    flex-shrink: 0;
    margin-right: -520px;
}

.simple-header .user-info {
    color: #ffffff;
    white-space: nowrap;
}

.simple-header .user-info a {
    color: #e8eef7;
    text-decoration: none;
}

.simple-header .user-info a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .simple-header {
        padding: 10px 0;
    }
    
    .simple-header .container {
        padding: 0 15px;
    }
    
    .simple-header .header-right {
        margin-right: 0;
    }
    
    .simple-header .header-left img {
        height: 35px;
    }
    
    .simple-header .user-info {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .simple-header .container {
        padding: 0 10px;
    }
    
    .simple-header .header-right {
        margin-right: 0;
    }
    
    .simple-header .header-left img {
        height: 30px;
    }
    
    .simple-header .user-info {
        font-size: 0.8em;
    }
}

/* Add this to your custom.css file to align date selector with navigation buttons */

/* Container for date controls alignment */
.date-controls-container {
    display: flex;
    align-items: center; /* Vertically center all children */
    justify-content: center;
    gap: 10px; /* Space between elements */
    margin-bottom: 20px;
}

/* Style the date input to match button height and alignment */
.button-form input[type="date"] {
    height: 38px; /* Match button height */
    padding: 0 10px; /* Consistent padding */
    border: 1px solid #1e3a8a;
    border-radius: 4px;
    background-color: #fff;
    color: #1e3a8a;
    font-size: 12px;
    line-height: 36px; /* Slightly less than height to account for border */
    vertical-align: middle; /* Align with button baseline */
    box-sizing: border-box;
    margin: 0; /* Remove any default margins */
    -webkit-appearance: none; /* Remove browser-specific styling */
    -moz-appearance: none;
    appearance: none;
}
/* Ensure the form itself doesn't add extra spacing */
.button-form {
    display: inline-flex; /* Match flex behavior of buttons */
    align-items: center;
    margin: 0;
    padding: 0;
}
/* Ensure navigation buttons have consistent height and alignment */
.button-date {
    height: 38px; /* Match input height */
    padding: 0 20px; /* Consistent padding */
    display: inline-flex;
    align-items: center; /* Center content vertically */
    justify-content: center;
    line-height: 36px; /* Match input line-height */
    box-sizing: border-box;
    vertical-align: middle; /* Align with input baseline */
    margin: 0; /* Remove any default margins */
    color: white;
    background-color: #1e3a8a;
    border-radius: 4px;
    text-decoration: none;
}

/* Alternative approach - if you want to modify the existing structure */
.date-navigation-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.date-navigation-row .button-form,
.date-navigation-row .button-date {
    margin: 0;
    vertical-align: middle;
}

/* Ensure all elements in the navigation row have same height */
.date-navigation-row .button-form input[type="date"],
.date-navigation-row .button-date {
    height: 38px;
    box-sizing: border-box;
}