/* mobile_helpers.css — Mobile FAB, Quick Modal, Camera (Phase 11.2) */

/* ===== Floating Action Button ===== */
.mobile-fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 28px;
    border: none;
    background: #007aff;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-fab:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.mobile-fab span {
    max-width: 120px;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .mobile-fab { display: none !important; }
}

/* ===== Camera Button Inline ===== */
.camera-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.camera-btn-inline:active {
    background: #e0e0e0;
}

/* ===== Quick Modal ===== */
.quick-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quick-modal-card {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (min-width: 521px) {
    .quick-modal-overlay {
        align-items: center;
        padding: 20px;
    }
    .quick-modal-card {
        border-radius: 20px;
    }
}

.quick-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.quick-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.quick-modal-body {
    padding: 20px;
}

.quick-modal-footer {
    display: flex;
    gap: 10px;
    padding: 12px 20px 20px;
}

.quick-modal-cancel {
    flex: 1;
    padding: 14px;
    background: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.quick-modal-submit {
    flex: 1;
    padding: 14px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.quick-modal-submit:active {
    background: #005ec4;
}

/* ===== Quick OEE Form ===== */
.quick-oee-form .field {
    margin-bottom: 16px;
}

.quick-oee-form .field label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.quick-oee-form .field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.quick-oee-form .field input:focus {
    border-color: #007aff;
    outline: none;
}

.quick-oee-result {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.quick-oee-result .oee-val {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: #f8f9fa;
    border-radius: 10px;
}

.quick-oee-result .oee-val .num {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.quick-oee-result .oee-val .lbl {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ===== Audit Progress Bar ===== */
.audit-progress-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 16px;
}

.audit-progress-bar .progress-track {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.audit-progress-bar .progress-fill {
    height: 100%;
    background: #38a169;
    border-radius: 3px;
    transition: width 0.3s;
}

.audit-progress-bar .progress-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}
