* { box-sizing: border-box;}

body{overflow-x: hidden; 

     background-color: #FAFAFA; 
     height: 100%;}
     
html {  font-family: "Lucida Sans", sans-serif; }

.errorpage {
  text-align: center;

}

.errorpage img{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 300px;
  height: 300px;
}

.errorpage a{
  position: relative;
  height: 30px;
  border:none;
  background-color: slateblue;
  font-size: 30px;
  border-radius: 0.3em;
  color:white;
  text-decoration: none;

}


/*++++++++++++++++++++++desktop+++++++++++++++++++++++++++++++++*/

/*@media only screen and (min-width: 813px) {*/



  .maps { 
    position: absolute;
    top:0px;
    left:0px;
    width: 99vw; 
    height: 99vh;
    z-index: 1;


  }

  .location_coordinates {
    position: absolute;
    z-index: 2;
    width: 60%;
    left: 20%;
    top: 5px;
    
  }
  .location_coordinates input, button, select {
    width: 150px;
    height: 40px;
    opacity: 0.95;
    border-radius: 5px;
    background-color: #212121;
    color: white;
    font-weight: bold;
     letter-spacing: 0.1em;
     border: none;
}

  .drawingtools {
    position: absolute;
    z-index: 2;
    width: 110px;
    left: 10px;
    top: 150px;
    
  }
  .drawingtools button {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(118, 152, 222, 0.25);
    margin: 5px;

  }

    .drawingtools img {
    width: 30px;
    height: 30px;
      }
  .gpslocation {
    position: absolute;
    z-index: 2;
    width: 110px;
    left: 50px;
    /*top: 10px;*/
    background-color: lightskyblue;
    border-radius: 4px;
    display: none;
  }

.drawingtools button.active {
    background-color: #4CAF50 !important;
    border-color: #2E7D32 !important;
}
/*-------------import-export------------------------------------*/
/*--------------------------------------------------------------*/

.sidemenu{
  position: absolute;
  top:100px;
  right: 10px;
  width: 50px;
  z-index: 3;
}
.sidemenu button{
  margin-bottom: 5px;
  width: 50px;
  height: 50px;
  overflow-wrap: break-word;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(118, 152, 222, 0.25);
  color: black;
}



.dataex, .dataim{
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 500px;
  height: 300px;
  font-size: 14px;
}

.typeco, .projco {
  
  width: 500px;
  background-color: white;
  padding: 10px;
  border-radius: 4px;
}

.typeco button, .projco button{
  border-radius: 4px;
  background-color: #f4511e;
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 14px;
  padding: 10px;
  width: 150px;
  height: 40px;
  cursor: pointer;
  margin: 5px;
}

.typeco a, .projco label{
  border-radius: 4px;
  background-color: #04AA6D;
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 14px;
  padding: 10px;
  width: 150px;
  height: 40px;
  cursor: pointer;
  margin: 5px;
  text-decoration: none;
  float: right;
}

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

/*-------------------------------------------------------------------------------*/
/*++++++++++++++++++++++++++ login syetem ++++++++++++++++++++++++++++++++++++++*/
/*-------------------------------------------------------------------------------*/

/* Form spacing without <br> tags */
.cf-turnstile {
    margin: 15px 0;
    display: block !important;
    width: 100% !important;
    position: relative;
    left: 0 !important;
}

/* Ensure the form field container is properly sized */
.form-field {
    position: relative;
    left: 25%;
    width: 50%;
    margin-bottom: 5px;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-separator {
    margin: 20px 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.clickable {
    cursor: pointer;
    text-decoration: underline;
}

/* Input styles */
.logsys input[type=text], .logsys input[type=password], .logsys input[type=email] {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #ccc;
  height: 35px;
  border-radius: .4em;
  box-sizing: border-box;
}

.logsys input[type=text]:focus, .logsys input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

/* Button styles */
.logsys .btn {
  width: 100%;
  background-color: #004883;
  color: white;
  padding: 5px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  opacity: 0.7;
  height: 40px;
  border-radius: 3em;
  box-sizing: border-box;
}

.logsys .btn:hover {
  opacity: 1;
}

/* Label styles */
.logsys label {
  display: block;
  margin-bottom: 5px;
}

/* Close button styles */
.btnhide, .btnclosechart, .btnhidechart{
  float: right;
  display: inline-block;
  background-color: RGB(146, 168, 209);
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 30px;
  height: 30px;
}

.btnhide img, .btnclosechart img{
  width: 20px;
  height: 20px;
}

/* Text styles */
.logsys p, .logsys h3 {
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 15px;
}

/* Modal container */
.log_div {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(146, 168, 209, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 90%;
  height: auto;
  max-height: 85vh;
  border-radius: 1em;
  box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 1.5;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Specific heights for different forms */
#logiform {
  min-height: 400px;
}

#regiForm {
  min-height: 500px;
}

#logoutdiv {
  min-height: 450px;
}

#changePasswordForm {
  min-height: 400px;
}

/* Account options */
.log_div .btnout{
  position: relative;
  left: 35%;
  height: 25px;
  width: 25px;
  background-color: RGB(146, 168, 209);
  border: none;
  cursor: pointer;
  border-radius: 3em;
}

