


/* Main container */
.climate-container {
  display: flex;
  justify-content: space-between;
  min-height: 80vh;
}
/* Sidebar Container */
.climate-sidebar {
  width: 260px;
  padding: 25px 20px;
  background: linear-gradient(145deg, #e0f7fa, #ffffff);
  border-right: 2px solid #00acc1;
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar Heading */
.climate-sidebar h3 {
  font-size: 20px;
  color: #006064;
  margin-bottom: 20px;
  border-bottom: 2px solid #00acc1;
  padding-bottom: 10px;
}

/* Tab Buttons */
.tab-btn {
  display: block;
  width: 100%;
  padding: 10px 15px;
  margin: 10px 0;
  background-color: #ffffff;
  border: 2px solid #00acc1;
  color: #007c91;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.decade_wise_rf_btn{
  background-color: #006064;
  color: white;
  font-size: 1.1rem;
  text-align: center;
    padding: 10px 0px;
}
.tab-btn:hover {
  background-color: #00acc1;
  color: #ffffff;
  transform: translateX(5px);
}

/* Dropdown Sections */
.dropdown {
  background-color: #f1fdfd;
  padding: 10px;
  border-left: 3px solid #00acc1;
  border-radius: 4px;
  margin-bottom: 10px;
  animation: fadeIn 0.3s ease-in;
}

.dropdown label {
  font-size: 14px;
  font-weight: 600;
  color: #004d4d;
  display: block;
  margin-bottom: 5px;
}

.dropdown-item {
  cursor: pointer;
  padding: 6px 0;
  font-size: 15px;
  color: #007c91;
  border-bottom: 1px dashed #b2ebf2;
  text-align: left;
}

.dropdown-item:hover {
  color: #004d40;
  font-weight: bold;
}

/* Select Inputs */
select {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #00bcd4;
  border-radius: 6px;
  outline: none;
  background-color: #ffffff;
  transition: box-shadow 0.2s ease;
}

select:focus {
  box-shadow: 0 0 5px #00bcd4;
}

/* Hidden Utility */
.hidden {
  display: none;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}



/* Main content */
.climate-content {
  flex: 1;
  padding: 20px;
  background-image: url('../assets/climatology_background.jpg'); /* or .png depending on file */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* backdrop-filter: brightness(0.95); */
  min-height: 100vh;
}
.no-bg {
  background-image: none !important;
}

/* .climate-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  z-index: 0;
}

.climate-content > * {
  position: relative;
  z-index: 1;
} */

.climate-content h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

#content-display table {
  border-collapse: collapse;
  width: 100%;
}

/* #content-display th, #content-display td {
  border: 1px solid #ccc;
  padding: 4px 12px;
  text-align: left;
} */

#chart-placeholder {
  margin-top: 30px;
  height: 300px;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-style: italic;
}



/* ****for decadewise***** */

