/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #111;
  color: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff4c29;
}

/* Header */
header {
  background: #000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.5rem;
  color: #ff4c29;
  text-transform: uppercase;
}

nav a {
  margin-left: 2rem;
}

/* Footer */
footer {
  background: #000;
  padding: 2rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* Start Page Sections */
.start-sections {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  padding: 4rem 2rem;
  flex-wrap: wrap;
}

.start-card {
  background: #1c1c1c;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  flex: 1 1 250px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.start-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(255, 76, 41, 0.2);
}

.start-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.start-card2 img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  padding: 1rem;
}



.start-card h3 {
  color: #ff4c29;
  margin-top: 1rem;
  font-size: 1.2rem;
  text-transform: uppercase;
}


.two-column-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.left-section {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.center-section {
  flex: 1 1 65%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Reuse or define main-box style */
.main-box {
  background: #1c1c1c;
  padding: 2rem 3rem;
  border-radius: 10px;
  color: #ff4c29;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 76, 41, 0.2);
  text-align: center;
}
.main-personal-data {
  background: #1c1c1c;
  padding: 2rem 3rem;
  border-radius: 3px;
  color: #ff4c29;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 0 5px rgba(255, 76, 41, 0.2);
  text-align: center;
}
.main-personal-data span {
    font-size: 16px; /* Default font size */
color:fff;
}

.main-box h2 {
  margin-bottom: 1.5rem;
  color: #ff4c29;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #333;
  font-size: 2rem;
}

.stat-subrow {
  display: flex;
  justify-content: space-between;
  padding: 0rem 0;
  font-size: 1rem;
}



.stat-label {
  color: #ccc;
  font-weight: bold;
}

.stat-value {
  color: #fff;
}

.stat-error {
  display: none;
  background-color: #ff4c29;
  color: #111;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
}

/* Error Box Visibility */
.stat-error.visible {
  display: block;
}

.stat-period-selector {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.stat-period-selector .period {
  font-size: 2rem;
  font-weight: bold;
  color: #ff4c29;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.stat-period-selector .period::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background-color: #ff4c29;
  transition: width 0.3s ease;
}

.stat-period-selector .period:hover{
  background-color: #ff633e;
}

.stat-period-selector .period.active {
 background-color: #ff633e; 
 color: #fff;
}

.stat-period-selector .period.active::after {
  width: 100%;
}

/* Form Container */
form {
  background-color: #1c1c1c;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 0 10px rgba(255, 76, 41, 0.1);
}

/* Form Elements */
form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #ff4c29;
  text-transform: uppercase;
}

form input[type="text"],
form input[type="email"],
form input[type="file"],
form input[type="password"],
form select,
form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 5px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

form input[type="file"] {
  display: none;
}

form textarea {
  resize: vertical;
  min-height: 100px;
}







/* Button */
form .button,
form input[type="submit"] {
  background-color: #ff4c29;
  color: #111;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form .button:hover,
form input[type="submit"]:hover {
  background-color: #ff633e;
  color: #fff;
}


/* Button style for .slm */
.slm {
  background-color: #ff4c29;
  color: #111;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none; /* For links */
  display: inline-block;
  transition: background-color 0.3s ease;
}

.slm:hover {
  background-color: #ff633e;
  color: #fff;
}




/* File label */
.file-label {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #ff4c29;
  color: #111;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-bottom: 1rem;
}

.file-label:hover {
  background-color: #ff633e;
  color: #fff;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background-color: #1c1c1c;
  color: #fff;
  border: 1px solid #333;
  box-shadow: 0 0 10px rgba(255, 76, 41, 0.1);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

/* Base table styling from before is still used */

td.small {
  font-size: 0.8rem;
  color: #ccc;
}

td.large {
  font-size: 1.0rem;
  font-weight: bold;
  color: #ff4c29;
}
/* Digital Number Style for td */
td.digital {
  font-family: 'Digital-7', sans-serif; /* Using a digital font */
  font-size: 1.5rem; /* Adjust the size as needed */
  color: #ff4c29; /* Digital number color */
  text-align: left;
  padding: 0.75rem;
}

/* If you want to apply a glowing effect to the digital numbers */
td.digital.glowing {
  text-shadow: 0 0 5px #ff4c29, 0 0 10px #ff4c29, 0 0 15px #ff4c29, 0 0 20px #ff4c29;
}



th {
  background-color: #ff4c29;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1px;
}

tr:hover {
  background-color: #2a2a2a;
  transition: background 0.3s ease;
}

/* Dark Table Style */
table.dark {
  width: 60%;
  border-collapse: collapse;
  margin-top: 2rem;
  background-color: #1c1c1c;
  color: #fff;
  border: 1px solid #333;
  box-shadow: 0 0 10px rgba(255, 76, 41, 0.1);
}

/* Dark Table Header */
table.dark th {
background-color: #ff4c29;
  color: #111;
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #333;
  text-align: left;
}

/* Dark Table Body Cells */
table.dark td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #1e1e1e;
}

/* Optional: Zebra Stripes */
table.dark tbody tr:nth-child(even) {
  background-color: #141414;
}

/* Optional: Hover Row Highlight */
table.dark tbody tr:hover {
  background-color: #2a2a2a;
}























/* Responsive stacking on small screens */
@media (max-width: 768px) {
  .two-column-layout {
    flex-direction: column;
  }
  .left-section,
  .center-section {
    flex: 1 1 100%;
  }
  .start-card {
    flex: 1 1 100%;
  }  
form textarea {
font-size: 2rem;
}


}


#chart-container {
    width: 90%;
    max-width: 1000px;
    height: 500px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

#small-chart-container {
    width: 300px;
    height: 300px;
    margin: 40px auto;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #aaa;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

#backToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #333;
    color: white;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

#backToTopBtn:hover {
    background-color: #555;
}