.log_div select{
  height: 30px;
  width: 100px;
  border-radius: 1em;
}

.labelout img{
  height: 15px;
  width: 15px; 
  vertical-align: middle;
  margin-right: 8px;
}

.labelout {
  cursor: pointer;
  display: block;
  margin-bottom: 10px;
  padding: 5px 0;
}

/* Login/Logout buttons */
.login_btn {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px;
  background-color: lightgray;
  border: 1px solid blue;
  border-radius: 25px;
  opacity: 0.8;
  margin: 3px;
  cursor: pointer;
  display: block;
  z-index: 10;
}

.login_btn img{
  width: 25px;
  height: 25px;
}

.logout_btn {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px;
  background-color: rgb(147,112,219,0.5);
  border: 2px solid red;
  border-radius: 25px;
  margin: 3px;
  cursor: pointer;
  display: none;
  z-index: 10;
}

.logout_btn img{
  width: 25px;
  height: 25px;
}
/*----------------------------------------------------------------------------*/
/* Password field with eye icon */
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    padding-right: 40px !important; /* Space for eye icon */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password img {
    width: 20px;
    height: 20px;

}

.toggle-password:hover img {
    opacity: 1;
}


/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

/*--------------------------------------------------------------------------*/
.profil {
    position: fixed; /* Change from absolute to fixed */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: auto;
    background-color: white;
    z-index: 1000;
    display: none;
    padding: 20px;
}
.chartcanva {
    max-height: 300px;
    width: 100% !important; /* Ensure chart takes full width */
    height: 300px !important; /* Fixed height for consistency */
}
 .btnhide, .btnclosechart, .btnhidechart{
  float:right;
  display:inline-block;
  background-color: RGB(146, 168, 209);
  border: none;
  cursor: pointer;
  padding: 5px;
}
.btnhide img,.btnclosechart img{
width: 20px;
height: 20px;

}
/*--------------------------------------------------------------------------*/
/*+++++++++++++++++info-about us +++++++++++++++++++++++++++++++++++++++++*/
/* Layer Switcher Popup */
.layer-switcher-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layer-popup-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    width: 90%;
    text-align: center;
}

.layer-popup-content h3 {
    margin: 0 0 20px 0;
    color: black;
    font-size: 20px;
}

.layer-option {
    width: 100%;
    padding: 15px;
    margin: 8px 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: black; 
}

.layer-option:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-2px);
}

.layer-option.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.layer-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.layer-close-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    background: #6c757d;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.layer-close-btn:hover {
    background: #5a6268;
}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

/* Modern Compact Coordinate Converter */
.convert, .gotogps {
    display: none;
    position: absolute;
    top: 50px;
    right: 80px;
    z-index: 2;
    width: 380px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Close button */
.convert img, .gotogps img {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.convert img:hover, .gotogps img:hover {
    opacity: 1;
}

/* Section headers */
.convert p, .gotogps p {
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.convert p:first-of-type, .gotogps p:first-of-type {
    margin-top: 0;
    font-size: 14px;
    font-weight: 700;
    color: #3498db;
    text-align: center;
    margin-bottom: 15px;
}

/* Compact form elements */
.convert select, .gotogps select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1.5px solid #e1e8ed;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 13px;
    color: #2c3e50;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.convert select:focus, .gotogps select:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.convert input[type="text"], .gotogps input[type="text"] {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1.5px solid #e1e8ed;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 13px;
    color: #2c3e50;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.convert input[type="text"]:focus, .gotogps input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

/* Radio buttons - compact */
.convert label {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #5a6c7d;
}

.convert input[type="radio"] {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

/* DMS grid - compact */
.convert #xd, .convert #xm, .convert #xs, 
.convert #yd, .convert #ym, .convert #ys {
    display: none;
    width: 28%;
    margin-right: 1px;
    height: 28px;
    font-size: 12px;
}

/* Main action buttons row */
.button-row {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    align-items: center;
}

/* Convert button - takes most space */
.convert #clear {
    flex: 1;
    height: 36px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.convert #clear:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Small square action buttons */
.action-buttons {
    display: flex;
    gap: 6px;
}

.square-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

/* Pick from Map button */
#pickFromMap {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

#pickFromMap:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

/* Show on Map button */
#showOnMap {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    /*display: none;*/
}

#showOnMap:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Output fields */
.convert input[type="text"]#xout,
.convert input[type="text"]#yout {
    background: linear-gradient(135deg, #fff9c4 0%, #f1f8e9 100%);
    border-color: #c5e1a5;
    font-weight: 600;
    color: #2e7d32;
    font-size: 12px;
}

/* GPS Go To buttons - compact */
.gotogps .startgo, .gotogps .stopgo {
    height: 36px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gotogps .startgo {
    width: 48%;
    margin-right: 4%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.gotogps .stopgo {
    width: 48%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.gotogps .startgo:hover, .gotogps .stopgo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Section dividers */
.convert p:nth-of-type(3),
.convert p:nth-of-type(5),
.gotogps p:nth-of-type(2) {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(52, 152, 219, 0.15);
}

/* Animation */
.convert, .gotogps {
    animation: slideInUp 0.25s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}






