/* 
 * Geo Report Plugin Styles
 * Mobile-responsive CSS for all plugin components
 * No inline styles allowed - all styling handled here
 */

/* =============================================================================
   Base Styles & CSS Reset
   ============================================================================= */

.geo-report-container * {
    box-sizing: border-box;
}

.geo-report-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* =============================================================================
   Two-Field Address Search Styles
   ============================================================================= */

.geo-report-two-field-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.geo-report-field-group {
    position: relative;
}

.geo-report-field-group input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.geo-report-field-group input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
    outline: none;
}

.geo-report-field-group input:required:invalid {
    border-color: #dc2626 !important;
}

.geo-report-field-group input:required:valid {
    border-color: #16a34a !important;
}

@media (min-width: 768px) {
    .geo-report-two-field-container {
        flex-direction: row;
        gap: 12px;
    }
    
    .geo-report-field-group {
        flex: 1;
    }
}

/* =============================================================================
   Admin Settings Styles
   ============================================================================= */

.geo-report-admin .nav-tab-wrapper {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccd0d4;
}

.geo-report-admin .nav-tab {
    font-weight: 600;
    padding: 12px 16px;
    margin-right: 8px;
    background: #f1f1f1;
    border: 1px solid #ccd0d4;
    border-bottom: none;
    color: #0073aa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.geo-report-admin .nav-tab:hover {
    background: #e6f3ff;
    color: #005a87;
}

.geo-report-admin .nav-tab-active {
    background: #fff;
    border-color: #ccd0d4 #ccd0d4 #fff;
    color: #000;
    position: relative;
    z-index: 1;
}

.geo-report-settings-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-top: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.geo-report-admin .form-table th {
    width: 200px;
    padding: 15px 10px 15px 0;
    font-weight: 600;
    color: #23282d;
}

.geo-report-admin .form-table td {
    padding: 15px 10px;
}

.geo-report-admin .regular-text {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.geo-report-admin .regular-text:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.geo-report-admin .description {
    font-style: italic;
    color: #666;
    font-size: 13px;
    margin-top: 5px;
    line-height: 1.4;
}

/* =============================================================================
   Overlay Styles (Phase 2)
   ============================================================================= */

.geo-report-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: geoReportFadeIn 0.3s ease-out;
}

@keyframes geoReportFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.geo-report-overlay-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    animation: geoReportSlideUp 0.4s ease-out 0.1s both;
}

@keyframes geoReportSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.geo-report-overlay h2 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

.geo-report-overlay p {
    margin: 0 0 30px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

/* Close button for overlay */
.geo-report-overlay .geo-report-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.geo-report-overlay .geo-report-close-btn:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

.geo-report-button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.geo-report-button {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-report-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 115, 170, 0.3);
    background: linear-gradient(135deg, #005a87 0%, #004266 100%);
    color: #fff;
    text-decoration: none;
}

.geo-report-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.2);
}

.geo-report-button.primary {
    grid-column: span 2;
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
    font-size: 18px;
    padding: 20px;
}

