/* WaterWorksPro Field Reader - Mobile-first CSS */

/* Loading spinner */
.loading-progress {
    width: 80px;
    height: 80px;
}
.loading-progress circle {
    fill: none;
    stroke: #1976d2;
    stroke-width: 3px;
}
.loading-progress circle:last-child {
    stroke: #e0e0e0;
    stroke-dasharray: calc(3.14 * 80%);
    transform-origin: 50% 50%;
    animation: spin 1.5s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Large touch targets (WCAG min 48px) */
.meter-card {
    min-height: 72px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.meter-card:active {
    opacity: 0.85;
}

/* Big number input for reading entry */
.big-reading-input .mud-input-root input {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    text-align: center;
    padding: 16px 12px !important;
    letter-spacing: 2px;
}

.big-reading-input .mud-input-label {
    font-size: 1rem;
}

/* Usage display */
.usage-display {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
}

.usage-green {
    background-color: rgba(76, 175, 80, 0.15);
}

.usage-yellow {
    background-color: rgba(255, 193, 7, 0.15);
}

.usage-red {
    background-color: rgba(244, 67, 54, 0.15);
}

/* Status indicators */
.status-read {
    color: #4caf50;
}
.status-unread {
    color: #ff9800;
}

/* Progress section */
.progress-section {
    padding: 12px 16px;
}

/* Sync badge */
.sync-badge .mud-badge-content {
    font-size: 0.7rem;
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .mud-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* Submit button - big and easy to tap */
.submit-btn {
    min-height: 56px;
    font-size: 1.1rem !important;
}

/* GPS indicator */
.gps-indicator {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Reading card in sync list */
.pending-reading-card {
    border-left: 4px solid #ff9800;
}

/* Prevent zoom on input focus (iOS) */
input[type="number"],
input[type="text"],
input[type="tel"],
textarea {
    font-size: 16px !important;
}
