/* Integrity Storm Checker Styles v1.1.0 */
.isc-container {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    background-color: #ffffff;
    max-width: 700px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.isc-input-section {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 15px;
    gap: 10px;
}

.isc-input-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    flex-basis: 100%;
    color: #333;
}

#isc-address-input {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 200px;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #fdfdfd;
}
#isc-address-input:disabled {
    background-color: #eee;
    cursor: not-allowed;
}


#isc-check-button {
    padding: 10px 18px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1rem;
    line-height: 1.5;
    height: auto;
}

#isc-check-button:hover {
    background-color: #005a87;
}
#isc-check-button:disabled {
    background-color: #a0a5aa;
    cursor: not-allowed;
}

#isc-map {
    width: 100%;
    height: 400px; /* Increased height slightly */
    background-color: #e9e9e9;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    position: relative;
}
/* Style for message inside map div when API key missing */
.isc-map-notice {
    text-align: center;
    padding: 40px 20px;
    color: #555;
    font-style: italic;
}

#isc-results {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#isc-results h2 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #222;
}

#isc-results-list {
    /* Container for the report items */
}

/* Style for individual report items */
.isc-event-item {
    margin: 10px 0;
    padding: 12px 15px;
    line-height: 1.6;
    font-size: 1rem;
    background-color: #f8f8f8;
    border: 1px solid #eee;
    border-left: 4px solid #0073aa; /* Accent border */
    border-radius: 3px;
    color: #333;
}
.isc-event-item:first-child {
    margin-top: 0;
}
.isc-event-item:last-child {
    margin-bottom: 0;
}
.isc-event-index {
    font-weight: bold;
    margin-right: 8px;
    color: #0073aa;
}
.isc-event-distance {
    font-size: 0.9em;
    color: #666;
    margin-left: 5px;
    white-space: nowrap;
}

/* Placeholder and Status Messages */
.isc-results-placeholder,
.isc-no-results {
    font-style: italic;
    color: #555;
    padding: 10px 0;
}
.isc-error-message {
     background-color: #fff0f0;
     border: 1px solid #ffcccc;
     border-left-width: 4px;
     border-left-color: #cc0000;
     color: #cc0000;
     font-weight: bold;
     padding: 12px 15px;
     margin: 5px 0;
     border-radius: 3px;
}

.isc-status-message {
    flex-basis: 100%;
    text-align: left;
    padding: 5px 0;
    font-style: italic;
    color: #555;
    margin-top: 5px;
    font-size: 0.9em;
}
.isc-status-message.isc-error {
    color: red;
    font-weight: bold;
}

/* InfoWindow Styles */
.isc-infowindow {
    font-size: 0.95em;
    line-height: 1.5;
    min-width: 180px;
}
.isc-infowindow strong {
    color: #005a87;
}


/* Responsive adjustments */
@media (min-width: 600px) {
    .isc-input-section label {
       flex-basis: auto;
       margin-bottom: 0;
       margin-right: 10px;
       align-self: center;
    }
    #isc-address-input {
        min-width: 250px;
    }
}

/* Google Places Autocomplete dropdown */
.pac-container {
    z-index: 9999 !important;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border-top: 1px solid #d9d9d9;
    font-family: inherit;
}
.pac-item { padding: 8px 12px; font-size: 0.95rem; cursor: pointer; border-top: 1px solid #f1f1f1; }
.pac-item:first-child { border-top: none; }
.pac-item:hover { background-color: #f5f5f5; }
.pac-item-query { font-weight: bold; }