.geo-report-button.primary:hover {
    background: linear-gradient(135deg, #219a52 0%, #1e8449 100%);
    box-shadow: 0 8px 16px rgba(39, 174, 96, 0.3);
}

.geo-report-button.government {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.geo-report-button.government:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 8px 16px rgba(231, 76, 60, 0.3);
}

/* =============================================================================
   Fluent Support Modal Styles
   ============================================================================= */

body.geo-report-modal-open {
    overflow: hidden;
}

.geo-report-modal-hidden {
    display: none !important;
}

/* Loading and Error States for Ticket Form */
.geo-loading, .geo-error {
    text-align: center;
    padding: 40px 20px;
}

.geo-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.geo-error {
    background: #fee;
    border: 1px solid #dc3232;
    border-radius: 6px;
    color: #dc3232;
}

.geo-error h3 {
    margin-top: 0;
    color: #dc3232;
}

.geo-error a {
    color: #dc3232;
    text-decoration: underline;
}

/* Ticket Form Container */
.geo-report-create-ticket-container {
    min-height: 400px;
}

.geo-report-create-ticket-container iframe {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* City Reports Dashboard - Inline Display */
.geo-report-city-dashboard {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.city-dashboard-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.city-dashboard-header h3 {
    margin: 0;
    font-size: 24px;
    color: #1f2937;
}

.city-dashboard-header p {
    margin: 5px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

.geo-report-create-ticket-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.geo-report-create-ticket-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.geo-report-create-ticket-btn:active {
    transform: translateY(0);
}

.geo-report-inline-dashboard {
    min-height: 400px;
    background: #f9fafb;
    border-radius: 6px;
    padding: 20px;
}

/* =============================================================================
   City Dashboard Styles (No Modal System)
   ============================================================================= */

.geo-report-city-dashboard {
    padding: 20px;
    background: #ffffff;
    border-radius: 6px;
}

.city-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.city-dashboard-header h3 {
    margin: 0;
    font-size: 24px;
    color: #111827;
}

.city-dashboard-header p {
    margin: 5px 0 0 0;
    color: #6b7280;
}

.city-dashboard-content {
    background: #f8fafc;
    border-radius: 6px;
    padding: 20px;
}

@media (max-width: 1024px) {    
    .city-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 782px) {
    .city-dashboard-header h3 {
        font-size: 20px;
    }
    
    .geo-report-create-ticket-btn {
        width: 100%;
        text-align: center;
    }
    
    .geo-report-inline-dashboard {
        padding: 15px;
    }
}

/* =============================================================================
   Loading Spinner Styles
   ============================================================================= */

.geo-report-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 115, 170, 0.3);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: geoReportSpin 1s ease-in-out infinite;
    margin: 20px auto;
}

@keyframes geoReportSpin {
    to {
        transform: rotate(360deg);
    }
}

.geo-report-loading-text {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* =============================================================================
   Location Popup Styles (Phase 3)
   ============================================================================= */

.geo-report-location-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: geoReportFadeIn 0.3s ease-out;
}

.geo-report-location-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.geo-report-location-popup h3 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 22px;
    text-align: center;
}

.geo-report-location-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.geo-report-location-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.geo-report-location-option:hover {
    border-color: #0073aa;
    background: #e6f3ff;
    transform: translateY(-2px);
}

.geo-report-location-option h4 {
    margin: 0 0 8px;
    color: #0073aa;
    font-size: 18px;
}

.geo-report-location-option p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* =============================================================================
   Address Search Styles
   ============================================================================= */

.geo-report-address-search {
    margin: 20px 0;
}

.geo-report-address-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.geo-report-address-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.geo-report-address-suggestions {
    background: #fff;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.geo-report-address-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease;
}

.geo-report-address-suggestion:hover {
    background: #f8f9fa;
}

.geo-report-address-suggestion:last-child {
    border-bottom: none;
}

/* =============================================================================
   House Number Popup Styles
   ============================================================================= */

.geo-report-house-number-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    min-width: 300px;
}

.geo-report-house-number-popup h4 {
    margin: 0 0 15px;
    color: #2c3e50;
    text-align: center;
}

.geo-report-house-number-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
}

.geo-report-house-number-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.geo-report-house-number-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.geo-report-house-number-buttons .confirm {
    background: #27ae60;
    color: #fff;
}

.geo-report-house-number-buttons .skip {
    background: #95a5a6;
    color: #fff;
}

/* =============================================================================
   Mobile Responsive Styles
   ============================================================================= */

