/* Basic Reset and Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 4px;
    --disabled-bg: #e9ecef; /* Background color for disabled inputs */
    --disabled-text: #6c757d; /* Text color for disabled inputs */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* Adjusted Container for 50% width */
.container {
    max-width: 50%; /* Updated to make content occupy 50% of the page width */
    margin: auto;
    padding: 0 20px;
}

/* Styling for Disabled Inputs (Latitude and Longitude) */
input[type="text"][disabled] {
    background-color: var(--disabled-bg);
    color: var(--disabled-text);
    cursor: not-allowed;
}

/* Existing CSS for other elements continues... */


/* Header with Logo Placeholder */
.header {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.logo-placeholder {
    width: 180px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border-radius: var(--border-radius);
}

/* Styling Form Elements */
label {
    margin: 15px 0 5px;
    display: block;
    font-weight: bold;
}

input[type="number"],
input[type="text"],
select,
button {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #221f79;
    border-radius: var(--border-radius);
    box-sizing: border-box;
}

input[type="submit"],
button {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #221f79;
    border-radius: var(--border-radius);
    box-sizing: border-box;
}

input[type="submit"]:hover,
button:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* Results Section */
#results {
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #343a40;
        color: #f8f9fa;
    }

    #results, input[type="number"], input[type="text"], select {
        background-color: #495057;
        color: #f8f9fa;
        border: 1px solid #ced4da;
    }

    .header {
        background: #495057;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .full-width {
        grid-column: 1 / -1;
    }
}


