body {
    font-family: Arial, sans-serif;
    background-color: #444; /* Dark background outside the window */
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh; /* Ensures the background covers the whole screen */
    box-sizing: border-box;
}

/* This is the new container styling */
.app-window {
    background-color: #fed;
    width: 320px;
    padding: 15px;
    border: 4px solid #333;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    padding: 5px 0 15px 0;
    width: 100%;
    margin-bottom: 10px;
    border-bottom: 1px solid #e0d0c0; /* Subtle line under header */
}

header h1 {
    margin: 0;
    font-size: 1rem;
}

header h2 {
    margin: 0;
    font-style: italic;
    font-size: 0.8rem;
}

.form-group {
    margin: 5px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    font-size: 0.8rem;
}

label {
    font-weight: bold;
    margin-bottom: 2px;
}

#timezone {
    width: 222px;
}

input[type="text"],
select {
    width: 100%;
    padding: 3px;
    font-size: 0.8rem;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 5px;
}

.small-font {
    font-size: 0.6rem;
    margin: 0 15px 10px;
}

button {
    margin: 5px 0;
    padding: 5px 10px;
    font-size: 0.8rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.button-container {
    display: flex;
    gap: 30px;
    /* Space between buttons */
}

#output {
    width: 100%;
    background-color: #fff;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-top: 5px;
    min-height: 300px;
    font-family: "Consolas", "Liberation Mono", "Courier New", monospace;
    font-size: 0.8rem;
    overflow-y: auto;
    box-sizing: border-box;
}

.two-columns {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
}

.two-columns input,
.two-columns select {
    width: 100%; /* Let flexbox handle the split */
}

/* Helper to ensure the 50% split in two-columns works with gaps */
.two-columns > div {
    width: 50%;
}

.inline {
    display: inline-flex;
    align-items: center;
}

.inline label {
    margin-right: 8px;
    white-space: nowrap;
}

.form-group-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.form-group-inline label {
    margin-right: auto;
}

/* --- PRINT STYLES --- */
@media print {
    body {
        background-color: white;
        color: black;
        width: 100%;
        margin: 0;
        padding: 0;
        display: block;
    }

    /* Remove the window look for printing */
    .app-window {
        width: 100%;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .button-container,
    #googleMapsLink,
    .small-font,
    header h2 {
        display: none !important;
    }

    input[type="text"],
    select {
        border: none;
        background: transparent;
        appearance: none;
        -webkit-appearance: none;
        padding: 0;
        font-weight: bold;
        color: black;
    }

    #output {
        border: none;
        overflow: visible;
        height: auto;
        min-height: 0;
        margin-top: 20px;
        font-size: 10pt;
        font-family: "Times New Roman", serif;
    }

    .form-group {
        margin: 0;
        border-bottom: 1px solid #ddd;
        padding-bottom: 5px;
        margin-bottom: 10px;
    }
}