@media (max-width: 768px) {
    .geo-report-overlay-content {
        padding: 30px 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .geo-report-overlay h2 {
        font-size: 20px;
    }
    
    .geo-report-button-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .geo-report-button.primary {
        grid-column: span 1;
    }
    
    .geo-report-button {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 50px;
    }
    
    .geo-report-location-content {
        padding: 20px 15px;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .geo-report-location-popup h3 {
        font-size: 18px;
    }
    
    .geo-report-location-option {
        padding: 15px;
    }
    
    .geo-report-location-option h4 {
        font-size: 16px;
    }
    
    /* Admin styles for mobile */
    .geo-report-admin .nav-tab {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
        text-align: center;
    }
    
    .geo-report-admin .form-table th,
    .geo-report-admin .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .geo-report-admin .form-table th {
        padding-bottom: 5px;
    }
    
    .geo-report-admin .regular-text {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .geo-report-overlay-content {
        padding: 20px 15px;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .geo-report-overlay h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .geo-report-overlay p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .geo-report-button {
        padding: 12px 14px;
        font-size: 14px;
        min-height: 45px;
    }
    
    .geo-report-house-number-popup {
        width: calc(100% - 40px);
        min-width: auto;
        margin: 20px;
    }
}

/* =============================================================================
   Accessibility Styles
   ============================================================================= */

.geo-report-button:focus,
.geo-report-location-option:focus {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

.geo-report-address-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

/* Screen reader only content */
.geo-report-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================================================
   Animation Utilities
   ============================================================================= */

.geo-report-fade-in {
    animation: geoReportFadeIn 0.3s ease-out;
}

.geo-report-slide-up {
    animation: geoReportSlideUp 0.4s ease-out;
}

.geo-report-pulse {
    animation: geoReportPulse 2s infinite;
}

@keyframes geoReportPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* =============================================================================
   API Testing Styles
   ============================================================================= */

.api-test-section {
    background: #f9f9f9;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.api-test-button {
    background: #0073aa;
    color: white;
    padding: 8px 16px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.api-test-button:hover {
    background: #005a87;
}

.api-test-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#test-results {
    margin-top: 15px;
    padding: 10px;
    min-height: 50px;
    border-radius: 3px;
    background: #fff;
    border: 1px solid #ddd;
}

.test-success {
    color: #28a745;
}

.test-error {
    color: #dc3545;
}

#test-results pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 3px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin: 10px 0 0 0;
}

/* =============================================================================
   API Documentation Styles
   ============================================================================= */

.endpoint-docs {
    margin: 20px 0;
}

.endpoint-item {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 4px;
}

.endpoint-header {
    background: #f1f1f1;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.endpoint-method {
    background: #0073aa;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 10px;
    font-weight: bold;
}

.endpoint-method.get {
    background: #28a745;
}

.endpoint-method.post {
    background: #0073aa;
}

.endpoint-method.put {
    background: #ffc107;
    color: #000;
}

.endpoint-method.delete {
    background: #dc3545;
}

.endpoint-url {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.endpoint-content {
    padding: 15px;
    display: none;
}

.endpoint-content.active {
    display: block;
}

.endpoint-description {
    margin-bottom: 15px;
    color: #666;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.param-table th,
.param-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.param-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.param-required {
    color: #dc3545;
    font-weight: bold;
}

.param-optional {
    color: #28a745;
}

/* =============================================================================
   Form Validation Styles
   ============================================================================= */

.validation-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 2px rgba(220, 53, 69, 0.8);
}

.validation-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 2px rgba(40, 167, 69, 0.8);
}

/* =============================================================================
   Network Admin Styles
   ============================================================================= */

.geo-report-network-admin .nav-tab-wrapper {
    margin-bottom: 20px;
}

.geo-report-network-admin .tab-content {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
}

.geo-report-network-admin .nav-tab {
    cursor: pointer;
}

.geo-report-network-admin .form-table th {
    padding-left: 0;
}

/* =============================================================================
   Batch Processing Styles
   ============================================================================= */

.geo-report-admin .geo-report-statistics {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-top: 15px;
}

.geo-report-admin .geo-report-statistics h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.geo-report-admin .geo-report-statistics .widefat {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 15px;
}

.geo-report-admin .geo-report-statistics .widefat td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.geo-report-admin .geo-report-statistics .widefat td:first-child {
    font-weight: 500;
    color: #495057;
    width: 200px;
}

.geo-report-admin .geo-report-statistics .widefat td:last-child {
    color: #007cba;
    font-weight: 600;
}

.geo-report-admin .geo-report-statistics .widefat tr:nth-child(even) {
    background-color: #f8f9fa;
}

.geo-report-admin .geo-report-statistics .widefat tr:last-child td {
    border-bottom: none;
}

.geo-report-admin .geo-report-statistics .button {
    margin-right: 10px;
    margin-bottom: 5px;
}

/* Batch Processing Form Enhancements */
.geo-report-admin fieldset {
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    background: #fafbfc;
}

.geo-report-admin fieldset legend {
    font-weight: 600;
    padding: 0 10px;
    color: #495057;
}

.geo-report-admin fieldset label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.geo-report-admin fieldset input[type="radio"],
.geo-report-admin fieldset input[type="checkbox"] {
    margin-right: 8px;
}

.geo-report-admin fieldset small {
    color: #6c757d;
    margin-left: 24px;
    display: block;
    margin-top: 2px;
}

.geo-report-admin .notice {
    margin: 15px 0;
    padding: 12px;
    border-left: 4px solid #007cba;
    background: #f0f6fc;
}

.geo-report-admin .notice p {
    margin: 0;
}

.geo-report-admin .notice.notice-info {
    border-left-color: #72aee6;
    background: #f0f6fc;
}

.geo-report-admin .form-table th {
    padding-top: 15px;
    font-weight: 600;
}

.geo-report-admin .form-table td {
    padding-top: 12px;
}

/* Responsive improvements for batch processing */
@media (max-width: 768px) {
    .geo-report-admin .geo-report-statistics .widefat td:first-child {
        width: auto;
        font-size: 13px;
    }
    
    .geo-report-admin .geo-report-statistics .button {
        display: block;
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
    
    .geo-report-admin fieldset {
        padding: 12px;
    }
    
    .geo-report-admin fieldset small {
        margin-left: 20px;
        font-size: 12px;
    }
}

/* =============================================================================
   Consent Flow Management Styles
   ============================================================================= */

/* Base overlay with consent flow support */
.geo-report-overlay {
    /* Default z-index - can be overridden by consent manager */
    z-index: 9998;
    transition: all 0.3s ease;
}

/* When Pulse Tracker is active */
.geo-report-overlay.pulse-tracker-active {
    display: none;
}

/* Safe positioning classes */
.geo-report-overlay.safe-position-top-center {
    top: 20% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.geo-report-overlay.safe-position-center-left {
    top: 50% !important;
    left: 20px !important;
    right: auto !important;
    transform: translateY(-50%) !important;
}

.geo-report-overlay.safe-position-center-right {
    top: 50% !important;
    right: 20px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
}

/* Mobile-specific styles */
.geo-report-overlay.mobile-simplified {
    padding: 15px;
    border-radius: 12px;
}

.geo-report-overlay.mobile-simplified .geo-report-button {
    font-size: 16px;
    padding: 12px 20px;
    margin: 8px 0;
}

.geo-report-overlay.mobile-bottom-sheet {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    overflow-y: auto;
}

.geo-report-overlay.mobile-fullscreen {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    border-radius: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Z-index management */
.geo-report-overlay.z-index-auto {
    z-index: 9998;
}

.geo-report-overlay.z-index-high {
    z-index: 99998;
}

.geo-report-overlay.z-index-override {
    z-index: 100001 !important;
}

/* Smooth transitions */
.geo-report-overlay.smooth-transitions {
    transition: all var(--transition-duration, 300ms) ease;
    animation: geoReportFadeIn var(--transition-duration, 300ms) ease;
}

@keyframes geoReportFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Conflict resolution visual indicators */
.geo-report-overlay.conflict-detected {
    border: 2px solid #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.geo-report-overlay.waiting-for-consent {
    opacity: 0.7;
    pointer-events: none;
}

.geo-report-overlay.repositioned {
    animation: geoReportReposition 0.5s ease;
}

@keyframes geoReportReposition {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: var(--final-transform, translate(-50%, -50%)) scale(1);
        opacity: 1;
    }
}

/* Loading indicator for consent flow */
.geo-report-consent-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99997;
    text-align: center;
}

.geo-report-consent-loading .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .geo-report-overlay {
        margin: 10px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 40px);
    }
    
    .geo-report-overlay.safe-position-center-left,
    .geo-report-overlay.safe-position-center-right {
        left: 10px !important;
        right: 10px !important;
        transform: translateY(-50%) !important;
        max-width: none;
    }
    
    .geo-report-overlay-content {
        padding: 20px 15px;
    }
    
    .geo-report-button {
        font-size: 16px;
        padding: 12px 16px;
        margin: 6px 0;
        min-height: 44px; /* iOS touch target */
    }
}

@media (max-width: 480px) {
    .geo-report-overlay.safe-position-top-center {
        top: 10% !important;
    }
    
    .geo-report-overlay-content h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .geo-report-overlay-content p {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .geo-report-overlay {
        border: 2px solid;
        background: white !important;
        color: black !important;
    }
    
    .geo-report-button {
        border: 2px solid;
        font-weight: bold;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .geo-report-overlay,
    .geo-report-overlay.smooth-transitions {
        transition: none !important;
        animation: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .geo-report-overlay-content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .geo-report-overlay-background {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .geo-report-button.secondary {
        background: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }
}

/* =============================================================================
   Sticky Report Button Styles
   ============================================================================= */

.geo-report-sticky-button {
    position: fixed;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Position variants */
.geo-report-sticky-button.geo-report-position-bottom-right {
    bottom: 20px;
    right: 20px;
    transform: translateY(100px);
}

.geo-report-sticky-button.geo-report-position-bottom-left {
    bottom: 20px;
    left: 20px;
    transform: translateY(100px);
}

.geo-report-sticky-button.geo-report-position-top-right {
    top: 20px;
    right: 20px;
    transform: translateY(-100px);
}

.geo-report-sticky-button.geo-report-position-top-left {
    top: 20px;
    left: 20px;
    transform: translateY(-100px);
}

.geo-report-sticky-button.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: geo-report-pulse 2s infinite;
}

/* Flicker/pulse animation for sticky button */
@keyframes geo-report-pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 35px rgba(59, 130, 246, 0.7), 0 6px 18px rgba(0, 0, 0, 0.25);
        transform: scale(1.05);
    }
}

.geo-report-sticky-button #geo-report-sticky-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    border: none;
    border-radius: 50px !important;
    box-shadow: none !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    white-space: nowrap;
    overflow: hidden;
}

.geo-report-sticky-button #geo-report-sticky-btn:hover {
    transform: translateY(-2px);
    box-shadow: none !important;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
}

.geo-report-sticky-button #geo-report-sticky-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.geo-report-sticky-button .geo-report-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Report overlay specific styles */
.geo-report-report-overlay {
    z-index: 10000;
}

.geo-report-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.geo-report-close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.geo-report-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.geo-report-location-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.geo-report-manual-form {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.geo-report-address-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.geo-report-address-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Inline button styles */
.geo-report-inline-button {
    display: inline-block;
    margin: 10px 0;
}

.geo-report-inline-button .geo-report-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.geo-report-inline-button .geo-report-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.geo-report-inline-button .geo-report-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Mobile responsive styles for sticky button */
@media (max-width: 768px) {
    .geo-report-sticky-button {
        bottom: 15px;
        right: 15px;
    }
    
    .geo-report-sticky-button #geo-report-sticky-btn {
        padding: 10px 14px;
        min-width: 100px;
    }
    
    .geo-report-sticky-text {
        display: none;
    }
    
    .geo-report-sticky-button .geo-report-icon {
        width: 24px;
        height: 24px;
    }
    
    .geo-report-location-options {
        gap: 10px;
    }
    
    .geo-report-location-options .geo-report-button {
        font-size: 14px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .geo-report-sticky-button {
        bottom: 10px;
        right: 10px;
    }
    
    .geo-report-sticky-button #geo-report-sticky-btn {
        padding: 8px 12px;
        border-radius: 50%;
        min-width: 48px;
        width: 48px;
        height: 48px;
        justify-content: center;
    }
    
    .geo-report-inline-button .geo-report-button {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* Accessibility improvements */
.geo-report-sticky-button #geo-report-sticky-btn:focus,
.geo-report-inline-button .geo-report-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .geo-report-sticky-button #geo-report-sticky-btn:focus,
    .geo-report-inline-button .geo-report-button:focus {
        outline-color: #60a5fa;
    }
}

/* =============================================================================
   Print Styles
   ============================================================================= */

@media print {
    .geo-report-overlay,
    .geo-report-location-popup,
    .geo-report-consent-loading,
    .geo-report-sticky-button {
        display: none !important;
    }
}

/* Debug / fix: ensure remote autocomplete suggestions overlay above city list */
#geo-report-autocomplete-suggestions {
    z-index: 200000 !important;
    position: absolute !important;
    background: #ffffff !important;
    max-height: 320px !important;
    overflow-y: auto !important;
}

/* New: address autocomplete suggestions container (separate from local city list) */
#geo-report-address-autocomplete-suggestions {
    z-index: 200000 !important;
    position: absolute !important;
    background: #ffffff !important;
    max-height: 320px !important;
    overflow-y: auto !important;
}

/* Ensure the selector container sits above other elements */
#geo-report-city-selector {
    z-index: 199999 !important;
}