/**
 * MCRStaff Mobile v2 - Custom Styles
 */

/* Prevent zoom on input focus (iOS) */
input, select, textarea {
    font-size: 16px !important;
}

/* Signature canvas */
canvas {
    touch-action: none;
}

/* Loading spinner */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Smooth transitions */
.transition {
    transition: all 0.2s ease-in-out;
}

/* Pull to refresh indicator (future) */
.pull-indicator {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
}

.pulling .pull-indicator {
    opacity: 1;
}

/* Safe area padding for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
    header {
        padding-top: calc(1rem + env(safe-area-inset-top));
    }
}

/* Prevent body scroll when overlay is shown */
body.no-scroll {
    overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

/* Disabled button state */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* File input styling */
input[type="file"] {
    display: none;
}

/* Touch feedback */
.touch-feedback {
    -webkit-tap-highlight-color: rgba(213, 68, 39, 0.1);
}

/* MCR brand colour utilities */
.mcr-btn {
    background-color: #D54427;
}
.mcr-btn:hover {
    background-color: #B83A21;
}
.mcr-text {
    color: #D54427;
}
.mcr-border {
    border-color: #D54427;
}
.mcr-border-t {
    border-top: 2px solid #D54427;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #D54427;
    box-shadow: 0 0 0 3px rgba(213, 68, 39, 0.15);
}