.graph-container-decadewise {
  width: 100%;
  max-width: 950px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ******************for the monthly tables and graphs *****************  */

/* Content container inside #content-display */


/* Container with flex layout and dark background */
.monthly-layout {
  width: 100%;
  /* background-color: #004d40; */
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
  flex-wrap: wrap; /* Important for smaller screens */
}

/* Left side: Styled rainfall table */
.rainfall-table {
  width: 100%;
  max-width: 620px;
  background-color: #ffffff;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.9rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rainfall-table thead {
  background-color: #00695c;
  color: #ffffff;
}

.rainfall-table th,
.rainfall-table td {
  padding: 5px 14px;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

.rainfall-table tbody tr:hover {
  background-color: #e0f2f1;
}

/* Right side: Graph image container */
.graph-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rainfall-graph {
  width: 100%;
  height: auto;
  border-radius: 6px;
  /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); */
}


.graph-container-annual{
   width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}



/* *************** for annual *********** */

.annual-rainfall-table {
  width: 100%;
  max-width: 620px;
  background-color: #ffffff;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.9rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.annual-rainfall-table thead {
  background-color: #00695c;
  color: #ffffff;
}

.annual-rainfall-table th,
.annual-rainfall-table td {
  padding: 7px 14px;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

.annual-rainfall-table tbody tr:hover {
  background-color: #e0f2f1;
}




/* **********for the weekly part************ */


/* Weekly Districts Heading */
.weekly-districts-heading {
  font-size: 1.8rem;
  color: #333;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
  /* border-bottom: 2px solid #4caf50; */
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* Form Styling */
.weekly-districts-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  gap: 1rem;
  background: #f7f7f7;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.weekly-districts-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  justify-content: space-between;
}

.weekly-districts-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8rem; /* Adds space between label and select */
  text-align: left;   
  padding-left: 10px;
  color: #444;
}

.weekly-districts-select {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.weekly-districts-select:focus {
  border-color: #4caf50;
  outline: none;
}

/* Button Styling */
.weekly-districts-button {
  width: 140px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  color: #fff;
  background-color: #00695c;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-self: center;
  transition: background-color 0.3s ease;
}

.weekly-districts-button:hover {
  background-color: #044d44;
}

/* Result Container */
.weekly-districts-result {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* Table Styling */
.weekly-districts-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 10px;
  overflow: hidden;
}

.weekly-districts-table th,
.weekly-districts-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  text-align: center;
}

.weekly-districts-table th {
  background-color: #00695c;
  color: white;
  font-weight: 600;
}

/* Graph Styling */
.weekly-districts-graph-container {
  text-align: center;
}

.weekly-districts-graph {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 600px) {
  .weekly-districts-form {
    padding: 1rem;
  }

  .weekly-districts-heading {
    font-size: 1.5rem;
  }

  .weekly-districts-select,
  .weekly-districts-button {
    font-size: 0.95rem;
  }

  .weekly-districts-table th,
  .weekly-districts-table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}




/* ******************* rainy days ********************** */




/* Table styling */
.rainydays-annual-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 600px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.rainydays-annual-table thead {
  background: linear-gradient(to right, #4facfe, #00f2fe);
  color: #fff;
}

.rainydays-annual-table th,
.rainydays-annual-table td {
  text-align: left;
  padding: 2px 8px;
  border-bottom: 1px solid #eee;
}

.rainydays-annual-table tbody tr:hover {
  background-color: #f5faff;
}

/* Graph section */
.rainydays-annual-graph {
  flex: 1;
  min-width: 300px;
  max-width: 900px;
  text-align: center;
  background: #f0f8ff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 153, 255, 0.1);
}

.rainydays-annual-graph img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.rainydays-annual-graph img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(0, 153, 255, 0.2);
}

/* Heading */
/* h3 {
  font-size: 1.6rem;
  color: #003366;
  font-weight: 600;
  margin-bottom: 20px;
  border-left: 5px solid #00bfff;
  padding-left: 12px;
} */

/* Responsive tweaks */
@media (max-width: 768px) {
  .monthly-layout {
    flex-direction: column;
    gap: 20px;
  }

  .rainydays-annual-table {
    width: 100%;
  }

  .rainydays-annual-graph {
    width: 100%;
  }
}














/* Rainy Days Styling */
.rainydays-layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
}

.rainydays-table {
    border-collapse: collapse;
    width: 60%;
}





/* Monthly Rainy Days Form Container */
#rainydays-monthly-form {
  margin-top: 30px;
  padding: 20px;
  background: #f9fbff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.08);
  max-width: 600px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: auto;
}

/* Label Styling */
.rainydays-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #003366;
  margin-bottom: 8px;
}

/* Flex container for select + button */
.rainydays-monthly-form-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  
}

/* Select Dropdown */
.rainydays-select {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccddee;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #ffffff;
  color: #333;
  transition: border-color 0.3s ease;
  min-width: 250px;
}

.rainydays-select:focus {
  border-color: #00aaff;
  outline: none;
  box-shadow: 0 0 6px rgba(0, 170, 255, 0.2);
}

/* Submit Button */
.rainydays-button {
  padding: 10px 20px;
  background: linear-gradient(to right, #4facfe, #00f2fe);
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 153, 255, 0.2);
}

