/*
 * --------------------------------------------------------------------
 * File: \public\css\main.css
 * Created: Wednesday, 25th September 2024 1:40:45 pm
 * Modified: Wednesday, 25th September 2024 1:40:45 pm
 * Author: Mohamed Kamil Bin Mansor
 * 
 * Copyright (c) 2024 - System Consultancy Services Sdn. Bhd.
 * --------------------------------------------------------------------
 */

body {
  background-image: url(/img/wallpaper/sc9.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0);
  margin: 0;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Media Query for Smaller Screens */
@media (max-width: 1920px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 10px;
  }

  .header {
    font-size: 1.5rem;
  }
}

@media (max-width: 1344px) {
  body {
    font-size: 12px;
  }

  .container {
    padding: 8px;
  }

  .header {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 12px;
  }

  .container {
    flex-direction: column;
  }

  .header {
    font-size: 1.2rem;
  }
}

/* Disable user selection */
#root.div {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  outline: none;
}

footer {
  color: lightgray;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
}
footer a {
  color: lightgray;
  text-decoration: none;
}

ul {
  list-style-type: none; /* Removes the bullet points */
  padding: 0; /* Optional: Removes the default left padding */
  margin: 0; /* Optional: Removes the default margin */
}

.custom-link {
  cursor: pointer; /* Change cursor to pointer */
  text-decoration: none; /* Remove underline */
  color: inherit; /* Inherit color from parent */
}

.custom-link:hover {
  color: blue; /* Change color on hover if desired */
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

.draggable {
  cursor: grab;
}

.draggable .no-drag {
  cursor: default;
}

/* map popup */
table.map_popup {
  border-collapse: collapse; /* No cellspacing */
  border: none; /* No border */
}

table.map_popup td,
table th {
  padding: 0; /* No cellpadding */
  border: none; /* No cell border */
  text-align: left;
  vertical-align: top;
}

table.map_popup td.map_data {
  color: darkorange;
}

table.map_popup td.map_colon {
  width: 20px;
  text-align: center;
}

/* side menu */
.side_content_header {
  background-color: rgba(64, 64, 255, 0.8); /* Low opacity background */
  color: yellow;
  text-align: center;
  margin: 4px;
  padding: 0px; /* Padding inside the card */
  border-radius: 5px; /* Rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Shadow for depth */
  transition: background-color 0.3s; /* Smooth transition effect */
  border: 1px solid rgba(255, 255, 255, 0.5); /* Solid border with low opacity */
  font-size: 1.2em;
  opacity: 0.8;
}

.side_content_card {
  background-color: rgba(255, 255, 255, 0.1); /* Low opacity background */
  color: white;
  text-align: left;
  margin: 4px;
  padding: 0.5em; /* Padding inside the card */
  border-radius: 5px; /* Rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Shadow for depth */
  transition: background-color 0.3s; /* Smooth transition effect */
  cursor: pointer; /* Change cursor to pointer */
  text-transform: uppercase;
}

.side_content_card:hover {
  background-color: rgba(64, 64, 255, 0.5); /* Darken background on hover */
}

.side_content_card_selected {
  color: white;
  text-align: left;
  margin: 4px;
  padding: 0.5em; /* Padding inside the card */
  border-radius: 5px; /* Rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Shadow for depth */
  transition: background-color 0.3s; /* Smooth transition effect */
  cursor: pointer; /* Change cursor to pointer */
  background-color: rgba(32, 32, 255, 0.7); /* Darken background on hover */
  text-transform: uppercase;
}

.side_content_card_inactive {
  background-color: rgba(255, 255, 255, 0.1); /* Low opacity background */
  color: white;
  text-align: center;
  margin: 4px;
  padding: 0.5em; /* Padding inside the card */
  border-radius: 5px; /* Rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Shadow for depth */
  transition: background-color 0.3s; /* Smooth transition effect */
  text-transform: uppercase;
}

/* Style for the scrollbar track (the rail) */
::-webkit-scrollbar {
  width: 0.5em; /* Adjust the width of the scrollbar */
}

/* Style for the scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3); /* Lighter scrollbar thumb */
  border-radius: 0.5em; /* Rounded scrollbar thumb */
}

/* Hover effect for the scrollbar thumb */
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5); /* Darker on hover */
}

/* Optional: Scrollbar corner if there is both vertical and horizontal scrolling */
::-webkit-scrollbar-corner {
  background-color: transparent; /* Make it transparent */
}

/* Left pane: List of files */
.container {
  display: flex; /* Create a flex container for the two panes */
  white-space: nowrap; /* Prevent content from wrapping to the next line */
  overflow-x: auto; /* Enable horizontal scrolling if content exceeds the div's width */
}

.left-pane {
  padding: 0.6em;
  overflow-y: auto; /* Enable vertical scrolling */
}

.right-pane {
  flex-grow: 1; /* Make the right pane take up the remaining space */
}

.file-list {
  text-transform: uppercase;
}

.file-list ul {
  list-style-type: none;
  padding: 0;
}

