* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.8em;
}

/* Message Boxes */
.info-box,
.success-box,
.error-box,
.warning-box {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.info-box {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
}

.success-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.error-box {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
}

input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

/* Buttons */
button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    margin-right: 10px;
}

button:hover {
    background: #2980b9;
}

button.secondary {
    background: #95a5a6;
}

button.secondary:hover {
    background: #7f8c8d;
}

input[type="submit"] {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s;
}

input[type="submit"]:hover {
    background: #229954;
}

.copy-button {
    margin-top: 10px;
    background: #6c757d;
}

.copy-button:hover {
    background: #5a6268;
}

.time-format-toggle {
    background: #6c757d;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
}

.time-format-toggle:hover {
    background: #5a6268;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* Utility */
.help-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

.url-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
}

/* Status Messages */
#location-status,
#geocode-status {
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    display: none;
}

#location-status.success,
#geocode-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#location-status.error,
#geocode-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #666;
}

.footer ul {
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.5em;
    }

    .button-row {
        flex-direction: column;
    }

    button {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
