/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .nav a {
    color: #fff;
    margin-right: 1rem;
    text-decoration: none;
}

.header .nav a:last-child {
    margin-right: 0;
}

.header .nav a:hover {
    text-decoration: underline;
}

/* Content Section */
.content {
    flex: 1;
    display: flex;
    padding: 1.5rem;
    gap: 1.5rem;
}

.map-container {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

#map {
    background: linear-gradient(45deg, #ddd, #ccc);
    border: 1px solid #bbb;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#leafletCoordinates {
    position: absolute;
    width: 150px;
    text-align: center;
    right: 0px;
    bottom: 20px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
}

.controls {
    flex: 1;
    background: #fff;
    border: 1px solid #bbb;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.controls h2 {
    margin-bottom: 1rem;
}

.btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#copyButton {
    background-color: #ff7800;
    margin: 5px 0px;
}

#copyButtonStandard {
    background-color: #ff7800;
    margin: 5px 0px;
}

#downloadGeojson {
    background-color: #ff7800;
    margin: 5px 0px;
    width: 50%;
}

#copyDynamicCoordinateButton {
    background-color: #007BFF;
    margin: 5px 0px;
}

.btn:hover {
    opacity: 0.8;
}

h3 {
    display: flex;
    gap: 2%;
    margin: 5px 0px;
}

#coordinateDecimalPlaces {
    flex-grow: 1;
    width: auto;
    text-align: right;
    font-size: 0.8em
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

/* General form styling */
form#geojsonForm {
    width: 100%;
    max-width: 400px;
    margin: 5px auto; /* Center the form */
    padding: 20px;
    background-color: #f9f9f9; /* Light background */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    font-family: Arial, sans-serif;
}

/* File input styling */
#geojsonFile {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Inner shadow */
    transition: border-color 0.2s ease-in-out;
}

#geojsonFile:hover,
#geojsonFile:focus {
    border-color: #007BFF; /* Highlight border on hover/focus */
    outline: none;
}

/* Button styling */
#uploadButton {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease-in-out;
}

#uploadButton:hover {
    background-color: #0056b3;
}