.file-list li {
  padding: 0.6em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.file-list li:hover {
  background-color: rgba(64, 64, 255, 0.5);
}

.file-selected{
  background-color: rgba(32, 32, 255, 0.7);
}

.custom-search-widget {
  z-index: 9999; /* Ensure it's higher than LayerList */
}

/* GisRightTableStyles.css( THIS STYLE IS MOSTLY FOR GIS THAT DOESNT CONTAIN A LONG NAME/KATEGORI) */

.gis-right-table {
  border-collapse: collapse;/* Ensure it takes the full width of the container */
  margin: 0.6em 0;
  width:100%;
  font-family: Arial, sans-serif;
  background-color: rgba(0, 0, 0, 0.3); /* Dark blue background for the entire table */
  
}

.gis-right-table th {
  border: 1px solid #000000;
  padding: 0.6em;
  font-size: 0.98em;
  color: white; /* White text for body cells */
  text-align: left;
  background-color: #005a8d; /* Slightly lighter dark blue for header */
}

.gis-right-table td {
  border: 1px solid #000000;
  max-width: 50%;
  padding: 0.6em;
  font-size: 0.925em;
  color: white; /* White text for body cells */
}

.gis-right-table th.center{
  text-align: center;
}


.gis-right-table td.left {
  text-align: left;
  padding: 0.5em;
}

.gis-right-table td.center {
  text-align: center;
}

.gis-right-table .total-row {
  font-weight: bold;
  font-size: 0.925em;
  background-color: #005a8d
}

.gis-right-table .total-cell {
  font-weight:bold;
  font-size: 0.925em;
  background-color: #005a8d;
}

/* RT TABLE*(THIS STYLE HAS A FIXED WIDTH, USUALLY USED FOR MODULES THAT HAS LONG SUBMODULE NAMES/CATEGORIES) */

.rt-right-table {
  border-collapse: collapse;
  width: 100%; /* Ensure it takes the full width of the container */
  margin: 0px 0;
  font-family: Arial, sans-serif;
  background-color: rgba(0, 0, 0, 0.3); /* Dark blue background for the entire table */
  table-layout: fixed; /* Ensures table fits within the container */
}

.rt-right-table th,
.rt-right-table td {
  border: 1px solid #000000;
  text-align: center;
  padding: 0.6em;
  color: white; /* White text for body cells */
}

.rt-right-table th {
  background-color: #005a8d; /* Slightly lighter dark blue for header */
  font-size: 0.98em;
}

.rt-right-table td {
  font-size: 0.925em;
}

.rt-right-table .bp-column {
  width: 16%; /* Adjust the width as needed */
  font-size: 0.8em;
}

.rt-right-table .mukim-column {
  width: 50%; /* Adjust the width as needed */
  text-align: left;
  text-transform: capitalize;
  font-size: 0.7em;
}

.rt-right-table .luas-column {
  width: 25%; /* Adjust the width as needed */
  font-size: 0.7em;
}

.rt-right-table .percent-column {
  width: 20%; /* Adjust the width as needed */
  font-size: 0.7em;
}

.rt-right-table .total-row {
  font-weight: bold;
  text-align: left;
  font-size: 0.7em;
  background-color: #005a8d
}

.rt-right-table .total-cell {
  font-weight:bold;
  font-size: 0.7em;
  background-color: #005a8d;
}

.bintang {
  color: whitesmoke;
  font-size: 0.7em;
  text-align: left;
  font-style: italic;
}

/* Specific styles for CadanganGunaTanahTable */
.rt-right-table.cadangan {
  height: auto;
  overflow: auto;
}

.rt-right-table.cadangan th,
.rt-right-table.cadangan td {
  text-align: left; /* Left align category column */
}

.rt-right-table.cadangan td {
  text-align: right; /* Right align luas and percentage columns */
}

/*Kemudahan Masyarakat*/
:root {
  --card-bg-color: hsla(224, 82%, 28%, 0.753);
  --text-color: #ffffff;
  --icon-size: 2.5em; /* 40px */
  --padding: 0.625em; 
  --padding-left: 1.325em;
  --padding-right: 1.325em;
  --border-radius: 0.625em; /* 10px */
  --box-shadow: 0 0.125em 0.3125em rgba(0, 0, 0, 0.15); /* 2px 5px */
} 
/*Media Query*/
@media (max-width : 1344px) {
  :root {
    --padding: 0.425em
  }
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

.cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.225em; /* Adjust the gap between cards as needed */
  padding-top: 1em; /* Additional spacing from the top */
}

.card {
  display: flex;
  align-items: center;
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius);
  padding: var(--padding);
  padding-left: var(--padding-left);
  padding-right: var(--padding-right);
  width: 80%; /* 250px */
  box-shadow: var(--box-shadow);
  color: var(--text-color);
  opacity: 0; /* Start with opacity 0 */
  animation: fadeIn 0.7s forwards; /* Apply the fade-in animation */
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
  background-color: var(--icon-bg-color);
  margin-right: 0.625em; /* 10px */
}

.icon {
  width: 1.25em; /* 20px */
  height: 1.25em; /* 20px */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.text-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  font-size: 1em; /* 14px */
}

.number {
  font-size: 1.1em; /* 24px */
  font-weight: bold;
}

.more-options {
  font-size: 1.5em; /* 24px */
  text-align: center;
}

@media screen and (max-width: 1344px) {
  .icon-container {
    margin-right: 0.3em;
  }

  .card {
    width: 11.5rem;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }

  .title {
    font-size: 1em;
  }

  .number {
    font-size: 1.325em;
  }

  .more-options {
    font-size: 1em;
  }
}