/* pull in whatever’s in background.css (if it exists) */
@import url("Uploads/background.css");

/* Navigation bar */
.nav-bar {
    margin: 0;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
}

/* Navigation buttons */
.nav-buttons {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-btn {
    background: linear-gradient(to bottom right, #007bff, #3399ff);
    border: none;
    color: white;
    font-family: system-ui, sans-serif;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    transition: background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: linear-gradient(to bottom right, #0056b3, #267fcc);
}

/* Logout button specific styling */
.logout-btn {
    margin-left: 10mm;
}
.logout-btn:hover {
    background: linear-gradient(to bottom right, #dc3545, #ff6b6b);
}

/* Logo container: fixed size box with no distortion */
.logo-container {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 400px;
  height: 160px;
  overflow: hidden;
  z-index: 1000;
}
.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* fits without stretching */
}

/* Input and label styles */
input[type="date"] {
  font-size: 16px;
  width: 300px;
  height: 32px;
  padding: 10px;
  box-sizing: border-box;
}

label {
  font-size: 18px;
  margin-right: 10px;
}

.no-print {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Import.html upload styling */
.upload-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2em;
}

.upload-btn {
  background: linear-gradient(to bottom right, #007bff, #3399ff);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1rem;
  font-family: system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}
.upload-btn:hover {
  background: linear-gradient(to bottom right, #0056b3, #267fcc);
}

.upload-text {
  font-size: 1rem;
  font-family: system-ui, sans-serif;
}

#csv-file {
  display: none;
}

/* Chart container styles */
.monthly-chart canvas {
  max-width: 100%;
}

.charts-container {
  display: flex;
  gap: 2em;
  margin-top: 2em;
  flex-wrap: wrap;
}
.annual-chart {
  flex: 1;
  position: relative;
  height: 300px;
  min-width: 300px;
}
.monthly-chart {
  width: 100%;
  position: relative;
  height: 500px;
  margin-top: 2em;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  width: 400px;
  max-width: 90%;
  position: relative;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}
.close-btn:hover {
  color: #000;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.form-group input[type="number"] {
  width: 120px;
}
.form-group input.datepicker {
  width: 120px;
}

/* Button Styles */
.delete-btn {
  background-color: #dc3545 !important;
  color: white;
}
.delete-btn:hover {
  background-color: #c82333 !important;
}

#bubbleMessage {
  display: none;
  position: absolute;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
  max-width: 300px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  font-size: 0.9em;
  line-height: 1.4;
}

.content {
    margin-left: 0mm;
    padding: 20px;
}

.form-box {
    width: 15cm;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.form-field {
    margin-bottom: 15px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-field select,
.form-field input[type="date"],
.form-field input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.form-field input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.form-field input[type="submit"]:hover {
    background-color: #45a049;
}

.error {
    color: red;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}