.rainydays-button:hover {
  background: linear-gradient(to right, #00d2ff, #3a7bd5);
  transform: translateY(-2px);
}

/* Responsive for smaller screens */
@media (max-width: 600px) {
  .rainydays-monthly-form-container {
    flex-direction: column;
    align-items: stretch;
  }

  .rainydays-button {
    width: 100%;
    text-align: center;
  }
}







.rainydays-table th, .rainydays-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.rainydays-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.rainydays-graph-container {
    flex: 1;
}
.rainydays-graph-container img {
    
}
.rainydays-graph {
    max-width: 75%;
    height: auto;
}

.rainydays-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;


}

/* .rainydays-select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
} */

.rainydays-button {
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.rainydays-button:hover {
    background-color: #0056b3;
}


/* *******************climatology info **************** */
/* Wrapper */
.climatology-info-wrapper {
  width: 70%;
  overflow-x: auto;
  margin: 20px 0;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Headings */
.climatology-info-heading {
  font-size: 1.8rem;
  text-align: center;
  margin-top: 30px;
  color: #0a3d62;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.climatology-info-period {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-bottom: 10px;
}

/* Table */
.climatology-info-table {
  width: 68%;
  margin: auto;
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  font-size: 0.95rem;
}

/* Headers */
.climatology-info-header-row th {
  background-color: #0a3d62;
  color: #ffffff;
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
  font-weight: 600;
}

/* Body */
.climatology-info-table td {
  border: 1px solid #e0e0e0;
  padding: 10px;
  text-align: center;
}

/* Annual row highlight */
.climatology-info-annual {
  background-color: #fdf3dc;
  font-weight: bold;
}

/* Color categories */
.climatology-info-blue {
  color: #2e86de;
  font-weight: 500;
}

.climatology-info-red {
  color: #e74c3c;
  font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .climatology-info-heading {
    font-size: 1.4rem;
  }

  .climatology-info-table {
    font-size: 0.85rem;
  }

  .climatology-info-table th,
  .climatology-info-table td {
    padding: 8px;
  }
}




/* ************************ default summary part ********************** */


.default_summary-container {
background: linear-gradient(145deg, rgba(230, 240, 243, 0.45), rgba(255, 255, 255, 0.45));
  border-radius: 2px;
  padding: 30px;
  max-width: 1100px;
  margin: auto;
  margin-top: -20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #2b2b2b;
  line-height: 1.8;
}

.default_summary-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #134b5f;
  border-bottom: 2px solid #a2c4c9;
  padding-bottom: 10px;
}

.default_summary-section p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.default_summary-subsection {
  margin-bottom: 25px;
  text-align: left;
}

.default_summary-subsection h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #206070;
  display: flex;
  align-items: center;
  gap: 8px;
}

.default_summary-subsection ul {
  margin: 10px 0 0 20px;
  padding: 0;
}

.default_summary-subsection li {
  margin-bottom: 8px;
  list-style: disc;
  font-size: 1.05rem;
}

.default_summary-conclusion {
  font-weight: 500;
  font-style: italic;
  color: #2a3d45;
  background: #f0f6f7;
  padding: 15px;
  border-left: 4px solid #4ea6b0;
  border-radius: 6px;
}




/* ***************** styles for the seasonal ****************** */
/* Wrapper for seasonal report */
.seasonal-summary-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 1000px;
    margin: 20px auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Heading */
.seasonal-title {
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    border-left: 4px solid #3498db;
    padding-left: 10px;
}

/* Table container */
.seasonal-table-wrapper {
    flex: 1 1 55%;
    max-width: 55%;
    overflow-x: auto;
}

/* Table styles */
.seasonal-rainfall-table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
    font-size: 13px;
    margin-top: 10px;
}

.seasonal-rainfall-table th,
.seasonal-rainfall-table td {
    padding: 6px 10px;
    border: 1px solid #ccc;
    text-align: center;
}

.seasonal-rainfall-table th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

.seasonal-rainfall-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Image container */
.seasonal-graph-container {
    flex: 1 1 40%;
    max-width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.seasonal-graph-container img.seasonal-rainfall-graph {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .seasonal-summary-wrapper {
        flex-direction: column;
    }

    .seasonal-table-wrapper,
    .seasonal-graph-container {
        max-width: 100%;
    }

    .seasonal-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .seasonal-rainfall-table th,
    .seasonal-rainfall-table td {
        font-size: 12px;
    }
}
